Commit Graph

61025 Commits

Author SHA1 Message Date
Stephen Finucane fde3f5cce6 api: Add response body schemas for versions APIs
We move a check for unset microversions to after the check for a min or
max version filter. If we're not filtering, we don't need to fail.

Change-Id: Ic3b11b8233b3bb3e5016bce6653bb86908ef8874
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-22 23:01:42 +00:00
Stephen Finucane 9797183494 api: Add response body schemas for extensions API
Change-Id: I52a3c9b9eff86044033fb199421a7d6ce6d7d1d3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-22 23:01:29 +00:00
Stephen Finucane 14bb8ff237 api: Add response body schemas for host aggregate APIs
We already tackled the action APIs for this resource. Now tackle the
remaining APIs.

Change-Id: I62de0e325d86f761a09c5a70e80d8d8209ed4bf1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-22 23:01:16 +00:00
Stephen Finucane eec975c063 api: Add response body schemas for host aggregate actions API
Change-Id: Id6644a943c7ac735e3abf072bdc78674645945a4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-22 23:00:59 +00:00
Stephen Finucane b967f2a693 api: Add response body schemas for remaining server action APIs
This demonstrates far more complex response schemas, including the
response to the rebuild action which is effectively the response to the
server show API.

Change-Id: I6dc355f3c3f164d0bc7887a58e8b13979f0b476e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-22 14:23:48 -08:00
Stephen Finucane 908d9263ee api: Add response body schemas for server action APIs
At least those that don't return bodies (plus rescue, which is easy)
since they're tedious but simple, thus providing a good test ground for
this effort.

Change-Id: I78003b1d2c1515e5fd5e17405df6a219878bdb8a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-22 12:40:45 +00:00
Zuul 9a1872d30e Merge "Amend DB model add a unique constraint." 2024-11-21 19:09:02 +00:00
Zuul 40805343e7 Merge "Amend ShareMappingStatus due to asynchronous call" 2024-11-21 19:08:53 +00:00
Zuul 826557706d Merge "nova-manage: Add flavor scanning to migrate_to_unified_limits" 2024-11-21 17:13:26 +00:00
René Ribaud bb247ef96b Amend DB model add a unique constraint.
This update adds a constraint between instance_uuid and share_id to
make sure it will be unique. It aims to avoid potential conflicts
from simultaneous API creation requests, which could result in the
creation of duplicate records in the database.

Manila is the OpenStack Shared Filesystems service. These series
of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances
using virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares
Change-Id: I419fd40baf9acf487154eebc77c181633ea53272
2024-11-21 09:48:12 +01:00
René Ribaud aea56e9bcc Amend ShareMappingStatus due to asynchronous call
This update introduces the "attaching" status, which indicates
the beginning of a connection between a share and a server. When
this occurs, the compute system will permit a policy to connect
the share through Manila and will record this connection in the
share_mapping table. Once completed, the status will transition to
"inactive." Additionally, the "detaching" status has been added to
indicate the end of a link between a share and a server. During this
process, the compute system will revoke the share's policy and delete
its entry from the share_mapping table.

Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances using
virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares
Change-Id: I1724940474b2e96e0c3962095f77df55c749529a
2024-11-21 09:48:12 +01:00
melanie witt 294e21c803 nova-manage: Add flavor scanning to migrate_to_unified_limits
This makes 'nova-manage limits migrate_to_unified_limits' scan the API
database for flavors and detect if any resource classes are missing
registered limits in Keystone.

Related to blueprint unified-limits-nova-unset-limits

Change-Id: I431176fd4d09201c551d8f82c71515cd4616cfea
2024-11-21 02:02:26 +00:00
Zuul e8a544f0e1 Merge "Remove workaround for eventlet < 0.27.0" 2024-11-20 06:01:57 +00:00
Zuul fc02082d95 Merge "Replace deprecated constant_time_compare" 2024-11-19 17:55:29 +00:00
Zuul 4f845a8aae Merge "Drop remaining logic for websockify < 0.9.0" 2024-11-19 17:55:21 +00:00
Zuul 1acaf899a6 Merge "Clean up the remaining logic for Windows OS Support" 2024-11-14 22:52:06 +00:00
Zuul dfdb833038 Merge "Skip functional tests on pre-commit config update" 2024-11-12 16:35:48 +00:00
Zuul ecc14912b6 Merge "docs: Correct unified limits CLI commands" 2024-11-12 12:22:13 +00:00
Zuul b58d98c933 Merge "docs: Change note:: to warning:: for service user token" 2024-11-12 12:22:06 +00:00
Takashi Kajinami b476f0c615 Skip functional tests on pre-commit config update
This file is used only in code style checks.

Change-Id: Ia1787dc618a12aca23f6302c3d9c7db44676be88
2024-11-11 15:54:15 +00:00
Takashi Kajinami 0254e5da7d Drop remaining logic for websockify < 0.9.0
The minimum version of websockify was already bumped to 0.9.0 by [1].

[1] 082dc59b89

Change-Id: I836301599e8be67ea0a6b51e6f78bbbea71c0433
2024-11-09 10:49:03 +09:00
Zuul 3b530ac15b Merge "Route shared storage RPC to evac dest at startup" 2024-11-06 18:45:13 +00:00
Zuul 3821e7cd66 Merge "Reproduce bug 2085975 in functional" 2024-11-06 17:24:43 +00:00
Zuul 0a59078935 Merge "[doc]Add socket option to [pci]alias numa_policy" 2024-11-04 14:32:22 +00:00
Balazs Gibizer 2c76fd3baf Route shared storage RPC to evac dest at startup
If a compute is started up while an evacuation of an instance from this
host is still in progress then the destroy_evacuated_instances call will
try to check if the instance is on shared storage to decide if the local
disk needs to deleted from the source node or not. However this call
uses the instance.host to target the RPC call. If the evacuation is
still ongoing then the instance.host might still be set to the source
node. This means the source node during init_host tries to call  RPC
on itself. This will always time out as the RPC server is only started
after init_host. Also it is wrong as the shared storage check RPC
should be called on another host. Moreover when this wrongly routed RPC
times out the source compute logs the exception, ignores it, and the
assume the disk is on shared storage so won't clean it up. This means
that a later evacuation of this VM targeting this node will fails as the
instance directory is already present on the node.

The fix is simple, the destroy_evacuated_instances call should always
send the shared storage check RPC call to the destination node of the
evacuation based on the migration record. It will be correct even if the
evacuation is still in progress or even if it is already finished.

Closes-Bug: #2085975
Change-Id: If5ad213649d68da995dad146f0a0c3cacc369309
2024-11-04 11:01:04 +01:00
Balazs Gibizer 1d6c80bfe6 Reproduce bug 2085975 in functional
Related-Bug: #2085975

Change-Id: I1b5e1b27fe9b204eaeb5918bbb6dbc24d7212ff7
2024-10-30 16:29:34 +01:00
Zuul 110849f7f9 Merge "[doc]Developer doc about PCI and SRIOV testing" 2024-10-29 17:20:28 +00:00
Zuul 6100d17609 Merge "[libvirt]Support hw_vif_model = igb" 2024-10-29 17:20:19 +00:00
Zuul 27aa5e1cee Merge "[ovo]Add igb value to hw_vif_model image property" 2024-10-29 17:05:55 +00:00
Zuul 47646373e0 Merge "Refactor obj_make_compatible to reduce complexity" 2024-10-29 16:14:00 +00:00
Balazs Gibizer f97d674d08 [doc]Developer doc about PCI and SRIOV testing
Change-Id: I8bbeb80735a8b56df753f15fd1216961213e82d0
2024-10-29 12:52:42 +01:00
Balazs Gibizer df4cb00b71 [doc]Add socket option to [pci]alias numa_policy
The numa_policy field in the pci alias supports the same value as the
flavor extra_spec hw:pci_numa_affinity_policy but the config doc was not
updated when the socket value is implemented.

Closes-Bug: #2085824
Change-Id: I997d10638020fc9d60e784e64e395e6e0a9c9430
2024-10-29 11:04:38 +01:00
Zuul a8733bae3c Merge "Adding sysctl changes for post-copy migration" 2024-10-26 06:07:18 +00:00
Zuul e4bd839547 Merge "Update api-ref for 2.95: evacuate to STOPPED" 2024-10-26 06:01:29 +00:00
Zuul 796250fa0d Merge "libvirt: Deprecate volume driver for unsupported volume backends" 2024-10-24 17:13:00 +00:00
Balazs Gibizer 07295b0f99 [libvirt]Support hw_vif_model = igb
Makes igb vif model supported for hosts with libvirt 9.3.0 and qemu
8.0.0 or higher.

Implements: blueprint igb-vif-model

Depends-On: https://review.opendev.org/c/openstack/os-traits/+/928582
(merged, released as 3.2.0)

Change-Id: I6a1d8058c640e5dc015889610c4ae864ed9a5ccb
2024-10-24 13:15:10 +02:00
Balazs Gibizer 638efe3cd5 [ovo]Add igb value to hw_vif_model image property
Qemu 8.0 and libvirt 9.3.0 added support for qemu emulated igb
network device. This patch adds the new igb value for hw_vif_model
so nova could eventually support booting VMs with such devices.

Subsequent patches will enable libvirt support.

Implements: blueprint igb-vif-model

Change-Id: I9c8dc1a663d0534d62798c5b4c8d4539551f7ae4
2024-10-24 13:15:10 +02:00
Balazs Gibizer b36b7b3a66 Refactor obj_make_compatible to reduce complexity
Our tox.ini sets the maximum complexity of a function to be 40. Adding
anything new to the ImageMetaProps.obj_make_compatible push it over the
limit. So this patch factors out common new field value checking logic
to a helper function to reduce the complexity before adding new supported
values.

As there was a small amount of this check in other ovos this patch does
the refactor across all nova ovos.

Change-Id: I828d91196ea06f4dc2823218f036960123446255
2024-10-24 13:15:10 +02:00
Zuul ed2bf3699d Merge "VMware: updates resource provider trait list" 2024-10-16 19:04:53 +00:00
Zuul f276ddd0f0 Merge "Remove Python 3.8 support" 2024-10-16 12:57:03 +00:00
Zuul 3885c31326 Merge "Libvirt: updates resource provider trait list" 2024-10-16 11:39:17 +00:00
Takashi Kajinami 72e60b5a28 Clean up the remaining logic for Windows OS Support
Since Hyper-V driver was removed, we don't expect any use case where
nova should be deployed in Windows OS. This scenario is no longer
tested since WinStackers project has been retired.

Drop the remaining code for Windows OS support to reduce unused code
and focus purely on linux systems.

Change-Id: I69b049d13556efe87f4be32f5e6e7f88e42f3b2a
2024-10-16 02:08:55 +09:00
Zuul 741e1b3870 Merge "Revert "Test live migration between hosts with differnet cpu_shared_sets"" 2024-10-14 17:19:00 +00:00
Balazs Gibizer 7344a87bdf Revert "Test live migration between hosts with differnet cpu_shared_sets"
The nodepool provides different VMs as computes it can have 8 or 4 cpus.
So the reverted commit breaks the test runs that uses 4 cpu computes. We
need a smarter solution and until then we need to get back to a stable
CI.

This reverts commit aca63b66e5.

Change-Id: Id48c6143533fa97f0b79936a4551f0e19751db44
2024-10-14 14:42:43 +02:00
Zuul 6d1eda3000 Merge "Imported Translations from Zanata" 2024-10-14 11:44:12 +00:00
Takashi Natsume cec149be9d Update contributor guide for 2025.1 Epoxy
Change-Id: Id4843abded5a96167c602974c730ed2fbb475ac8
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2024-10-12 12:35:07 +00:00
Takashi Kajinami 818b0da7a8 libvirt: Deprecate volume driver for unsupported volume backends
The following volume drivers were marked unsupported in cinder, and
subject for removal in future releases.
 - Quobyte: 2c1a77056672b35d51ef15242d59a2d81d8a7696
 - Windows SMB: c690fe7cbd0d307d92689f4fae03423aa7a91157
 - Virtuozzo: cf01d7eaf370485fe3fb834a3bcad13b0773b6e1

Deprecate the libvirt volume drivers specifically used for these
backends, so that we can remove the corresponding volume driver code
from nova when cinder removes these drivers.

Change-Id: Ib5b2fbc3fbf1c076ab1eec611b471f16a5b71c06
2024-10-12 19:17:57 +09:00
OpenStack Proposal Bot 6167600e76 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7681add5e3798eb1379a1a715a02e66f34f7f922
2024-10-11 04:51:15 +00:00
Amit Uniyal 4f587a58fa VMware: updates resource provider trait list
updates resource provider trait list for hw architecture

Change-Id: Ie7a7a154e6ca43b5eaf8094df420a0c7d14bcebc
2024-10-09 22:04:19 -04:00
Zuul 37076155e6 Merge "Support creating servers with RBAC SGs" 2024-10-09 19:42:35 +00:00