Commit Graph

7610 Commits

Author SHA1 Message Date
Zuul 601b21acad Merge "reno: Update master for unmaintained/xena" 2024-03-07 11:03:37 +00:00
Zuul d307563435 Merge "reno: Update master for unmaintained/victoria" 2024-03-07 11:03:35 +00:00
OpenStack Release Bot c689bbaf60 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I4f760e1f19e74dc252e1af5fa21f1c7cd039f42c
2024-03-07 08:45:52 +00:00
OpenStack Release Bot aabe1e04ba reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I1a52b619d8b7646bf606494188971870bf133b50
2024-03-07 08:44:45 +00:00
OpenStack Release Bot af2c520b91 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Iafc5829b229ccb384249b531340cbeb88ad327b7
2024-03-07 08:43:47 +00:00
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
Zuul c0e20c5489 Merge "docs: Add docs on configuration of a service user" 2024-02-16 18:33:17 +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 568921ce5b 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>
2024-02-15 14:23:45 +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
Zuul c2baf1db41 Merge "Incorrect protocol type in create_security_group_rule()" 2024-02-12 11:29:34 +00:00
Radoslaw Smigielski 4baf2eb2c3 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
2024-02-11 08:09:57 +01: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
OpenStack Release Bot 6077e6c2ba reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ifa66170e346564db6782ce6109c35044c919f861
2024-02-05 16:13:41 +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
Zuul c562274d11 Merge "mypy: Address issues with openstack.network" 2024-01-10 13:07:44 +00:00
Zuul f678714a80 Merge "identity: Add test for 'role_assignments_filter' proxy method" 2024-01-10 12:54:56 +00:00
Zuul dc80f33ada Merge "Remove unnecessary `keys` calls" 2024-01-10 10:58:51 +00:00
Stephen Finucane 92868d3e8b 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>
2024-01-09 11:57:24 +00:00
Stephen Finucane d506b9ff49 mypy: Add typing to openstack._log
A nice easy one to start.

Change-Id: I9a08341002cbf90ba9dccaacaa5f2d3e7d7560a2
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-01-09 10:54:07 +00:00
Stephen Finucane 554dc6284c 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>
2024-01-09 10:54:07 +00:00
Stephen Finucane a7cfc5342f mypy: Address issues with openstack.orchestration
Change-Id: I181b1ddee04b2514283b4d742e74b9bd54790414
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-01-09 10:54:07 +00:00
Stephen Finucane 4c1ced6ae2 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>
2024-01-09 10:54:07 +00:00
Stephen Finucane b6cc1d817d mypy: Address issues with openstack.baremetal, baremetal_introspection
Yet another bug here: we weren't passing 'session' arguments.

Change-Id: Id9c5bafe8bc71024ff6d453870553dd45b6576d1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-01-09 10:54:07 +00:00
Stephen Finucane 5d47d65d00 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>
2024-01-09 10:54:07 +00:00
Stephen Finucane 4f8d4102f5 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>
2024-01-09 10:54:07 +00:00
Stephen Finucane f8a0ec9a63 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>
2024-01-09 10:54:07 +00:00
Stephen Finucane 6c8f2307ae 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>
2024-01-09 10:54:07 +00:00
Stephen Finucane 4cf4eea21b 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>
2024-01-09 10:54:07 +00:00
Stephen Finucane bbe8518c8c mypy: Address issues with openstack.image
Change-Id: I361ab5c4ecb5b22bf794025d0a0039068783d788
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-01-09 10:54:07 +00:00
Zuul 83b15cee10 Merge "zuul: Switch bifrost job to jammy" 2024-01-09 08:28:55 +00:00