6548 Commits

Author SHA1 Message Date
Zuul 733b432518 Merge "Add availability zone and host filters to aggregate list" 2026-06-16 05:13:26 +00:00
Zuul 9315bf4986 Merge "identity: Remove unused helper" 2026-06-15 19:14:14 +00:00
Cyril Roelandt 5a103e723b image: Document replacement for md-tag-create-multiple
Change-Id: I0f695a54235dfe3575b19817dfcf364cc82d1fd9
Signed-off-by: Cyril Roelandt <[email protected]>
2026-06-15 15:31:38 +02:00
Stephen Finucane ce141093ae identity: Remove unused helper
This has been unused since I71b5ae8a4bbcb2fdebf894d8bd5cc8322c31bdb5.

Change-Id: Ic90e48868d3e4c79b262d0e127f1b38dc7d840dc
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-15 13:17:13 +01:00
Shi Yan 810fa705e4 Add availability zone and host filters to aggregate list
Add ``--availability-zone`` and ``--host`` options to the
``aggregate list`` command so the results can be narrowed without
post-processing the output.

The compute API does not support server-side filtering of aggregates,
so the filtering is performed client-side. When both options are
supplied they are combined with AND, returning only aggregates that
match every filter.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Change-Id: I9d802cab2bacd817f1a064374f6e118724000702
Signed-off-by: Shi Yan <[email protected]>
2026-06-14 13:58:08 +10:00
Zuul 0933bda40b Merge "quota: Fix incorrect keypair usage in show command" 2026-06-12 12:15:35 +00:00
Stephen Finucane 7b037ca875 image v1: Migrate 'create image' volume calls to SDK
Change Ie57a5c17a6df5a333abd6b11e28b65833740e102 did this for the v2
API but missed v1. Correct this now.

Change-Id: I53c72cce4be38d7eb64345db29abf95d5d5ffeb7
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-11 22:04:09 +01:00
Stephen Finucane f792b88ce7 compute: Replace remaining use of cinderclient
Change-Id: If9933a44ad54d17abdb63f4a83e9792db345e23c
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-11 22:04:09 +01:00
Stephen Finucane 56e10cd33b typing: Typing updates for openstacksdk 4.15.0
More of SDK is typed. That exposes more bugs.

Change-Id: I8a9a839e2d06a8b29b0b596ca8233a59979deba1
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-11 22:04:09 +01:00
Zuul 7fae757667 Merge "network: Add --advertise-host argument to "add subnet"" 2026-06-11 00:46:01 +00:00
Zuul 7719128690 Merge "network: Add --evpn-vni to a Neutron router create command" 2026-06-10 22:04:19 +00:00
Jakub Libosvar 6126609303 network: Add --evpn-vni to a Neutron router create command
The attribute has two modes:
 - a specified number greater tha 0 sends evpn_vni: <int> to the server
 - an "auto" which sends number 0 to the server, which results in the
   VNI auto-allocation

The evpn-vni attribute on the Neutron server side is immutable
for now and we do not support updates.

Related-Bug: #2144617
Assisted-By: Claude Opus 4.6

Change-Id: I4b11947c3a7e25fec6b1bd55e5134bfd4ffc0bb1
Signed-off-by: Jakub Libosvar <[email protected]>
2026-06-10 11:17:43 -04:00
Zuul f4c28ef650 Merge "Fix package discovery" 10.1.0 2026-06-10 00:16:19 +00:00
Stephen Finucane 2cbed9c9d8 Fix package discovery
We need the glob to ensure subpackages are discovered.

Change-Id: I499d7cec2ba3e2d9b28d50a4eef2c65b43669427
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-09 22:34:02 +01:00
Stephen Finucane 4c60d34d43 tests: Remove unused fakes
These should have all been migrated when the commands were moved
from cinderclient to SDK.

Change-Id: I79730cd789d3adf78f4655d138c68cff1d046a5b
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-09 15:50:20 +01:00
Stephen Finucane afc5135680 tests: Remove version suffixes
These are unnecessary and inconsistent.

Change-Id: I16a4b801fd22c6ccb938d4049a8d485b0127737e
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-09 15:50:19 +01:00
Zuul 25a930c76e Merge "volume: Add v3-specific qos specs module" 2026-06-09 14:48:15 +00:00
Zuul 9ba2cca027 Merge "volume: Add v3-specific volume host module" 2026-06-09 14:48:12 +00:00
Zuul 406b94ba6d Merge "volume: Add v3-specific backup record module" 2026-06-09 14:48:09 +00:00
Zuul 666b8a71f5 Merge "volume: Add v3-specific consistency group snapshot module" 2026-06-09 14:48:06 +00:00
Zuul 767ae79e6a Merge "volume: Add v3-specific consistency group module" 2026-06-09 14:48:04 +00:00
Zuul 423f203ac9 Merge "volume: Add v3 volume backend support" 2026-06-09 12:35:37 +00:00
Stephen Finucane 1566aee04d volume: Add v3-specific qos specs module
Change-Id: Ia18a998ff2e5dc5b38e9475209e26bb97ab6d61e
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-09 12:24:35 +01:00
Stephen Finucane 1e99fa2abb volume: Add v3-specific volume host module
Change-Id: I1891b3953a98a8d23b2ac51403c15d7516ab5c3d
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-09 12:21:44 +01:00
Stephen Finucane d6ca31c655 volume: Add v3-specific backup record module
Change-Id: I37592495b530a8e8324af7c60c129a31f15aa6fa
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-09 12:21:22 +01:00
Stephen Finucane d025490e6a volume: Add v3-specific consistency group snapshot module
Change-Id: I756766b28414a42a0ef4f5084a5ee350f8bb6fd2
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-09 12:15:00 +01:00
Stephen Finucane 0ce4928dda volume: Add v3-specific consistency group module
Change-Id: Ib797c8e07341cf8b8fcf48a8a5fdb87a01b96bda
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-09 12:14:36 +01:00
hongp 59e8676b56 volume: Add v3 volume backend support
Add volume_backend.py for v3 API to support:
- volume backend pool list
- volume backend capability show

This mirrors the v2 implementation with version updated to '3'.
Includes unit tests for both commands.

This change is related to https://review.opendev.org/c/openstack/python-openstackclient/+/986510
which added ensure_service_version support for volume v3 API.

Closes-Bug: #2155843
Change-Id: I091980de597d89ea184856e1831a5119c6d7ac6a
Signed-off-by: hongp <[email protected]>
2026-06-09 10:57:46 +09:00
Zuul 2545dc5313 Merge "network: Accept name as positional arg for FWaaS create commands" 2026-06-08 10:54:47 +00:00
Zuul e12fc94242 Merge "network: Do not show evpn_vni if not returned by API" 2026-06-05 15:47:09 +00:00
Jakub Libosvar c572b008aa network: Do not show evpn_vni if not returned by API
The Router object in the SDK defines the evpn_vni in the Depends-On
patch. The attribute is returned in the body only if the EVPN extension
is enabled in Neutron but the Router object in SDK attempts to show it
always.

This patch makes the column visible only if it's really present in
the API response.

Assisted-By: Claude Opus 4.6
Related-Bug: #2144617

Change-Id: I8747f3cb753a115e7955b0a0ea136431fdade0dd
Signed-off-by: Jakub Libosvar <[email protected]>
2026-06-05 08:49:30 -04:00
Alicja Filipek 3f32bdf60f quota: Fix incorrect keypair usage in show command
Before this change, the 'quota show' command displayed incorrect
keypair usage. While keypairs are listed under compute quotas, the
Nova compute API does not actually gather or track keypair usage data
on a per-project basis. As the result keypair usage output was always 0.

Resolve this by checking whether the current user matches the target
project scope. If the project IDs match, the code queries the compute
SDK directly to retrieve the active keypair count for that user.

Change-Id: I5592e1b797b4d18c6c2aae48580ff6f014ffd214
Signed-off-by: Alicja Filipek <[email protected]>
2026-06-05 12:43:55 +02:00
Jakub Libosvar 9242790849 network: Add --advertise-host argument to "add subnet"
The parameter sets a boolean for the
"openstack router add subnet" command. If "--advertise-host" is passed
then the REST request contains "advertise_host": "true" in the body
according the spec [1].

There is a conditional handling of that parameter because of the
openstacksdk dependency. Once openstacksdk gets implemented the
parameter and is released, we should remove the condition and
pass the parameter directly to the add_interface_to_router method

Related-Bug: #2144617
Assisted-By: Claude Opus 4.6

[1] https://opendev.org/openstack/neutron-specs/src/branch/master/specs/2026.2/bgp_evpn_type_5_route_support.rst#changes-to-cli-and-rest-api

Change-Id: I7b760ad963901eb149e3149057aed17e654af0aa
Signed-off-by: Jakub Libosvar <[email protected]>
2026-06-05 06:25:12 +00:00
Zuul 4d650ca683 Merge "common: Use importlib.metadata for package versions" 2026-06-05 00:36:26 +00:00
Zuul fc4b23ff12 Merge "Add functional tests for volume group CRUD" 2026-06-04 19:40:00 +00:00
Zuul 35d6bc8236 Merge "Add --router-routes option to quota commands" 2026-06-04 15:18:55 +00:00
Stephen Finucane 9755e91543 common: Use importlib.metadata for package versions
Avoid use of __version__ attributes which are deprecated for removal in
many places.

Change-Id: I5ee9b5306100404a8d40795ca9599c76dee35d6e
Signed-off-by: Stephen Finucane <[email protected]>
Closes-Bug: #2155226
2026-06-04 10:39:35 +00:00
Zuul 32cd99b19e Merge "image: Use pagination helper" 2026-06-03 16:20:05 +00:00
Zuul 760bb6f2c6 Merge "Add support for --max-items" 2026-06-03 16:20:02 +00:00
Zuul c9fe3347ec Merge "network: Add '--marker', '--limit' to most list commands" 2026-06-03 16:19:58 +00:00
Zuul 6d3dac460a Merge "typing: Add types for _format_* helpers" 2026-06-03 16:19:54 +00:00
Zuul dbc9869601 Merge "typing: Add types for _get_columns helpers" 2026-06-03 16:19:52 +00:00
Zuul 29013e1e8e Merge "typing: Require typed defs" 2026-06-03 16:19:49 +00:00
Zuul 135672b59b Merge "Remove dead nova-network utils" 2026-06-03 16:19:46 +00:00
Slawek Kaplonski 6c813fa50b network: Accept name as positional arg for FWaaS create commands
The "firewall group create" and "firewall group rule create" commands
expected the resource name to be passed via the --name option, which
is inconsistent with "firewall group policy create" and most other
OSC commands where name is a positional argument.

This change adds name as an optional positional argument to both
create commands while keeping the --name option as a deprecated
alternative for backward compatibility. If a user passes --name,
a deprecation warning is logged. Passing both the positional name
and --name at the same time results in an error.

The --name option for the corresponding "set" commands is unaffected
since it is the correct interface for renaming an existing resource.

Assisted-by: Claude Opus 4.6 <[email protected]>

Closes-Bug: #2155144

Change-Id: Ie3beaf526858573872639aae5431d31fbf887cb6
Signed-off-by: Slawek Kaplonski <[email protected]>
2026-06-03 12:41:55 +02:00
Zuul 23deadb6a7 Merge "network: Remove irrelevant TODO" 2026-06-02 17:17:38 +00:00
Zuul 0bfb53dc04 Merge "network: Prefer --agent-id to --long" 2026-06-02 17:17:36 +00:00
Rodolfo Alonso Hernandez 0a8e7a8480 Add --router-routes option to quota commands
Add the router-routes option to "quota set" and include
router_routes in "quota show" and "quota list --network" output.
This exposes the new Neutron router_route per-project quota that
replaces the old static max_routes config option.

Related-Bug: #2026489
Assisted-by: Claude Opus 4.6
Signed-off-by: Rodolfo Alonso Hernandez <[email protected]>
Change-Id: I1d7c4152c005c0aaa8e49b0b9e29c6d5a7e5bb64
2026-06-02 17:02:22 +02:00
Zuul 7d39ed62ff Merge "Add PVLAN commands for Neutron" 2026-06-02 14:49:33 +00:00
Stephen Finucane 137cb5fee2 typing: Add types for _format_* helpers
Change-Id: I1d23f84292a7991adb2013d617c33a79eaa50e78
Signed-off-by: Stephen Finucane <[email protected]>
2026-06-02 15:42:23 +01:00