* Update openstacksdk from branch 'master'
to 81d60c7874d02d36ba835e09a977509f8723fce9
- README: Add guide on raw HTTP layer
Highlight that one can do e.g. `conn.compute.get('/servers')`. You
almost certainly *don't want* to do this, but it can be helpful (see:
our support for Nova's os-hypervisors API in OSC).
The flow of the README is modified slightly so we go sequentially from
high-level layers to low-level layers. Rubrics (header-like elements
that don't produce anchors or appear in tables of contents) are also
added to produce improve information hierarchy.
Change-Id: Ifd4a5a2c753f6698fa4384a197e81cc5383ef312
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to 6dbc7e9e940b55afe8596c33807884bac9b1648f
- Merge "Fix multiple image_id query mappings"
- 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
* Update openstacksdk from branch 'master'
to 9892f1f9d51c062fd9379c5622ccd7eeb145f93a
- Merge "Adding SDK support for ``glance md-namespace-objects-delete``"
- 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
* Update openstacksdk from branch 'master'
to d0718dce122fc28f2387111b12e1487effd70b10
- Merge "image: make sure the target for "clear_cache" is valid"
- 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
* Update openstacksdk from branch 'master'
to e4737ed2ad4c9aafb167ef2f0fa1fbb1724b756d
- Merge "Add Binero public cloud to vendor support"
- Add Binero public cloud to vendor support
This adds the Binero public cloud vendor to the
vendor support document.
Change-Id: I5465f75859b6d72328cf7e4a1a5d33f99e2aac79
* Update openstacksdk from branch 'master'
to 416fd6f61870a8022452d9ddb2394b65ae0ca285
- Merge "Remove mypy union line which breaks older pythons."
- 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
* Update openstacksdk from branch 'master'
to 8c6a129b8cea97ae8534c921576cac4b347a6194
- Merge "Fixed update_metadef_object"
- 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
* Update openstacksdk from branch 'master'
to a39bc3c855379b7ffdcf703158b5021dc02f722d
- Merge "Add Tap Mirrors to SDK"
- Add Tap Mirrors to SDK
Depends-On: https://review.opendev.org/c/893086
Change-Id: If8151ebe82c3991c9cd2fed57ecb7723ab3db97c
Related-Bug: #2015471
* Update openstacksdk from branch 'master'
to cf5f4ce43760746eb025e2aab95fc52779f5ee2d
- Merge "volume: Allow passing a volume type object to retype_volume"
- 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>
* Update openstacksdk from branch 'master'
to 806a22abe5b403b7678180ee64f7921eb380325e
- Merge "volume: Allow setting volume statuses individually"
- 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>
* Update openstacksdk from branch 'master'
to f9f21e3e1787e5f2746c0e0faa0377a80de68adf
- Merge "Add support for showing requested az in output"
- 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
* Update openstacksdk from branch 'master'
to 687888ac0df589626a90c3ff701c310bd76c45a1
- Merge "identity: Add access rule CRUD support"
- identity: Add access rule CRUD support
This patch adds the client support of access rule in
application credentials [1].
[1] https://docs.openstack.org/api-ref/identity/v3/index.html#list-access-rules
Change-Id: I9e1eab6eb3ff6e152b408af2fe6ddc57c8c168b2
* Update openstacksdk from branch 'master'
to 8dc7c0d546327884b92563daa47c19518f27c245
- Merge "Fix the mailing list domain in documentation link"
- Fix the mailing list domain in documentation link
The docs had the openstack-discuss mailing list living at the
@openstack.org domain. In reality this list lives at the
@lists.openstack.org domain. Correct this.
Change-Id: Ifee33c8e5757b231d6cc6c3341d7d23072fce94d
* Update openstacksdk from branch 'master'
to fe18a3bef894293d9f7ab10a56fbeea50f53a170
- Merge "Adding SDK support for ``glance md-namespace-properties-delete``"
- 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
* Update openstacksdk from branch 'master'
to 4d9c40b74c2aca4c55403bbdb97769960acba518
- Merge "Update master for stable/2024.1"
- Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.
Sem-Ver: feature
Change-Id: Ic938d8d02cab2e7aa74008d33d2bedef60de43af
* Update openstacksdk from branch 'master'
to 601b21acadf30f54e158523b48af47d3cac23fa5
- Merge "reno: Update master for unmaintained/xena"
- reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.
Change-Id: I4f760e1f19e74dc252e1af5fa21f1c7cd039f42c
* Update openstacksdk from branch 'master'
to d307563435496e158bcf745df57773532d3e409b
- Merge "reno: Update master for unmaintained/victoria"
- reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.
Change-Id: Iafc5829b229ccb384249b531340cbeb88ad327b7
* Update openstacksdk from branch 'master'
to aabe1e04ba61d912e6f2c6da3fc62bc04af8ed1a
- reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.
Change-Id: I1a52b619d8b7646bf606494188971870bf133b50
* Update openstacksdk from branch 'master'
to 76e088a05619776beb60ad60febd988981e21b7d
- Merge "Fix list of server migrations"
- 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
* Update openstacksdk from branch 'master'
to c0e20c54898393e821f5bf6cf7a7169ee7eaac6f
- Merge "docs: Add docs on configuration of a service user"
- 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>
* Update openstacksdk from branch 'master'
to 568921ce5b50275061c5dd0ba7180842f3c157a7
- tox: Correct functional test factors
We are running functional tests in zuul without a 'pyNN' factor (e.g.
'tox -e functional'). For this to work, we need to allow an empty
factor, i.e. we want:
[testenv:functional{,-py310}]
rather than:
[testenv:functional{-py310}]
(note the missing comma)
Unfortunately we missed this as tox 4 has a currently unaddressed
regression [1] that results in it running the base testenv in the case
there is only a partial factor match. That needs to be fixed for avoid
this biting us again the future, but we can at least fix it for now.
[1] https://github.com/tox-dev/tox/issues/3219
Change-Id: Ib9f65a4523222f1224d51534c5061f90501b59d3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to c2baf1db41cce65ce1aa8ac8908c4e0d98f7a94c
- Merge "Incorrect protocol type in create_security_group_rule()"
- Incorrect protocol type in create_security_group_rule()
Example conn.network.create_security_group_rule() in examples/network/security_group_rules.py
uses wrong protocol type protocol='HTTPS'. HTTPS is not allowed value,
allowed values are: icmp, udp, tcp. It should be "protocol='tcp'" instead.
Closes-Bug: #2052860
Change-Id: I0fb0532ca562bcf93672a1ca3f1ce2e3ad864c6d
* Update openstacksdk from branch 'master'
to 6077e6c2ba3a461b79c3d90b16f8d3b39b8ee8c5
- reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.
Change-Id: Ifa66170e346564db6782ce6109c35044c919f861
* Update openstacksdk from branch 'master'
to 5fef752adbf437138f8bf0ec3467ff3eb2357ec2
- Merge "Support the API for managing external gateways"
- Support the API for managing external gateways
Relevant Neutron core change:
https://review.opendev.org/c/openstack/neutron/+/873593
Co-Authored-by: Frode Nordahl <frode.nordahl@canonical.com>
Partial-Bug: #2002687
Change-Id: Idedce3c0ae6f4239ff3c1df35dc1b9af0add0a58
* Update openstacksdk from branch 'master'
to d0165fc7422e1d26793cfdabc3d74d94b8f14786
- Merge "Return the results of init attachment request"
- Return the results of init attachment request
Methods ``openstack.block_storage.v3.volume.Volume.init_attachment`` and
``block_storage.init_volume_attachment`` now return the results of the
POST request instead of None. This replicates the behaviour of
cinderclient; the returned data is used by nova and ironic for managing
volume attachments.
Change-Id: I55ad94c872e807668b85125b32f142c3a8cf40bf
* Update openstacksdk from branch 'master'
to 460e87a91f94e419b93bd733b38586f7b62531b2
- Merge "[baremetal] port add shard, is_smartnic, name"
- [baremetal] port add shard, is_smartnic, name
Change-Id: Iead7d129479a850c60f08b366f0f9e4f02a53b83
* Update openstacksdk from branch 'master'
to dd345b82dcf717076758e40d158a144ee59304f2
- Merge "Remove importlib-metadata from requirements"
- Remove importlib-metadata from requirements
We don't need it anymore as we don't support python < 3.8
Also it was removed from global requirements so it breaks the
requirements check.
Change-Id: I9a053e4a2fd11b3cfcf2d9de6ba6441c7d5b0dc2
* Update openstacksdk from branch 'master'
to ce0a7a285c4954dbdeded96a9a8608922649724e
- Merge "Fix: Update/Delete type encryption operation"
- Fix: Update/Delete type encryption operation
When requesting to update/delete the volume type encryption,
we do a GET encryption type call and fail with KeyError: 'volume_type_id'.
This is because the request URL for GET encryption type is created as
'/types/%(volume_type_id)s/encryption'
and we are passing 'volume_type' instead of 'volume_type_id'.
This patch fixes the issue by passing 'volume_type_id'.
Story: #2010896
Task: #48686
Change-Id: Ic3d528e0e7b8e07a72f83cbe84442dc17ae32c27
* Update openstacksdk from branch 'master'
to 0be708081aed279df4e861ad3ac0779318e6e09b
- Merge "mypy: Add typing to openstack._log"
- mypy: Add typing to openstack._log
A nice easy one to start.
Change-Id: I9a08341002cbf90ba9dccaacaa5f2d3e7d7560a2
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to 3084adb3f8c2888a6cbe60fcd8577885ec34329a
- Merge "mypy: Address issues with remaining service modules"
- mypy: Address issues with remaining service modules
The changes here are all small enough to be bundled into one.
Change-Id: Ia585244e314a9bd18a7cd2388a2936517e25dbf2
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to d7cd812ad6eaa3a9bb45fb6ff605abb2dcdedfb9
- Merge "Add support for provider_id for volume objects"
- Add support for provider_id for volume objects
provider_id - MV 3.21
Change-Id: I99be623a2a669d527a9fcb8e26655c5efe8b6d57
* Update openstacksdk from branch 'master'
to bfa9f46f56ea8f73dcef493763dd6ad6e57bdad7
- Merge "pre-commit: Bump linter versions"
- pre-commit: Bump linter versions
Fix the issues this uncovers. We also migrate to the native hacking
pre-commit hook.
Change-Id: I44385c25fcb010f3e62b4098fd34ae3290292630
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to d276d30188da09dbf24ccfe08f1131978239543e
- Merge "mypy: Address issues with openstack.clustering"
- mypy: Address issues with openstack.clustering
This one is cool. We use overload to allow the value of 'Resource.find'
and 'Proxy._find' to vary depending on whether 'ignore_missing' is True
or False.
Change-Id: I386e10774dfb6ec9db80cbda9757446a2b5e4e57
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to bc9e69364fd24c304414732a54b748652a48f65c
- Merge "mypy: Address issues with openstack.object_store"
- mypy: Address issues with openstack.object_store
Another small bug to be corrected here: SDKException does not have a
'response' attribute.
Change-Id: I084336ba41147f824b92dc07235e5f19b7ac4a9c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to 9137a8c41760d1dc62950219f6138fd183c0dc96
- Merge "[baremetal] Add some missing fields to node object"
- [baremetal] Add some missing fields to node object
Adds the lessee, and description fields to the
node object, and adds basic testing to the conductor_group object
to just ensure it is populated when available.
Also, adds a test entry for is_automated_clean_enabled, as the value's
population was previously not set.
Change-Id: Ia1d9232400b679b82f1dfbeef55db3f9a4116862
* Update openstacksdk from branch 'master'
to c562274d11143ee2d6e3cf8307c0d30d91ab676a
- Merge "mypy: Address issues with openstack.network"
- mypy: Address issues with openstack.network
Just an incorrect type annotation to correct here. We need to figure out
a way to properly type the 'Resource' class with all its magic.
Change-Id: Id238b870de85a4663032710d1c15f6e200d2d543
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to f678714a802f303fd955432df760b2849350db97
- Merge "identity: Add test for 'role_assignments_filter' proxy method"
- identity: Add test for 'role_assignments_filter' proxy method
To prevent regressions. We also switch to retrieving only the ID of
provided resources, which should be faster.
Change-Id: Id61340ae026a41c77ce9d9ca031f488f1bf82c61
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to dc80f33ada5f7f9a0117b7ef63862259e21ac7ef
- Merge "Remove unnecessary `keys` calls"
- Remove unnecessary `keys` calls
Python >= 3.5 alternative: unpack into a list literal
Unpacking with * works with any object that is iterable and, since dictionaries return their keys when iterated through, you can easily create a list by using it within a list literal.
Adding .keys() i.e [*newdict.keys()] might help in making your intent a bit more explicit though it will cost you a function look-up and invocation. (which, in all honesty, isn't something you should really be worried about).
Refer [PEP 448](https://peps.python.org/pep-0448/)
Change-Id: Iecaf73c9fd89257e32478c622407b0a3883b9e0d
* Update openstacksdk from branch 'master'
to 6c8f2307ae33ee3be5b96193e33205bdd57bc226
- mypy: Address issues with openstack.identity
Another bug highlighted. A test will come later so as not to confuse
this patch.
Change-Id: I38f1a3911781470b77644cd42512408f8c03dc4d
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to 4cf4eea21b34ca51d85bb580aa7c02fb4b1dc744
- mypy: Address issues with openstack.block_storage
Our first significant bug! We were registering the 'group_type' module
rather than the 'GroupType' resource in our block storage v3 proxy's
resource registry. This is corrected. The rest of the changes are simply
to work around mypy (obviously) not being able to detect the key and
value types for empty dicts. Cinder doesn't care about the values of the
dict for most WSGI actions so this doesn't matter.
Change-Id: I4d9a4d4fcf08e8aa13b47314b24b2bb7226be3eb
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update openstacksdk from branch 'master'
to bbe8518c8c00ef28b3cdc80d3a2c6276dd55ac36
- mypy: Address issues with openstack.image
Change-Id: I361ab5c4ecb5b22bf794025d0a0039068783d788
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>