4624 Commits

Author SHA1 Message Date
Zuul
3c60910558 Merge "trivial: Enable ruff-specific (RUF) rules" 2026-02-16 14:02:36 +00:00
Zuul
7d2ec3ecd9 Merge "network: Move TaaS commands to a separate entrypoint group" 2026-02-16 14:02:33 +00:00
Stephen Finucane
87df896173 trivial: Enable ruff-specific (RUF) rules
Change-Id: I60cc0c22c692414f758df431c049e51b1baecfc7
Signed-off-by: Stephen Finucane <[email protected]>
2026-02-16 11:35:20 +00:00
Zuul
64cf0c3369 Merge "trivial: Enable flake8-logging-format (G) rules" 2026-02-13 20:50:44 +00:00
Zuul
023dcec58a Merge "Run mypy from tox" 2026-02-13 19:51:32 +00:00
Stephen Finucane
55e862b09e trivial: Enable flake8-logging-format (G) rules
Change-Id: Iabc94a0fd40903dc2a81bf62aea8460f20a7e0e4
Signed-off-by: Stephen Finucane <[email protected]>
2026-02-13 18:07:31 +00:00
Zuul
ec73156fbb Merge "Rename openstack volume delete --purge -> --cascade" 2026-02-13 17:37:10 +00:00
Stephen Finucane
164e5d0f5f Run mypy from tox
This avoids the need to duplicate our dependency list in multiple
places and allows us to take advantage of tox's dependency management
infrastructure, to ensure we always get the latest and greatest version
of a package allowed by upper-constraints.

While here, we also update the versions of the remaining pre-commit
hooks and change the indentation of the tox file to align with the two
indent spacing used for other SDK projects. This makes copy-pasting
easier.

Change-Id: Ibde8ecda673b2346c82aab68d4f4b49be08414ae
Signed-off-by: Stephen Finucane <[email protected]>
2026-02-13 15:45:03 +00:00
Zuul
91302d23ec Merge "Identity: Migrate 'registered limit' commands to SDK" 2026-02-13 15:21:55 +00:00
Zuul
2dff286e39 Merge "Identity: Migrate 'federation protocol' commands to SDK" 2026-02-13 15:21:45 +00:00
Zuul
e607ee27f8 Merge "Identity: Add --project-domain option for limits" 2026-02-13 15:21:42 +00:00
Zuul
252f9ff800 Merge "Identity: Use project's domain for its parent" 2026-02-13 15:21:39 +00:00
Zuul
62d1c3dc6a Merge "Identity: Migrate 'project' commands to SDK" 2026-02-13 15:21:36 +00:00
Eric Harney
cebf4d78d6 Rename openstack volume delete --purge -> --cascade
This flag is called "cascade" in the Cinder API.
The flag "purge" doesn't really communicate an obvious
meaning in the context of volume deletion. It also
has the danger of implying some kind of behavior about
volume wiping that does not exist.

Rename this flag to "--cascade" and preserve "--purge"
as a hidden flag for compatibility.

Change-Id: I8de27811222c17155697073fb9c512746d009266
Signed-off-by: Eric Harney <[email protected]>
Co-authored-by: Stephen Finucane <[email protected]>
2026-02-13 14:37:24 +00:00
Zuul
643990662b Merge "Make --all-stores behave the same as in glanceclient." 2026-02-10 17:28:51 +00:00
Zuul
3496f0f5da Merge "Fix: Make server resize options required" 2026-02-10 16:24:11 +00:00
Piotr Sipika
0803fd2112 Make --all-stores behave the same as in glanceclient.
In order for python-openstackclient to support image imports to
mutliple stores at the same time an update is needed to the --all-stores
argument used by the client whereby the argument is explicitly set to contain
a boolean value. This change makes the argument do what it's supposed to and
do it in a way consistent with the API contract exposed by Glance.

Amend tests to support the change in type of the --all-stores option.

Change-Id: If5a72ca3ca68656555b5eb478e104d43f419c77e
Closes-Bug: 2138903
Signed-off-by: Piotr Sipika <[email protected]>
Co-authored-by: Stephen Finucane <[email protected]>
2026-02-10 14:58:18 +00:00
0weng
d135994772 Identity: Migrate 'federation protocol' commands to SDK
Change-Id: I4f1303b7b6c7ea2e67e5770745db060f08ba7761
Signed-off-by: 0weng <[email protected]>
2026-02-06 14:03:39 -08:00
0weng
ea1f8134c2 Identity: Add --project-domain option for limits
Change-Id: Ia0930c8dbd3325e0eeadf91716e7dfaabbfd1978
Signed-off-by: 0weng <[email protected]>
2026-01-27 15:22:28 -08:00
0weng
8668f2632a Identity: Use project's domain for its parent
When creating or listing projects, search for parent project in the
same domain as the child project.

Change-Id: I1912f06df353a64eb0573f080ac9ab067cb90632
Signed-off-by: 0weng <[email protected]>
2026-01-27 14:35:33 -08:00
0weng
85e731df47 Identity: Migrate 'project' commands to SDK
Change-Id: I0f673658bc02423c18af82fe52ed9f0587763882
Signed-off-by: 0weng <[email protected]>
2026-01-27 14:35:18 -08:00
0weng
911e643f2c Identity: Migrate 'limit' commands to SDK
Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/937397
Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/942818
Change-Id: I3b9833d5cbb1f7275ceee56cb2599b76e878e98e
Signed-off-by: 0weng <[email protected]>
2026-01-22 11:06:02 -08:00
Zuul
f7c78b8b74 Merge "Add functional test for volume snapshot" 2026-01-21 14:53:56 +00:00
Zuul
f52ee1df18 Merge "tests: Update functional test for image metadef object" 2026-01-21 14:53:53 +00:00
Jan Ueberacker
ea0a2c126c Fix: Make server resize options required
Change-Id: I7e8f4e750822a2e8c85826f49c56e10f7605fedb
Signed-off-by: Jan Ueberacker <[email protected]>
2026-01-21 09:42:41 +01:00
Andriy Kurilin
0a93733293 Fix quota usage and reservation display
Fix `openstack quota show --usage` to correctly display resource usage
and reservations by applying proper name normalization for corresponding
sections of data.
Previously, name normalization was applied only for "limits" which is
the root section, leaving 'usage' and 'reservation' sections untouched.

Change-Id: Id14fe894b30a74b9b8d78b00c3d4ff151f8b4210
Closes-bug: #2137636
Signed-off-by: Andriy Kurilin <[email protected]>
2026-01-07 13:29:49 +01:00
Abhishek Kekane
ed2dc692dd Fix image owner change when accepting membership with --project
When using 'openstack image set --project <project> --accept <image>',
the command incorrectly changed the image owner. The --project parameter
when used with membership flags should only identify which member's
status to update, not change ownership.

Closes-Bug: #2136795
Change-Id: I1044b51f38000fb5339740bc40c7f8645c794402
Signed-off-by: Abhishek Kekane <[email protected]>
2025-12-18 14:01:45 +00:00
Zuul
85fccc7a91 Merge "typing: Fixups for typed osc-lib" 2025-12-16 18:13:51 +00:00
Zuul
08b1bb70dd Merge "taas: Use custom command classes" 2025-12-16 18:13:48 +00:00
Zuul
58210a141a Merge "fix(keystone): correct the args submitted on user creation" 2025-12-15 19:56:34 +00:00
Doug Goldstein
0b05fd8968 fix(keystone): correct the args submitted on user creation
When a user is created without a password then no parameter called
'password' should be submitted to the keystone API. This removes the
incorrect 'password' with null being supplied.

Closes-Bug: 2136148
Change-Id: If1c2eb5db360764a5f7660ce4e5353da85b6d3da
Signed-off-by: Doug Goldstein <[email protected]>
2025-12-15 10:14:41 -06:00
Stephen Finucane
e8ae075c38 typing: Fixups for typed osc-lib
Change-Id: I436983a13e8812d704af2f1eb3f600277ef8a531
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-15 11:38:36 +00:00
Stephen Finucane
7246a07834 taas: Use custom command classes
In change I53d9058273748ecd4d4eecec5f7291d5f38ce5ab we added custom
Command classes for typing purposes. However, the Tap-as-a-Service code
merged around the same time and was missed. Correct this.

Change-Id: I3a9fe20b5b8eb54708644527538f27396f29b476
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-15 11:27:56 +00:00
Stephen Finucane
8dbb7126c6 identity: Use plural dest for append opts
Change-Id: I73a263a309e022b7606ced43a814a1d1914bc751
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-15 11:25:43 +00:00
Stephen Finucane
841d95b095 common: Remove references to pkg_resources
Even though the comment here attributed this to stevedore, it was in
fact the use of pkg_resources that changed things.

Change-Id: I35377dd7d773024aa6423b72b1412e11b1b6f2e4
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-12 10:32:12 +00:00
Stephen Finucane
a7e2f31ecc volume: Remove negotiation for v1 API
Change Ibe1cd6461d2cb78826467078aa17272f171746aa removed support for the
v1 volume API. We should have removed this check at the same time.

We also remove some god-awful monkey patching that references v1
cinderclient but in practice modified all clients.

Change-Id: I3727fd9238df966b3bc59812c5efcf3398da5c72
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-12 10:32:12 +00:00
Zuul
de4e119272 Merge "typing: Add types to custom formatters" 2025-12-11 21:56:06 +00:00
Zuul
30f3192b8d Merge "Add custom command classes" 2025-12-11 21:42:13 +00:00
Zuul
cc36d929b3 Merge "clientmanager: Remove legacy cruft" 2025-12-11 21:32:52 +00:00
Stephen Finucane
e799a4a676 typing: Add types to custom formatters
We make a lot of use of typing.Any just to get this over the line. We
can come back to this later.

Change-Id: I03c18b0b44f210b2ad3e4012344d521fb85cae97
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-11 18:55:15 +00:00
Stephen Finucane
3cd544df53 Add custom command classes
These are effectively identical to the osc-lib variants except they
include the attributes that the OSC shell implementation will set on
this during shell init. This helps from a typing perspective.

Change-Id: I53d9058273748ecd4d4eecec5f7291d5f38ce5ab
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-11 18:55:13 +00:00
Zuul
c59bf71fb7 Merge "Use openstacksdk test generate_fake_resources factory" 2025-12-11 15:50:51 +00:00
Zuul
924822507a Merge "Implement conflict resolution" 2025-12-11 15:50:49 +00:00
Zuul
65801e7e58 Merge "Improve help strings for tap services" 2025-12-11 15:03:09 +00:00
Zuul
f2810a83b0 Merge "Moving tapas osc client code from neutronclient" 2025-12-11 15:03:06 +00:00
Stephen Finucane
3fbe41cd52 clientmanager: Remove legacy cruft
No has used Initialize functions in years, while the _auth_required
attribute has long since been handled by the base class in osc-lib.

Change-Id: I3af9a6d8c339b2170a13346b009392d51e044443
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-11 13:31:26 +00:00
Miro Tomaska
dedc1a342c Use openstacksdk test generate_fake_resources factory
Instead of building fake test objects in the local fakes.py file,
use existing generate_fake_resource(s) factory methods to automatically
populate class attributes. Doing this ensures that fake objects are always
build with actual attributes of the class.

Change-Id: If424b87c79e7dab102cbd8a7938df85411c9465d
Signed-off-by: Miro Tomaska <[email protected]>
2025-12-11 13:28:38 +00:00
Stephen Finucane
5b5287355e network: Move TaaS commands to a separate entrypoint group
Resolve a TODO from the review round.

Change-Id: I819f6b8545081037a500bebefcbde898e62fdcc5
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-11 13:27:33 +00:00
Stephen Finucane
060299c749 Implement conflict resolution
Take advantage of functionality recently introduced in cliff to allow us
to prefer commands that are in-tree over those provided via plugin
packages. This will allow us to move the extensions themselves in-tree.

Change-Id: I5dd9bc9743bea779ea1b4a71264c9a77c80033b3
Signed-off-by: Stephen Finucane <[email protected]>
2025-12-11 13:17:24 +00:00
Takashi Kajinami
92a277ff4c ruff: Enable E5 check
... to enforce maximum line length, to keep consistent code format.

Note that E501 check is disabled in test code now, until we decide how
to update ~50 lines violating the limit due to too long names.

Change-Id: I122c8b9035d6381dafb34438517c26b01e5201f5
Signed-off-by: Takashi Kajinami <[email protected]>
2025-12-11 02:43:20 +09:00