Commit Graph

7666 Commits

Author SHA1 Message Date
Zuul 67887103ac Merge "Allow filtering BGPVPNs" 2024-04-26 20:07:41 +00:00
Zuul e4cd7e0abc Merge "Add quota class set to shared file system" 2024-04-26 18:28:24 +00:00
Zuul 37db30af3c Merge "Fix AttributeError in delete_limit method" 2024-04-26 15:04:13 +00:00
Zuul 1b6292c5a3 Merge "cloud: Do not reference other cloud mixin's methods" 2024-04-26 14:06:02 +00:00
Zuul 5041ea8687 Merge "cloud: Trivial fixes" 2024-04-26 13:53:55 +00:00
Zuul 05279611f9 Merge "cloud: Remove use of OpenStackCloudCreateException" 2024-04-26 13:07:40 +00:00
Zuul 12de8a105e Merge "hacking: Add check for deprecated exception types" 2024-04-26 12:36:08 +00:00
Zuul f22f20a9f6 Merge "Allow tags to be passed through to compute.create_server" 2024-04-26 12:33:58 +00:00
Zuul b77ebf2ae0 Merge "image: Pass correct stores argument" 2024-04-26 12:33:56 +00:00
Zuul 7ad4623a97 Merge "Add Binero public cloud to vendor" 2024-04-26 12:33:54 +00:00
Zuul 28059afdfd Merge "pre-commit: Bump versions" 2024-04-26 11:41:09 +00:00
Emilien Lefrancois 113e41250c Fix AttributeError in delete_limit method
This commit resolves an issue in the delete_limit method of the
Identity V3 Proxy class. The method was incorrectly trying to
access a 'Limit' attribute of a 'Limit' object, causing an
AttributeError. The fix involves correctly passing the 'Limit'
class from the '_limit' module as the first argument to the
'_delete' method.

Closes-Bug: #2052650
Change-Id: I435f52f8085c899fe1be57fcd5a2ce6f04618427
2024-04-26 11:20:28 +00:00
Stephen Finucane a8adbadf0c cloud: Do not reference other cloud mixin's methods
We are using a mixin-like pattern to construct the cloud layer of our
API. However, this is not a true mixin pattern since each of the
"mixins" have dependencies on each other and to be honest, it's really
only there to allow us to split up the otherwise giant 'Connection'
object. Unfortunately this pattern doesn't really work with type
checkers or language servers since there's no obvious way to identify
where the additional resources are coming from until they're combined in
the 'Connection' class. Fixing this will require multiple steps, but the
first it to remove all dependencies between the various service mixins.
As such, rather than depending on e.g. the 'get_volume' cloud method in
various compute-related cloud methods, we use the 'find_volume' proxy
method. A later change can then add these various proxy attributes,
exposing them.

Change-Id: I10d3782899ac519f715d771d83303990a8289f04
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-04-26 11:48:42 +01:00
Stephen Finucane 763e09a4b1 cloud: Trivial fixes
Before we combine the various nova-net/neutron common network functions
address a few nits around return statement indentation and docstring
wrapping.

Change-Id: I992673d30225c6639012fd4add91e86ac5e72966
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-04-26 11:48:40 +01:00
Stephen Finucane f90fd9a307 cloud: Remove use of OpenStackCloudCreateException
We'd like to get rid of the openstack.cloud.exc module. This exception
has one user so it is an easy cull.

Change-Id: I9b6a96d3b4d66ed69d87ba2a1d27bee9bab8c98d
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-04-26 10:45:27 +01:00
Stephen Finucane 5de45a329d hacking: Add check for deprecated exception types
We also move everything to a new module with no external imports so
flake8 can import it without needing to install all the dependencies of
openstacksdk.

Change-Id: I8e610bc196f530223b27a6fbb8e8ca11b6420b82
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-04-26 10:45:27 +01:00
Stephen Finucane 81d60c7874 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>
2024-04-24 11:11:56 +01:00
Stephen Finucane e67a7b14b9 pre-commit: Bump versions
We apply fold in the new black changes also.

Change-Id: I632728aa81e6c55423c0275a0a9b35e0753980a6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-04-23 12:16:51 +01:00
Sebastian Lohff 761d558e17 Allow filtering BGPVPNs
BGPVPNs can be filtered server-side when being listed. The most
interesting filters here are for routers, networks and ports, as these
allow to filter for a specific association the BGPVPN has, but the other
filter options might come in handy as well.

route|import|export-target support only exact matches in the BGPVPN API,
meaning all entries need to be given in the right order as a comma
separated string. As this is quiet counter-intuitive for a user (that
might expect they could provide only one or unsorted entries) these
attributes have been left out.

Change-Id: I355b6584e115cf70a7fd040a24d30f9686555b85
2024-04-23 12:20:30 +02:00
Stephen Finucane e409254ed5 image: Pass correct stores argument
Change I3b897abccfecf9353be07abc8f8325d91f3eb9d4 introduced support for
multiple image stores. Unfortunately a typo was included that has been
carried forward since. Correct the mistake now and add a test to prevent
regressions.

Change-Id: I4d2c81d19d295aae8a77007a1c7de7083d061f24
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-04-23 10:40:48 +01:00
Manuel Osorio f73335df5a
Add quota class set to shared file system
Add Quota class set Get and Update api implementation
to file share system as a service.

Change-Id: Id1c5591e7954d1d1f97b58ab409b4bd985e63125
2024-04-22 22:06:40 -04:00
Tobias Urdin fab08babab Add Binero public cloud to vendor
The [1] patch missed the actual
vendor JSON file.

[1] https://review.opendev.org/c/openstack/openstacksdk/+/915984

Change-Id: I22683505b4a7cf9c10314966309089b6e0ccf199
2024-04-22 21:23:11 +02:00
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 e4737ed2ad Merge "Add Binero public cloud to vendor support" 2024-04-22 17:04:43 +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
Tobias Urdin 111d72d513 Add Binero public cloud to vendor support
This adds the Binero public cloud vendor to the
vendor support document.

Change-Id: I5465f75859b6d72328cf7e4a1a5d33f99e2aac79
2024-04-16 14:36:03 +02: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 8dc7c0d546 Merge "Fix the mailing list domain in documentation link" 2024-04-10 11:15:15 +00:00
Zuul fe18a3bef8 Merge "Adding SDK support for ``glance md-namespace-properties-delete``" 2024-04-10 11:03:48 +00:00
Zuul 4d9c40b74c Merge "Update master for stable/2024.1" 2024-04-03 17:32:25 +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
OpenStack Release Bot 4b1e75aad6 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
2024-03-08 13:57:08 +00:00
Zuul 601b21acad Merge "reno: Update master for unmaintained/xena" 2024-03-07 11:03:37 +00:00