6408 Commits

Author SHA1 Message Date
Stephen Finucane
b031b7d9ab hacking: Add tests
Change-Id: Ic973aaa0ea623575399868c47e8aac7b7d6d0561
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-25 00:44:28 +01:00
Stephen Finucane
73c66035c4 hacking: Add doctests
Nothing actually tests these yet, but it is the desired behavior.

Change-Id: I3c89234a7a06e06f2740aec0bc7dc19da9cafeb5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-25 00:44:28 +01:00
Stephen Finucane
47ac6e2780 hacking: Fix check for missing ignore_missing calls
Change-Id: I54f7bf2026507b357fdf921993c69913e7c32db2
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-25 00:44:28 +01:00
Stephen Finucane
39842bcf0b hacking: Check for overly complicated client access
Change-Id: I531c0879c413cf500b099826047d03dd90dc0f5d
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-25 00:44:05 +01:00
Stephen Finucane
1cc484f2b5 tests: Make use of fake client aliases
Change-Id: Iae56252c955540360b50c77594a1dff9d82b764f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-25 00:44:05 +01:00
Stephen Finucane
793739ad01 hacking: Make check for duplicate clients less specific
Change-Id: Ie08a09c209d24d54b062a44e5b535c8a2926285c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-25 00:14:07 +01:00
Stephen Finucane
afc32da264 hacking: Fix typos
0 != O.

Change-Id: Iea443da7e802607081150c52d38be2f28293a969
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-25 00:14:01 +01:00
Stephen Finucane
a8d7f64817 tests: Add object store v1 FakeClientMixin
As done elsewhere in e.g. Ic203964c7dede7dd80ae2d93b8fa1b7e6634a758

Change-Id: I8183761513fb2d498d40bb6491e9ee1e61ae5fd1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-24 23:42:04 +01:00
Pavlo Shchelokovskyy
c20a0537d7 Expand help of server migrate command
mention server migrate is 'offline', and mention live migration and how
it is different.

Change-Id: Ia9af8e4a21989c39deaf2f6f7e1039b3fc4a0eef
Signed-off-by: Pavlo Shchelokovskyy <shchelokovskyy@gmail.com>
2026-03-12 15:32:17 +00:00
Stephen Finucane
de81f47305 hacking: Ensure use of openstackclient.command
These have the necessary type hints for the clientmanager and
should always be used.

Change-Id: I8420212be63dbeaff02c97823e1b80441cbc62ca
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-10 13:20:50 +00:00
Zuul
2a28605ba2 Merge "Add --cluster option to volume migration" 2026-03-09 15:05:40 +00:00
hongp
78e0bf023b Add --cluster option to volume migration
This patch adds the '--cluster' optional argument to the 'volume
migration' command. This allows users to migrate volumes to a
destination cluster instead of a specific host, which is particularly
useful in Active-Active configurations.

The '--cluster' option requires Cinder API microversion 3.16 or
higher. The '--host' and '--cluster' options are mutually exclusive;
one of them must be provided for the migration to start.

Change-Id: Ibd45ac35e39a2a9f88a39f8041c06c4469727098
Signed-off-by: hongp <inyong.hong@samsung.com>
2026-03-07 21:47:47 +09:00
Zuul
e7ccdecc21 Merge "Update master for stable/2026.1" 2026-03-06 18:07:38 +00:00
Zuul
d6241b1e11 Merge "identity: Fix project list" 2026-03-05 14:10:44 +00:00
Stephen Finucane
a6b9c35891 identity: Fix project list
SDK returns generators, not lists, and we do not see errors until
they are iterated. Force early iteration by wrapping then in a list
to ensure we actually see the HTTP 403 errors we were expecting.

Change-Id: I0ab72e587bf4e16ae877db7a81023a226124e4d5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-05 11:38:10 +00:00
Stephen Finucane
18ba16b668 tests: Remove image v1 functional tests
Nothing was setting haz_v1_api which means it was not possible
for these to run. Even if it had been, getting a cloud with the
v1 image API up and running is no easy feat nowadays.

Change-Id: Ic2ba82aedae4dbcae6313150335ee1c7412ce7b3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-03 10:25:25 +00:00
Stephen Finucane
2c01f526d1 tests: Trivial capitalization fixes
Change-Id: Ie6d518b44bfc27ae957816ce00a59a1cdf7b247b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-03 10:25:21 +00:00
Stephen Finucane
aeb0c6828b typing: Add class variables to testcases
testtools was recently bumped to a version that is typed, which means we
now see type hints for that library. As a result, we now see issues with
variables defined in tests via setUpClass. Note that the issue lies with
mypy and not testtools, however: mypy doesn't adding class variables via
assignment [1].

[1] https://github.com/python/mypy/issues/8723

Change-Id: I8b09846ff8fc6ee51ba03531f5b41039282ee1c0
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2026-03-03 10:25:12 +00:00
2e45f8d6aa Update master for stable/2026.1
Add file to the reno documentation build to show release notes for
stable/2026.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2026.1.

Sem-Ver: feature
Change-Id: I81e3760add22809c94018921f6d9bc47f1710330
Signed-off-by: OpenStack Release Bot <infra-root@openstack.org>
Generated-By: openstack/project-config:roles/copy-release-tools-scripts/files/release-tools/add_release_note_page.sh
2026-03-03 09:03:51 +00:00
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 <stephenfin@redhat.com>
2026-02-16 11:35:20 +00:00
Zuul
64cf0c3369 Merge "trivial: Enable flake8-logging-format (G) rules" 9.0.0 2026-02-13 20:50:44 +00:00
Zuul
04b367aaee Merge "Add release notes for federation protocol commands" 2026-02-13 19:51:35 +00:00
Zuul
023dcec58a Merge "Run mypy from tox" 2026-02-13 19:51:32 +00:00
Zuul
e60b700629 Merge "trivial: Align tox indentation with other SDK projects" 2026-02-13 19:16:51 +00:00
0weng
0d0e58c5bf Add release notes for federation protocol commands
Release notes to go with change
I4f1303b7b6c7ea2e67e5770745db060f08ba7761 that migrates the federation
protocol commands to SDK.

Change-Id: Ia2dbdefd505a44527c97c7549f33edcbdd7831c0
Signed-off-by: 0weng <oweng@osuosl.org>
2026-02-13 10:42:05 -08:00
Stephen Finucane
55e862b09e trivial: Enable flake8-logging-format (G) rules
Change-Id: Iabc94a0fd40903dc2a81bf62aea8460f20a7e0e4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
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 <stephenfin@redhat.com>
2026-02-13 15:45:03 +00:00
Stephen Finucane
1bc0d2b306 trivial: Align tox indentation with other SDK projects
This makes sharing snippets between the two easier.

Change-Id: I8cf32d5ffd25d1b951f654c631ef06b18a5bade5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
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 <eharney@redhat.com>
Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
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 <psipika@bloomberg.net>
Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
2026-02-10 14:58:18 +00:00
0weng
d135994772 Identity: Migrate 'federation protocol' commands to SDK
Change-Id: I4f1303b7b6c7ea2e67e5770745db060f08ba7761
Signed-off-by: 0weng <oweng@osuosl.org>
2026-02-06 14:03:39 -08:00
0weng
ea1f8134c2 Identity: Add --project-domain option for limits
Change-Id: Ia0930c8dbd3325e0eeadf91716e7dfaabbfd1978
Signed-off-by: 0weng <oweng@osuosl.org>
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 <oweng@osuosl.org>
2026-01-27 14:35:33 -08:00
0weng
85e731df47 Identity: Migrate 'project' commands to SDK
Change-Id: I0f673658bc02423c18af82fe52ed9f0587763882
Signed-off-by: 0weng <oweng@osuosl.org>
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 <oweng@osuosl.org>
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 <jan.ueberacker@inovex.de>
2026-01-21 09:42:41 +01:00
Takashi Kajinami
68f22c209d Replace obsolete PCRE packages
pcre3 was removed from recent debian-based releases (eg. Trixie[1]),
while RHEL10/CentOS Stream 10 no longer ships pcre in favor of pcre2.

Use the latest whereto library release (0.5.0) which uses pcre2
instead.

[1] https://lists.debian.org/debian-devel/2021/11/msg00176.html

Depends-on: https://review.opendev.org/c/openstack/requirements/+/97142
Change-Id: Ide59346a03f4aea2d6ec4b410e102faeddf2bac4
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2026-01-21 08:48:06 +09: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 <andr.kurilin@gmail.com>
2026-01-07 13:29:49 +01:00