Commit Graph

12179 Commits

Author SHA1 Message Date
Zuul b13140e913 Merge "Fix wrong shebang of loguserdata.py" 2024-04-25 07:49:24 +00:00
Zuul 85e3b92d4d Merge "Fix 'if' function with only 2 arguments" 2024-04-25 07:38:33 +00:00
Zuul b67ea2e0f7 Merge "Use stable Resource plugin interface in UpdateWaitConditionHandle" 2024-04-24 17:20:37 +00:00
Zane Bitter 78119f60c6 Use stable Resource plugin interface in UpdateWaitConditionHandle
The update() function is internal and not guaranteed to be stable.
Resource plugins should override _needs_update() to control
update/replace behaviour.

Change-Id: I247b68669e692f6705e8adee60572c8e775ce0b8
Story: 2011068
Task: 49828
2024-04-24 02:11:50 +00:00
Zane Bitter f7eddbef83 Fix 'if' function with only 2 arguments
This had a similar problem as when null values were passed explicitly
before the fix for bug 1709620.

Change-Id: I02fb4c8815bc24d4c0c339022aa857dc344d58e9
Story: 2011108
Task: 49921
2024-04-24 12:06:07 +12:00
Takashi Kajinami eea7ea099d Revert "Skip aodhclient plugin test"
This reverts commit 575827c9ac.

Reason for revert:
The issue with pyparsing bump was already resolved.

Change-Id: Ia01ad211eab1b8ae558a85b9e51df46164d7a1d1
2024-04-24 00:30:37 +09:00
Takashi Kajinami 29a594c85a Fix wrong shebang of loguserdata.py
With the previous detection logic removed by [1], we should update
the shebang so that the script is executed by python interpreter.

[1] 19bcbc0390

Change-Id: If116e89b75f450b818ed6b8819a0920fff6d34bb
2024-04-17 20:10:33 +09:00
Takashi Kajinami 399352dfdc Fix update of OS::Heat::UpdateWaitConditionHandle
The update method has incomplete arguments and causes error during
actual stack update operation.

Story: 2011068
Task: 49751
Change-Id: I7b141f8846005da8379b1c646b298088d27a66bc
2024-03-21 09:47:54 +09:00
Zuul 30a1ca1137 Merge "Fix access by admin users to resources in different projects" 2024-03-12 02:56:46 +00:00
Zuul 42a0e28288 Merge "Allow more options to limit number of resources" 2024-03-08 05:33:48 +00:00
Takashi Kajinami 632998e218 Fix access by admin users to resources in different projects
This allows admin users[1] to use a different project id in request
path, to fix the unexpected access denials during redirection when
enforcing new default rules. This was allowed previously with
deprecated policy rules, and with the new SRBAC design we require
project scope auth to access project owned resources such as stack.

[1]
User with admin role in admin project in case admin_project_name is
set in Keystone. If it's not set then user with admin role in any
project are considered as "admin".

Story: 2011036
Task: 49532
Change-Id: I49f46e36828881d9700e0e178bd80eb04efe4510
2024-03-07 19:12:17 +09:00
Zuul 9da45ab44b Merge "Deprecate resources for inactive services" 2024-03-07 03:53:51 +00:00
Zuul 24c5a14114 Merge "Remove logic for cloud-init < 0.6.0" 2024-02-20 09:01:25 +00:00
Zuul c2f8834656 Merge "Use zoneinfo instead of pytz if available" 2024-02-20 09:01:22 +00:00
Zuul 451d351cce Merge "Drop unused default password in create_stack_user" 2024-02-20 08:50:06 +00:00
Zuul 1cfe32d7ec Merge "Stop using deprecated implicit_prefix option" 2024-02-20 08:50:03 +00:00
Takashi Kajinami 564507a72a Stop using deprecated implicit_prefix option
This argument was deprecated in netaddr 0.10.0[1], and was removed in
netaddr 1.0.0[2].

[1] aca2f56344
[2] cc42742247

Change-Id: I24f26ee44af8fdfca89312351e67e5edbf7c81de
2024-02-17 13:13:34 +09:00
Zuul dd7319e373 Merge "Stop unnecessary usage of 'self'" 2024-01-31 18:22:13 +00:00
Zuul aad16e9684 Merge "Fix inconsistent naming in db api" 2024-01-31 18:22:10 +00:00
Zuul b674962603 Merge "common: Replace deprecated importlib API (2/2)" 2024-01-29 07:32:45 +00:00
Stephen Finucane d48a6a2170 common: Replace deprecated importlib API (2/2)
Resolve the following deprecation warning:

  DeprecationWarning: the load_module() method is deprecated and slated
  for removal in Python 3.12; use exec_module() instead

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I403289d5df2143872503fc246a993cb19ebba68e
2024-01-29 01:06:14 +09:00
Takashi Kajinami 19bcbc0390 Remove logic for cloud-init < 0.6.0
cloud-init was released on 2011-01-27. It may be reasonable to assume
that no one is using older versions.

Change-Id: I8f6d3ed0aadd00e76710308fec7d3a1b1d5bb0e9
2024-01-29 01:05:22 +09:00
Takashi Kajinami 1d3b0073e0 Drop unused default password in create_stack_user
All calls of create_stack_user has the password argument set.

Change-Id: I267536b4b2b121c2bb921d024cc3e04400cbf211
2024-01-28 23:48:48 +09:00
Takashi Kajinami 84ca8a18e0 Use zoneinfo instead of pytz if available
The zoneinfo module was introduced in Python 3.9. We can use that
built-in module instead of the 3rd party library (pytz).

This is based on change I1f88bdadc68bfa726eac1da1c5824c1ed352ad98 in
oslo.utils.

Change-Id: I539120a6bfb850b0c4e384e51caa021761a4f6b8
2024-01-27 19:23:00 +09:00
lujiefsi 7d86fc6d84 Allow more options to limit number of resources
This commit adds the configuration options related to resource limits
in the Heat project. The `max_software_configs_per_tenant`,
`max_software_deployments_per_tenant`, and `max_snapshots_per_stack`
options have been added to control the maximum limits for software
configs, software deployments, stack snapshots.

Story: 2011006
Task: 49401
Change-Id: If33a1c6f3eb9e93f586931bc5c05104439c92bf9
2024-01-26 22:22:11 +00:00
Takashi Kajinami 13ec108b0d Fix inconsistent naming in db api
Snapshot.get_all does not return all snapshots of the project but
returns all snapshots associated with a single stack, so its name
should contain _by_stack for consistency.

Change-Id: Ic6b93b7cfc84793077672b3f1052f03519e4c5a1
2024-01-27 07:21:46 +09:00
Zuul 313a5afa6a Merge "Adding oslo.config entry points for yaql and cache opts" 2024-01-26 13:18:51 +00:00
Zuul 0676041be8 Merge "Bump hacking" 2024-01-26 12:59:35 +00:00
Takashi Kajinami a9507c1db4 Stop unnecessary usage of 'self'
Objects used only within the single test does not need to be part of
the TestCase instance of that test.

Change-Id: I05c0877315e6e4897e8b097d5df3e81b60022870
2024-01-24 11:51:23 +09:00
James Page ec0729a79d
tests: Fix unit tests using has_calls
has_calls is not the correct method for asserting a list of calls
has occured during testing.  Use assert_has_calls instead.

This also revealed an issue in the expected signature for one
of the mock calls in the test_software_config module.

Change-Id: Ib01ee79f49525f6d0ba7915108ef92c338a8f393
2024-01-22 13:55:10 +00:00
Takashi Kajinami 895d8645ad Deprecate resources for inactive services
Monasca, Sahara and Senlin were marked inactive during this cycle and
will not be part of the 2024.1 release. Because these projects are not
maintained in a consistent way, we deprecate resources for these
services.

We aim to remove these in the 2024.2 release.

Change-Id: Iab377ebc2569a4a5a81f736a1dfe9f406135f5d3
2024-01-22 21:03:39 +09:00
Takashi Kajinami 813f229a08 Bump hacking
hacking 3.0.x is too old.

Also fix failures detected by the new hacking version.

Change-Id: Ifccbbf2ff7b0824d2079937526d3eee1c536349b
2024-01-18 19:04:37 +09:00
Zuul 2df46d4c59 Merge "Clear implementations for neutron LBaaS v2" 2024-01-09 04:50:09 +00:00
David Vallee Delisle 0f7ce2cfa6 Adding oslo.config entry points for yaql and cache opts
To assist with automated configuration validation, we need entry points
for oslo.config.opts for yaql and cache options.

Change-Id: I228282d2c05f6583fe972470b326e7182f635b39
2024-01-09 10:39:46 +09:00
Takashi Kajinami f5e5aaed8e Remove deprecated wrappertask decorator
The wrappertask decorator was deprecated some cycles ago[1]. This is
internal implementation so could be even removed directly.

[1] 2c58017a14

Change-Id: I0f2e25971201e2a01b3e86bd859e8a4bdb98d371
2023-12-27 09:06:33 +09:00
Zuul 28334a3a2b Merge "Loadbalancer id is required in listener creation API" 2023-12-19 06:19:50 +00:00
Zuul 41e61b84f2 Merge "Remove deprecated internal rpc function" 2023-12-16 18:34:15 +00:00
Takashi Kajinami 6155e68f9a Remove deprecated internal rpc function
It was deprecated 6 years ago[1] and is no longer used.

[1] e2b614c529

Change-Id: I0905b1901429f2475784e4752889b83e6567f4ef
2023-12-15 06:07:40 +00:00
Zuul fc94b3e49a Merge "common: Replace deprecated importlib APIs (1/2)" 2023-12-15 05:56:38 +00:00
Zuul a120c750c8 Merge "Hide OS::Glance::Image" 2023-12-15 05:56:36 +00:00
Zuul 0967d76321 Merge "Drop redundant code to initialize RequestContext" 2023-12-15 05:38:21 +00:00
Takashi Kajinami 87a8cbe4ac Clear implementations for neutron LBaaS v2
LBaaS v2 was retired a while ago and now the related resources are all
hidden. Thus we can remove all implementation to reduce dependency on
python-neutronclient which is deprecated.

Story: 2010678
Task: 47761
Change-Id: I4de6cb353bc3699d124ea55666c87e4efd7e4350
2023-12-13 22:07:02 +09:00
Zuul 93700aa365 Merge "Clear implementations for neutron LBaaS v1" 2023-12-13 04:10:35 +00:00
Zuul b207d54612 Merge "Enable new defaults and scope checks by default" 2023-12-04 09:13:22 +00:00
Takashi Kajinami 01349f3793 Hide OS::Glance::Image
This resource requires Glance v1 API which was already removed[1][2].
It was deprecated some time ago so we can hide it now.

[1] 3dde3204d5c1b5323dba2d7b7607e69bcc58bbb2
[2] 30680961994b36ed12713c0f106b661535ce41c6

Change-Id: Ifbefdbc032c0b1ac538d68b41f13d0547b793ba5
2023-12-01 14:57:04 +09:00
liyi a749ed1e6b Loadbalancer id is required in listener creation API
The loadbalancer property of Octavia::Listener resource has been
optional but this is not aligned with Octavia's API and causes
a strange failure when a user creates a pool without the property.

This makes the property required to enforce the same requirements as
one made by Octavia's API.

Story: 1748389
Task: 17347
Change-Id: Ib8af29c3d45d5ffbbb21c216429ef38d0d273d05
2023-11-27 11:07:15 +09:00
Takashi Kajinami d131a1ada2 Remove deprecated [DEFAULT] onready
This option was deprecated a long ago[1] and has had no effect for
multiple releases.

[1] 46d6b9306c

Change-Id: I0971f67b43292f8794aa3329b2e7dccc67ec3f6f
2023-11-21 12:27:25 +09:00
Zuul 1aade657ad Merge "Add OS::Aodh::PrometheusAlarm resource" 2023-11-10 00:24:21 +00:00
Takashi Kajinami dabf3a6d38 Drop redundant code to initialize RequestContext
The underlying oslo.context implements the logic to look up request id
from request environment since 2.6.0 [1].

Also, some of the init arguments of RequestContext class are already
implemented by the base class in oslo.context. So we don't have to
implement these additionally.

[1] 740b81784be72fff95957e8491863ef9e7f7db1a

Change-Id: Ic1ab055a8780fd64b67cf92e86d5b8ef10047bbf
2023-10-26 18:55:22 +09:00
Takashi Kajinami 6d13e93a37 Enable new defaults and scope checks by default
Based on the agreed steps to implement the SRBAC community goal, this
enables the new policy defaults and scope checks by default.

Change-Id: I315893150549d1174c3270c37c031e6a519f9a28
2023-10-24 13:18:40 +09:00