573 Commits

Author SHA1 Message Date
7c7092e72e Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: If0ead68bf815af40bfe690c7d1a3517efc8fd56e
2023-03-02 14:10:35 +00:00
Mridula Joshi
c0e8027e83 Add support for glance cache
Change-Id: I539807d329b9529580b298cc96172c3a120950e1
2023-02-14 12:28:22 +00:00
Artem Goncharov
9ea832d660 Prepare release note for R1.0
We made a technical problem releasing lot of breaking changes in 0.99,
but that was necessary due to inability to build RC. In order to log
things properly create an explanational releasenote describing issues
and repeating major stuff.

Change-Id: I34d68d2d22d0a5a221d976713ec7a0db4745b299
2023-01-30 15:35:17 +00:00
Zuul
e84deaa56a Merge "Finish Magnum rework" 2023-01-28 20:48:35 +00:00
elajkat
71dcfba0ca Add Tap Services and Flows to SDK
Change-Id: I631379e4711148a5a470a91b069d8b58019c0eef
Related-Bug: #1999774
2023-01-28 14:21:08 +01:00
Zuul
4b905ea9e7 Merge "Add BGP Speakers and Peers to SDK" 2023-01-28 13:15:10 +00:00
Artem Goncharov
a27619cbf4 Finish Magnum rework
- add coe service resource and proxy methods
- add coe cluster certificates resource and methods
- switch remaining cloud methods to use proxy
- add coe docs

Change-Id: I7532d03ad26785dccdcc37b19165c19246ebd6e1
2023-01-28 11:40:23 +01:00
Zuul
1b2a360d1c Merge "image: Add missing image import options" 2023-01-25 18:03:56 +00:00
elajkat
b8038e6535 Add BGP Speakers and Peers to SDK
Change-Id: If03254bf43652690fe3bbb106baa1da396247050
Related-Bug: #1999774
2023-01-19 13:51:06 +00:00
Zuul
37d7483439 Merge "Revert "Add 'details' parameter to various 'find' proxy methods"" 2023-01-17 22:06:20 +00:00
Stephen Finucane
433d97c40c image: Add missing image import options
Add support for the following options:

- remote_region
- remote_image_id
- remote_service_interface

In addition, we now return the response to the user.

Change-Id: I7ebb75896002ea8e0eca6617eb407e94050bce65
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-01-13 17:25:51 +00:00
Zuul
ca414f98c9 Merge "baremetal: Add Node boot_device methods" 2023-01-12 15:29:37 +00:00
Zuul
1b4bd78a13 Merge "baremetal: Add Node console methods" 2023-01-12 15:29:35 +00:00
Zuul
5de7c78c9a Merge "baremetal: Add Node.inject_nmi method" 2023-01-11 09:11:51 +00:00
Dr. Jens Harbott
6a0fd31a03 Revert "Add 'details' parameter to various 'find' proxy methods"
This partially reverts commit f9a3cc2f135e5c28fa1e046bb1ca034be36be9aa.

Reason for revert: The change to the baremetal functions is not working,
this part of the original change is reverted here.

Change-Id: Icc70bbdc06b5f32722a93775aee2da4d7b7ca4ae
2023-01-06 12:22:55 +01:00
Zuul
fa564289f3 Merge "compute: Pass microversion for actions" 2023-01-04 13:54:09 +00:00
Stephen Finucane
f075e90834 compute: Pass microversion for actions
This wasn't happening which meant we were using the default 2.1 API
version. Oops.

Change-Id: I26f29a47608b66fbafada0b99d71ea13adf4b52e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-20 12:28:26 +00:00
Stephen Finucane
f9a3cc2f13 Add 'details' parameter to various 'find' proxy methods
Allow retrieving "detailed" results where the API supports this.

Change-Id: I13f32e6ca9be9ed4eb42398aace47e3c5205a81f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-19 11:00:05 +00:00
Stephen Finucane
6fee18fcd1 Add 'all_projects' support to proxy layers
A number of compute and block storage APIs support this parameter. Plumb
them through. This turns out to be a bigger change than expected as it
highlights a number of gaps in our documentation.

Change-Id: Id4049193ab2e6c173208692ed46fc5f9491da3dc
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-19 10:59:58 +00:00
Stephen Finucane
e350c80aca Add missing block storage v2 'find_*' methods
These were present in v3 but not v2. Increasingly few people should be
using v2 but it's nice to be complete.

Change-Id: Ic2635b3c3eae5a735d79121fd17cb1fbdd07f9f0
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-19 10:31:08 +00:00
Stephen Finucane
6b937b2c6c Deprecate all of the compute image proxy APIs
This is the only proxy API we support in SDK. We should stop doing that.
For now, just deprecate it.

Some examples are updated to use the image API.

Change-Id: Id4905782e64998c7293625f22298bbce0baed82a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-19 10:27:43 +00:00
Stephen Finucane
d1384a98f7 baremetal: Add Node boot_device methods
Add Node.get_node_boot_device and Node. get_node_supported_boot_devices.
These were both missing previously.

Change-Id: Ie13ea2e50691298888fac37b6261d0a1d69fb8f1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-14 15:45:49 +00:00
Stephen Finucane
397562bc42 baremetal: Add Node console methods
Add Node.get_console and Node.set_console_mode methods. Noted while
attempting to migrate nova from ironicclient to openstacksdk

Change-Id: I6eb255de711b55d56056f8a29828f30e45a105c8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-14 15:45:47 +00:00
Zuul
17fde652ad Merge "Stop normalizing floating ips" 2022-12-05 15:20:18 +00:00
Zuul
0b2851dba1 Merge "Implement unified search_resources method" 2022-12-05 11:57:20 +00:00
Stephen Finucane
d0e8970503 baremetal: Add Node.inject_nmi method
Noted while attempting to migrate nova from ironicclient to
openstacksdk.

Change-Id: I3fc92219f55bb723d7675c1c0c078b9c9b8da304
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-05 11:33:58 +00:00
Zuul
03b2493cd0 Merge "Revert "compute/server: add support of target state for evacuate API"" 2022-11-22 13:49:12 +00:00
sean mooney
601e5199dc Revert "compute/server: add support of target state for evacuate API"
This reverts commit caa4e135e275ce6b453557d701a78701690d57b4.

Reason for revert: The spec is still under review and at the PTG we agrered not to add a target state paramater so the sdk change is not in line with the spec direction

Change-Id: I34873491d928ebd791150d1eda66f697f56e134f
2022-11-22 11:09:58 +00:00
Zuul
77c9e919a2 Merge "Cron Triggers proxy" 2022-11-21 20:25:52 +00:00
Zuul
c71cb1d5ae Merge "compute/server: add support of target state for evacuate API" 2022-11-21 18:58:44 +00:00
Artem Goncharov
2267d458bb Stop normalizing floating ips
Next steps of a cleanup of the cloud layer are:
- stop doing normalization of floating ips in case of neutron
- stop inheriting from _normalize in the floating_ip class (move 2
  required functions locally). Soon this is going to be reworked in
  favor of making better object support for those still using nova
  networking

Change-Id: If67c2f8b78240c03f86daefcf0f472502821365a
2022-11-21 16:24:18 +00:00
Artem Goncharov
6b62d28151 Implement unified search_resources method
We have a lot of search_XXX calls in the cloud layer, but not for everything.
They are also doing nearly same to what it is possible to do with plain proxy 
methods and therfore we want to simplify and unify this so that Ansible modules
can easily rely on a single function in different modules instead or needing a 
dedicated search method for every resource doing the same.

New method accepts resource_type, resource identifier (which may be
empty), filters and also possibility to pass additional args into the
_get and _list calls (for unpredicted special cases). With this all
search_XXX functions can be finally deprecated.

Change-Id: I375c2b625698c4920211eb6e089a1b820755be84
2022-11-18 17:12:42 +00:00
Artem Goncharov
dc6be6e906 Move get_compute_usage to use proxy
Address todo in compute cloud layer and move get_compute_usage to rely
to the proxy layer. With this change method returns Usage object instead
of munch. This also allows us to stop importing and inheriting from
normalize class here. "attached" filter of the search_floating_ips is
dopped since it is being pretty awkward.

Change-Id: I3de1654fc35b2985e4a0658f7117bbe9db554dd3
2022-11-18 16:48:25 +01:00
Zuul
818feaf8fa Merge "Use /servers/detail endpoint in find_server proxy method" 2022-11-10 13:56:02 +00:00
Rafael Castillo
25ec686c5b Use /servers/detail endpoint in find_server proxy method
Currently, find_server will return the objects with different
fields filled in depending on whether the term provided is an id or a
name. This patch, in the same vein of [0], changes the find_server
method so it uses the /servers/detail endpoint to find servers in the
case of a name being provided. This ensures that the method fills in all
fields in every case.

[0] https://review.opendev.org/c/openstack/openstacksdk/+/854293

Change-Id: If8306f879361f872a1a87d589c756d9ae2435449
2022-11-01 08:56:11 -07:00
Sahid Orentino Ferdjaoui
caa4e135e2 compute/server: add support of target state for evacuate API
Related-To: bp/allowing-target-state-for-evacuate
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: Ieb8681bb4fd4834666b7bdb31d0ea6339c396400
2022-10-21 10:05:39 +02:00
Danila Balagansky
d9ac526933 Cron Triggers proxy
Change-Id: I7dbcaf64f6c90410303c1bcfe9a2c4e734819034
2022-10-19 18:56:35 +03:00
Zuul
3b868c3d0b Merge "compute: Add support for triggering crash dumps" 2022-10-19 11:57:32 +00:00
Zuul
b5004db962 Merge "compute: Fix '*volume_attachment' proxy methods" 2022-10-18 14:51:29 +00:00
Zuul
99c5063052 Merge "Add identity.group_users method" 2022-10-18 14:51:26 +00:00
Polina-Gubina
a426e6565a Add identity.group_users method
Add method to list users of a group.

Change-Id: Ic2986b107c921752c9e174fe4b7209eec9bf7704
2022-10-15 10:39:28 +02:00
Stephen Finucane
ddf2a25049 compute: Fix '*volume_attachment' proxy methods
The majority of these were totally broken and unusable because nova
doesn't allow you to retrieve a volume attachment by its ID: rather,
you need to use a combination of the server and volume IDs. As such,
each method should have been taking a combo of a Server object or ID and
a *Volume* object or ID, not a VolumeAttachment object or ID. These
fixes require rather extensive changes to the method signature, to the
point that we've actually added a release note to call this out. We've
included some hacky workarounds to avoid breaking existing users for
now, giving them time to migrate to the new, improved patterns.

In addition, the 'update_volume_attachment' proxy method never worked
since updates were forbidden on the resource (via 'allow_commit=False').
This is fixed by changing this value to True.

Change-Id: Iaab40ac4cc71f7626063700f476b53f7ffb5f39f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-10-11 16:24:43 +01:00
Zuul
c839a8e997 Merge "Fix pre-commit issues" 2022-10-03 18:17:23 +00:00
Snow Kim
4b8a9ceb20 image: Add metadef schema resource to v2 api
* Add resource for (Glance) Metadata Definition Schema API
  (https://docs.openstack.org/api-ref/image/v2/metadefs-index.html?expanded=#metadata-definition-schemas)
* Adjust names to avoid abbreviations
* Adjust grouping
* Add tests
* Add docs and release note
* Trim underlines in docs
* Resolve merge conflict
* Seperate functional test to another file
* Rename test class name correctly

Change-Id: If2dfbca5ffbd425e4183b310af9534411318a395
2022-10-03 21:36:15 +09:00
Stephen Finucane
6e9acd5fef Fix pre-commit issues
I should have fixed these when adding pre-commit initially.

Change-Id: I082594b6dac985754c307dba6af61a6854d20d35
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-09-30 11:10:04 +01:00
Christian Rohmann
8034f84459 Add support for updated_at field for volume snapshots
Change-Id: Iba4aaa8a0aeec775d2ecfa17ff0ce065c6ffdaea
2022-09-22 13:07:19 +02:00
Zuul
a28d9f1601 Merge "Migrate register_machine to use the proxy layer" 2022-09-14 19:27:01 +00:00
Zuul
390fe4c515 Merge "added api requirements for new "openstack image metadefs namespace list" command" 2022-09-13 12:31:23 +00:00
Zuul
b019f2b319 Merge "Update master for stable/zed" 2022-09-09 16:21:11 +00:00
Zuul
9eac009508 Merge "Implement project cleanup for object-store" 2022-09-09 14:14:34 +00:00