Commit Graph

2330 Commits

Author SHA1 Message Date
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 6100d17609 Merge "[libvirt]Support hw_vif_model = igb" 2024-10-29 17:20:19 +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
Zuul f276ddd0f0 Merge "Remove Python 3.8 support" 2024-10-16 12:57:03 +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
Zuul 37076155e6 Merge "Support creating servers with RBAC SGs" 2024-10-09 19:42:35 +00:00
Hang Yang 95bde8b956 Support creating servers with RBAC SGs
Get the shared security groups the tenant has access to by making an
additional Neutron API call with the shared filter, if loaded.

Depends-On: https://review.opendev.org/c/openstack/neutron/+/811242
Related-Bug: #1942615
Implements: blueprint shared-security-groups
Change-Id: I6f2847e89a8e4c32ab7c992d6da229f820c4988d
2024-10-09 10:35:31 -04:00
Takashi Kajinami 91596bef6b Remove Python 3.8 support
Python 3.8 is no longer part of tested runtimes since 2024.2 . Removing
support for Python 3.8 allows us to replace deprecated md5 wrapper from
oslo.utils [1] by direct call of hashlib.md5.

[1] https://review.opendev.org/c/openstack/oslo.utils/+/930879

Also add python 3.12 to classifiers because now py312 unit test job is
voting.

Change-Id: I53da305538e27f2ff20a1ecb25960ebb03388011
2024-10-02 02:32:49 +09:00
Gorka Eguileor 8c1a47c9cf Support os-brick specific lock_path
Note: Initially this patch was related to new feature, but now it has
become a bug since os-brick's `setup` method is not being called and it
can create problems if os-brick changes.

As a new feature, os-brick now supports setting the location of file
locks in a different location from the locks of the service.

The functionality is intended for HCI deployments and hosts that are
running Cinder and Glance using Cinder backend.  In those scenarios the
service can use a service specific location for its file locks while
only sharing the location of os-brick with the other services.

To leverage this functionality the new os-brick code is needed and
method ``os_brick.setup`` needs to be called once the service
configuration options have been loaded.

The default value of the os-brick ``lock_path`` is the one set in
``oslo_concurrency``.

This patch adds support for this new feature in a non backward
compatible way, so it requires an os-brick version bump in the
requirements.

The patch also ensures that ``tox -egenconfig`` includes the os-brick
configuration options when generating the sample config.

Closes-Bug: #2081859
Change-Id: I1b81eb65bd145869e8cf6f3aabc6ade58f832a19
2024-09-24 18:07:04 +02:00
OpenStack Release Bot 6fb1997def Update master for stable/2024.2
Add file to the reno documentation build to show release notes for
stable/2024.2.

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

Sem-Ver: feature
Change-Id: If5ecb630ece21c7cfc9357820a9a6b9ddcad5c42
2024-09-20 08:15:50 +00:00
Zuul 9c36174539 Merge "nova-manage: modify image properties in request_spec" 2024-09-20 07:11:40 +00:00
Zuul d44f18ceae Merge "allow upgrade of pre-victoria InstanceNUMACells" 2024-09-19 13:30:45 +00:00
Zuul 39f141605d Merge "Fix regression with live migration on shared storage" 2024-09-19 08:59:48 +00:00
Matthew N Heler 035b8404fc Fix regression with live migration on shared storage
The commit c1ccc1a316 introduced
a regression when NUMA live migration was done on shared storage

The live migration support for the power mgmt feature means we need to
call driver.cleanup() for all NUMA instances to potentially offline
pcpus that are not used any more after the instance is migrated away.
However this change exposed an issue with the disk cleanup logic. Nova
should never delete the instance directory if that directory is on
shared storage (e.g. the nova instances path is backed by NFS).

This patch will fix that behavior so live migration will function

Closes-Bug: #2080436
Change-Id: Ia2bbb5b4ac728563a8aabd857ed0503449991df1
2024-09-13 17:06:12 +02:00
Sean Mooney 2a870323c3 allow upgrade of pre-victoria InstanceNUMACells
This change ensures that if we are upgrading a
InstanceNUMACell object created before victoria
<1.5 that we properly set pcpuset=set() when
loading the object form the db.

This is requried to support instances with a numa
topology that do not use cpu pinning.

Depends-On: https://review.opendev.org/c/openstack/python-openstackclient/+/929236
Closes-Bug: #2080556
Change-Id: Iea55aabe71c250d8c8e93c61421450b909a7fa3d
2024-09-13 15:57:47 +01:00
Sylvain Bauza 1eb45e768a Add Dalmatian prelude section
Shamelessly copied from the cycle highlights

Change-Id: I2d0584dee3f8133d6fb63fe4599de1ef76b42d62
2024-09-13 08:14:08 +00:00
zhong.zhou 2a1fad4145 nova-manage: modify image properties in request_spec
At present, we can modify the properties in the instance
system_metadata through the sub command image_property of
nova-manage, but there may be inconsistencies between their
values and those in request_specs.

And the migration is based on request_specs, so the same image
properties are also written to request_specs.

Closes-Bug: 2078999
Change-Id: Id36ecd022cb6f7f9a0fb131b0d202b79715870a9
2024-09-10 22:11:19 +08:00
Zuul c79bec0f22 Merge "libvirt: Launch instances with stateless firmware" 2024-09-01 07:57:54 +00:00
Zuul 52fa9bc4f7 Merge "libvirt: Add config option to require secure SPICE." 2024-08-30 00:28:04 +00:00
Michael Still e06890d101 libvirt: Add config option to require secure SPICE.
This patch adds the following SPICE-related configuration option
to the 'spice' configuration group:

- require_secure

When set to true, libvirt will be provided with domain XML which
configures SPICE VDI consoles to require secure connections (that
is, connections protected by TLS). Attempts to connect without
TLS will receive an error indicating they should retry the connection
on the TLS port.

Change-Id: Ica7083b0836f8d66cad8a4b4097613103fc91560
2024-08-21 18:09:50 +10:00
Takashi Kajinami 3169e7cebd libvirt: Launch instances with stateless firmware
This change implements the actual functionality to allow users to
launch instances with stateless firmware (read-only firmware image +
no NVRAM).

Note that this feature is supported by the libvirt virt driver, and
also requires libvirt >= 8.6.0.

Implements: blueprint libvirt-stateless-firmware
Change-Id: I7219bfa11ae98e65c326bec1a99c49d3e245cb9a
2024-08-21 10:52:05 +09:00
Dan Smith 068dbe0779 Deprecate AMI image formats
We have a lot of special cases all around our code for AMI (et al)
images, in the boot, snapshot, and other areas. It was recently
discussed (after the major CVE which was complicated by AMI support)
that we should drop these special cases and support for AMI with it.
This starts that timer.

Change-Id: I90efaaa35225ce82bada0b427e09c8289adaae1e
2024-08-12 07:25:02 -07:00
Zuul 7399728e89 Merge "Fix guard for NVMeOF volumes" 2024-08-09 05:11:51 +00:00
Takashi Kajinami 9a11bb2523 libvirt: Ensure swtpm_ioctl is available for vTPM support
Libvirt uses swtpm_ioctl to terminate swtpm processes. If the binary
does not exist, swtpm processes are kept running after the associated
VM terminates, because QEMU does not send shutdown to swtpm.

Closes-Bug: #2052761
Change-Id: I682f71512fc33a49b8dfe93894f144e48f33abe6
2024-07-27 22:08:47 +09:00
Zuul c1046979af Merge "conf: Add '[api] response_validation' option" 2024-07-23 15:16:27 +00:00
Zuul e4fca6f517 Merge "Server Rescue leads to Server ERROR state if original image is deleted" 2024-07-08 01:07:18 +00:00
Sahid Orentino Ferdjaoui f254729a56 scheduler: fix _get_sharing_providers to support unlimited aggr
A Request-Too-Long error can be raised in case of too many aggregates
are attached to a host. The fix is to split the requests.

The request is executed by host via a periodic task. Result is set in
cache so no performances impact is expected.

The change introduce a new compute configuration option
`compute.sharing_providers_max_uuids_per_request = 200`.

Closes-bug: #2068893

Change-Id: I1355c0813cb99067ead60f9835938566289beb20
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
2024-07-03 12:58:04 +00:00
Stephen Finucane 1a93703623 conf: Add '[api] response_validation' option
We have no schemas yet and thus nothing to use this, but we enable it in
our tests for when we start adding these.

Change-Id: I160ee724459403a10516a356ee860831545d7d65
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-06-24 11:42:50 +01:00
Zuul ac4a67cbda Merge "docs: Follow up for persistent mdevs" 2024-05-27 11:01:32 +00:00
Zuul 3dfdc10f63 Merge "libvirt: Create persistent mdevs" 2024-05-27 11:01:26 +00:00
melanie witt c7e49dfa16 docs: Follow up for persistent mdevs
This address review feedback on change
I7e1d10e66a260efd0a3f2d6522aeb246c7582178 to add some clarifying text
to the docs and release note.

Related to blueprint persistent-mdevs

Change-Id: I472552c64cc2c2ce06896158664faac0199d90bd
2024-05-23 18:29:04 +00:00
Zuul d7d2fb1edd Merge "scheduler: AggregateMultitenancyIsolation to support unlimited tenant" 2024-05-23 15:35:54 +00:00
Balazs Gibizer 3c0eadae0b Reject AZ changes during aggregate add / remove host
After this patch nova rejects the add host to aggregate API action
if the host has instances and the new aggregate for the host would
mean that these instances need to move from one AZ (even from the
default one) to another. Such AZ change is not implemented in nova
and currently leads to stuck instances.

Similarly nova will reject remove host from aggregate API action if the
host has instances and the aggregate removal would mean that the
instances need to change AZ.

Depends-On: https://review.opendev.org/c/openstack/tempest/+/821732

Change-Id: I19c4c6d34aa2cc1f32d81e8c1a52762fa3a18580
Closes-Bug: #1907775
2024-05-08 14:56:56 +02:00
OpenStack Release Bot fa678870b2 reno: Update master for unmaintained/zed
Update the zed release notes configuration to build from
unmaintained/zed.

Change-Id: I2f9a940845996d8870936df81ab35fa3908df82b
2024-04-30 15:00:34 +00:00
Sahid Orentino Ferdjaoui 3cd26b0a08 scheduler: AggregateMultitenancyIsolation to support unlimited tenant
This commit removes the previous limitation on the number of tenants
that can be filtered using the `filter_tenant_id` aggregate property
in the AggregateMultitenancyIsolation scheduler filter.

The `filter_tenant_id` can now be used as a suffix, allowing for an
unlimited number of tenant ID properties to be set on the
aggregate. This update maintains backward compatibility.

Implements: blueprint aggregatemultitenancyisolation-to-support-unlimited-tenant
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: Ic87d142647774b62a6af2cc5eb7a3cd66f9afeb7
2024-04-26 07:07:03 +00:00
melanie witt 74befb68a7 libvirt: Create persistent mdevs
Related to blueprint persistent-mdevs

Change-Id: I7e1d10e66a260efd0a3f2d6522aeb246c7582178
2024-03-21 23:44:32 -04:00
Zuul 9ebb9d1198 Merge "reno: Update master for unmaintained/wallaby" 2024-03-21 10:24:26 +00:00
Zuul 1634e07324 Merge "reno: Update master for unmaintained/victoria" 2024-03-21 10:22:25 +00:00
Zuul 36c686dc32 Merge "reno: Update master for unmaintained/xena" 2024-03-21 10:18:56 +00:00
Zuul 3a9d8406b4 Merge "Update master for stable/2024.1" 2024-03-20 03:59:59 +00:00
Zuul e61bb3cf8f Merge "Add new nova.wsgi module" 2024-03-19 19:42:11 +00:00
OpenStack Release Bot 8f219fce3f 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: Ifc9062236483c2139921ccdb2ceed197aa6b8b11
2024-03-19 10:21:00 +00:00
Sylvain Bauza 1ddfda5b11 Add a Caracal prelude section
Shamelessly copied from the cycle highlights.

Change-Id: I6fd5ce392ee07700600ccae8916cd4e6b524cbc3
2024-03-18 19:59:41 +01:00
OpenStack Release Bot 37b5ed6450 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: Icc46726d7849a8b4ecdbfb913745c5acfd61ebb4
2024-03-05 18:51:27 +00:00
OpenStack Release Bot e0107e286c reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I4adad186800b900485737c6b1e88bf658f55d72d
2024-03-05 18:49:52 +00:00
OpenStack Release Bot fda1715744 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I262dfacc85520a3d26b211b92f22abd9a105c2fd
2024-03-05 18:47:53 +00:00
Zuul 39de10777b Merge "Add support for showing requested az in output" 2024-03-01 20:39:00 +00:00
Rajesh Tailor c98c8d84ee Add support for showing requested az in output
As of now, the server show and server list --long output
shows the availability zone, that is, the AZ to which the
host of the instance belongs. There is no way to tell from
this information if the instance create request included an
AZ or not.

This change adds a new api microversion to add support for
including availability zone requested during instance create
in server show and server list --long responses.

Change-Id: If4cf09c1006a3f56d243b9c00712bb24d2a796d3
2024-03-01 21:39:04 +05:30
Zuul 1c903ccc8d Merge "Fix nova-metadata-api for ovn dhcp native networks" 2024-03-01 12:34:52 +00:00