Commit Graph

4002 Commits

Author SHA1 Message Date
Zuul 6dbc7e9e94 Merge "Fix multiple image_id query mappings" 2024-04-22 18:12:13 +00:00
Zuul 9892f1f9d5 Merge "Adding SDK support for ``glance md-namespace-objects-delete``" 2024-04-22 17:14:34 +00:00
Zuul d0718dce12 Merge "image: make sure the target for "clear_cache" is valid" 2024-04-22 17:06:36 +00:00
Zuul 416fd6f618 Merge "Remove mypy union line which breaks older pythons." 2024-04-22 17:04:41 +00:00
Tobias Urdin 1610e2da76 Fix multiple image_id query mappings
The loadbalancer v2 proxy has the image_id query
mapping written out twice, instead that should be
compute_flavor [1].

[1] https://docs.openstack.org/api-ref/load-balancer/v2/#list-amphora

Change-Id: I886bdc222904d6e42d8ccad254ed5ae58238d089
2024-04-22 15:06:40 +00:00
Michael Still 7131781adb Remove mypy union line which breaks older pythons.
Change I084336ba41147f824b92dc07235e5f19b7ac4a9c introduced mypy
syntax which breaks Python releases before 3.10. Unfortunately, for
2024.1 we commit to supporting Python back to 3.8.

Specifically, you receive this error message if you run pep8:

pep8 mypy.....................................................................Failed
pep8 - hook id: mypy
pep8 - exit code: 1
pep8
pep8 openstack/object_store/v1/_proxy.py: note: In member "generate_temp_url" of class "Proxy":
pep8 openstack/object_store/v1/_proxy.py:1049:21: error: X | Y syntax for unions requires Python 3.10  [syntax]
pep8 Found 1 error in 1 file (checked 410 source files)

I asked some buddies, and we're fairly sure that this line would
crash the runtime on Python 3.8, because its a syntax error.

So instead, let's use typing syntax compatible with other pythons.

Change-Id: I0a5f57346c7ff469ffe1b93051e470141117ada9
2024-04-21 15:39:39 +10:00
Zuul 8c6a129b8c Merge "Fixed update_metadef_object" 2024-04-18 08:26:53 +00:00
Zuul a39bc3c855 Merge "Add Tap Mirrors to SDK" 2024-04-17 10:37:15 +00:00
Zuul cf5f4ce437 Merge "volume: Allow passing a volume type object to retype_volume" 2024-04-17 10:37:13 +00:00
Zuul 6b228a4c15 Merge "volume: Add ability to set, unset image metadata" 2024-04-17 10:37:11 +00:00
Zuul 806a22abe5 Merge "volume: Allow setting volume statuses individually" 2024-04-17 10:37:09 +00:00
Mridula Joshi 67c1fb82c0 Adding SDK support for ``glance md-namespace-objects-delete``
In this patch, we have added support for deleting all objects from
the namespace.

Change-Id: Ieab58d35b11da4da57aab18c5de83c92f3e41bdc
2024-04-16 14:00:02 +00:00
Stephen Finucane 52b86348a1 volume: Allow passing a volume type object to retype_volume
Small quality of life improvement.

Change-Id: Ief3256cee7110a1e1920cd5e033586c1166f280e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-04-12 15:55:24 +01:00
Stephen Finucane 644087b270 volume: Add ability to set, unset image metadata
Another action down.

Change-Id: I4d59939bb9d6aa7e66d613e16f7ee89f610f9d5f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-04-12 15:51:58 +01:00
Stephen Finucane 52c5d74518 volume: Allow setting volume statuses individually
Some of these are admin-only. We don't want to force setting them all at
once.

Change-Id: I3b1694ee5e4dfd96315cc48b44b3d28c01aa3bfa
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-04-12 15:44:30 +01:00
Zuul 385aa2b457 Merge "Fix typo" 2024-04-11 15:27:42 +00:00
elajkat be6699639c Add Tap Mirrors to SDK
Depends-On: https://review.opendev.org/c/893086
Change-Id: If8151ebe82c3991c9cd2fed57ecb7723ab3db97c
Related-Bug: #2015471
2024-04-11 09:29:33 +02:00
Zuul f9f21e3e17 Merge "Add support for showing requested az in output" 2024-04-10 12:38:15 +00:00
Zuul 687888ac0d Merge "identity: Add access rule CRUD support" 2024-04-10 12:38:07 +00:00
Zuul fe18a3bef8 Merge "Adding SDK support for ``glance md-namespace-properties-delete``" 2024-04-10 11:03:48 +00:00
elajkat afdf1549d4 Add sort_key and sort_dir to core Neutron resources
Change-Id: Ia53396c05a99dbbdba668c6966e9c601965d001f
Related-Bug: #1999774
2024-03-25 13:38:21 +00:00
Cyril Roelandt 8b84bf0e59 image: make sure the target for "clear_cache" is valid
This commit:

- makes "both" the default target for clear_cache, as described by the
  documentation;
- makes sure an InvalidRequest exception is raised if another target is
  passed.

Change-Id: I61fccad78fc1b280395e0c590caaa2ee73586d93
2024-03-19 04:36:57 +01:00
Mridula Joshi 16ddc1ca79 Fixed update_metadef_object
Missed to retrieve the id of the metadef object.
Added the statement to fetch the id of the metadef_object to be
updated

Change-Id: I99f334fcd3a5a3886cdf734747a018e8bca61099
2024-03-04 06:39:33 +00:00
Rajesh Tailor 4f46ab3f8b Add support for showing requested az in output
This change adds support for showing the availability
zone requested during instance create server show and
server list --long output.

Also bump the _max_microversion to 2.96 to use the newly
added microversion.

Depends-On: https://review.opendev.org/c/openstack/nova/+/904568
Change-Id: Iafedc1b7eba682dedaf0bcb0a5af79e85501679a
2024-02-27 17:45:25 +05:30
Zuul 04cdd0a061 Merge "Resource locks and access rules restrictions" 2024-02-20 17:17:49 +00:00
silvacarloss 4e0d693816 Resource locks and access rules restrictions
Implement resource locks and access rules restrictions feature
in the openstacksdk.

Depends-On: Ib9f65a4523222f1224d51534c5061f90501b59d3
Change-Id: I45f9b06b1b41756d34f39604c82e28fd4eb102de
2024-02-19 12:58:42 -03:00
Zuul 76e088a056 Merge "Fix list of server migrations" 2024-02-18 19:45:04 +00:00
Pavlo Shchelokovskyy 8c988b7e62 Fix list of server migrations
the _list method goes straight through to formatting base_path with attrs,
and for server migrations the attr in the base path is server_uuid,
not server_id.

This patch fixes the base_path of the ServerMigration resource
to use server_id stanza.

Change-Id: I44335a22846f1a11ba60e8bb758b10c39e728897
Story: 2010633
Task: 47591
2024-02-15 23:02:50 +02:00
Stephen Finucane d1ff60d125 Fix typo
Change-Id: I160d95eebfe4de5bbea77820e40632f2a1dfd67a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-02-15 12:16:58 +00:00
Stephen Finucane 6ec4661005 docs: Add docs on configuration of a service user
Build upon I897325032ee7b0f559906e82be7f3a7695768c52 to give an
additional example using a service user.

Change-Id: Iac2b85ac19d100c68a9039583b55437aa8b4494e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-02-14 12:53:48 +00:00
Mridula Joshi 434adf775c Adding SDK support for ``glance md-namespace-properties-delete``
In this patch, we have added support for deleting all properties
from the namespace.

Change-Id: I6ec24881a09a96ac7c99f169835ce8b57d0f692a
2024-02-10 18:45:56 +00:00
Rajat Dhasmana a0cec19e1d Add missing snapshot parameters
This patch adds some of the missing snapshot parameters like:

consumes_quota - MV 3.65
group_snapshot_id - MV 3.14
user_id - MV 3.41

Change-Id: I7ece6168d0ac27712992778ecda87464897b00ea
2024-02-07 10:10:57 +00:00
Zuul b3c5a30d8f Merge "Add snapshot manage unmanage support" 2024-02-06 19:02:02 +00:00
Zuul 5fef752adb Merge "Support the API for managing external gateways" 2024-01-30 09:31:40 +00:00
Zuul d0165fc742 Merge "Return the results of init attachment request" 2024-01-30 09:31:38 +00:00
Zuul 460e87a91f Merge "[baremetal] port add shard, is_smartnic, name" 2024-01-30 09:31:36 +00:00
Zuul dd345b82dc Merge "Remove importlib-metadata from requirements" 2024-01-30 09:19:11 +00:00
Zuul ce0a7a285c Merge "Fix: Update/Delete type encryption operation" 2024-01-30 09:19:05 +00:00
Zuul 67a885124d Merge "Add volume manage support" 2024-01-30 09:09:25 +00:00
Zuul 0be708081a Merge "mypy: Add typing to openstack._log" 2024-01-30 09:09:23 +00:00
Zuul 3084adb3f8 Merge "mypy: Address issues with remaining service modules" 2024-01-30 09:09:21 +00:00
Zuul d7cd812ad6 Merge "Add support for provider_id for volume objects" 2024-01-30 09:09:19 +00:00
Zuul bfa9f46f56 Merge "pre-commit: Bump linter versions" 2024-01-30 09:09:17 +00:00
Luis Morales dd329d0a72 Add support for provider_id for volume objects
provider_id - MV 3.21

Change-Id: I99be623a2a669d527a9fcb8e26655c5efe8b6d57
2024-01-23 20:40:43 -06:00
Zuul f9ce151f90 Merge "mypy: Address issues with openstack.orchestration" 2024-01-18 16:41:01 +00:00
Zuul d276d30188 Merge "mypy: Address issues with openstack.clustering" 2024-01-18 16:40:55 +00:00
Zuul c4af95fb46 Merge "mypy: Address issues with openstack.baremetal, baremetal_introspection" 2024-01-18 12:47:36 +00:00
Zuul bc9e69364f Merge "mypy: Address issues with openstack.object_store" 2024-01-18 12:47:34 +00:00
Zuul 9137a8c417 Merge "[baremetal] Add some missing fields to node object" 2024-01-17 10:48:55 +00:00
Rajat Dhasmana a4feb32ac4 Add volume manage support
Add support for volume manage operation.

Change-Id: Ic31e92a501721b5ecbf56d44188d9dad95cd1ac3
2024-01-16 19:46:37 +05:30