Commit Graph

58559 Commits

Author SHA1 Message Date
Balazs Gibizer bc2c19bb2d Reset global wsgi app state in unit test
Since I2bd360dcc6501feea7baf02d4510b282205fc061 there is a global state
set during the wsgi_app init making our unit test cases
non-deterministic based on the order of them. This patch makes sure
that the global state is reset for each test case.

Change-Id: Ie2ba746a7697a70fdbc6594f02257f78becfe962
Closes-Bug: #1921098
2021-03-24 12:04:51 +01:00
Zuul 83f4514b0a Merge "Initialize global data separately and run_once in WSGI app init" 2021-03-23 16:55:49 +00:00
Zuul 50f4840048 Merge "Dynamically archive FK related records in archive_deleted_rows" 2021-03-23 13:19:38 +00:00
Zuul 3de7fb7c32 Merge "Add missed accel_uuids for _poll_shelved_instances" 2021-03-21 06:16:32 +00:00
Zuul 6fd4c8d5b3 Merge "Add release note for vDPA" 2021-03-20 10:40:04 +00:00
Zuul 70e7aff46e Merge "tests: Add functional test for vDPA device" 2021-03-20 10:39:34 +00:00
Zuul c49bd42efb Merge "api: Block unsupported actions with vDPA" 2021-03-20 10:27:32 +00:00
Zuul 9feafc33ab Merge "releasenotes: Fix typo" 2021-03-19 19:02:10 +00:00
Zuul b7a10121b3 Merge "doc: mark the max microversion for wallaby" 2021-03-19 17:49:03 +00:00
Kashyap Chamarthy 064349a888 releasenotes: Fix typo
Stephen asked nicely[1] on the review to fix this in a follow-up.  (I
guess it's because release notes are public, and it's nice not to have
typos in them.)

[1] https://review.opendev.org/c/openstack/nova/+/780908/1/releasenotes/notes/deprecate-tunnelled-live-migration-81c06a04627724ec.yaml

Change-Id: Ifc80421c1bed4cf1619814b5c78c5c39d9f031b2
Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
2021-03-19 14:51:18 +01:00
Zuul 0c64f4c3ea Merge "Add config parameter 'live_migration_scheme' to live migration with tls guide" 2021-03-18 19:00:47 +00:00
Takashi Natsume 7e7209b63a doc: mark the max microversion for wallaby
Just follows the pattern that we do every release.

Change-Id: I493895bfef4b957fe46d0da2974eac4d6bb36957
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2021-03-18 13:59:05 +00:00
Zuul b7334b5089 Merge "pci: Add vDPA vnic to PCI request mapping and filtering" 2021-03-17 18:06:41 +00:00
Josephine Seifert 5d5ff82bab Add config parameter 'live_migration_scheme' to live migration with tls guide
This patch adds the config option 'live_migration_scheme = tls' to the
secure live migration guide.

To let the live migration use the qemu native tls, some configuration of
the compute nodes is needed. The guide describes this but misses the
'live_migration_scheme' config option.

It is necessary to set 'live_migration_scheme' to tls to use the
connection uri for encrypted traffic. Without this parameter everything
seems to work, but the unencrypted tcp-connection is still used for the
live migration.

Closes-Bug: #1919357
Change-Id: Ia5130d411706bf7e1c983156158011a3bc6d5cd6
2021-03-17 11:31:54 +01:00
zhangbailin 78be7de1e5 Add missed accel_uuids for _poll_shelved_instances
In [1], we are supporting shelve/unshelve the instance with accelerators
bonded, but we missed to deal the interval for polling shelved instances
to offload periodic task, so we should add the 'accel_uuids' support
in _poll_shelved_instances() periodic task.

[1]https://review.opendev.org/c/openstack/nova/+/729563/

Co-Authored-By: Wenping Song <songwenping@inspur.com>

Closes-Bug: #1917592

Change-Id: I2ba69d0d727cc183f4a5dc52eaf4000962caeb4a
2021-03-17 17:09:00 +08:00
Zuul bde59951a9 Merge "libvirt: Deprecate live_migration_tunnelled" 2021-03-16 21:12:48 +00:00
Stephen Finucane 7326e46aae Add release note for vDPA
Change-Id: I8f44a622f8bb03ca936c7457658ba8e2951f5457
2021-03-16 20:39:27 +00:00
Stephen Finucane 22fcfcda23 tests: Add functional test for vDPA device
Add a simple test to validate behavior with vDPA devices. Most of this
is simply fleshing out the fixtures we use to fake out vDPA devices and
generally tweaking things to make them better.

Change-Id: I1423d8a9652751b667463f90c69eae1a054dd776
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Co-authored-by: Sean Mooney <work@seanmooney.info>
2021-03-16 20:39:27 +00:00
Sean Mooney 45798adf5a api: Block unsupported actions with vDPA
There are a number of operations that are known not to work with vDPA
interfaces and another few that may work but haven't been tested. Start
blocking these. In all cases where an operation is blocked a HTTP 409
(Conflict) is returned. This will allow lifecycle operations to be
enabled as they are tested or bugs are addressed.

Change-Id: I7f3cbc57a374b2f271018a2f6ef33ef579798db8
Blueprint: libvirt-vdpa-support
2021-03-16 20:39:27 +00:00
Sean Mooney ab04eb2196 pci: Add vDPA vnic to PCI request mapping and filtering
This change extend the vnic type to PCI request dev type mapping to
support the vDPA vnic type.

This change extends the PCI stats module to filter out VDPA 'dev_type'
pools if its not explicitly requested.

This change explicitly filters out the vDPA dev_type from the pci alias
schema since that is not supported.

Blueprint: libvirt-vdpa-support
Change-Id: I91dd7993395f693c7d26c1caa44fa365f5cbec12
2021-03-16 20:39:26 +00:00
Zuul f55f5daed8 Merge "Remove VFSLocalFS" 2021-03-16 17:33:45 +00:00
Kashyap Chamarthy 14071dfb11 libvirt: Deprecate live_migration_tunnelled
We are well above the required MIN_LIBVIRT_VERSION and MIN_QEMU_VERSION
(4.4.0 and 2.11.0, respectively) to get QEMU-native TLS[1] support by
default.

So we can now deprecate (and later remove) the support for "tunnelled
live migration", which has two inherent limitations: (a) it cannot
handle live migration of disks in a non-shared storage setup (a.k.a.
"block migration"); and (b) it has a huge performance overhead and
latency, because it burns more CPU and memory bandwidth due to increased
number of data copies, on both source and destination hosts.

Both the above limitations are addressed by the QEMU-native TLS support
`live_migration_with_native_tls`, which is the recommended approach for
securing all live migration streams (guest RAM, device state, and
disks).

[1] https://docs.openstack.org/nova/latest/admin/secure-live-migration-with-qemu-native-tls.html

Change-Id: I34fd5a4788a2ad4380d9a57b84512fa94a6f9c37
Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
2021-03-16 16:50:32 +01:00
Zuul 2dc26edfc5 Merge "docs: Document UEFI secure boot feature" 2021-03-16 11:49:51 +00:00
Zuul 79dddf7a93 Merge "tests: Remove duplicated 'start_compute' helper" 2021-03-16 11:49:05 +00:00
Zuul bb0be11f20 Merge "tests: Add functional tests for UEFI, secure boot" 2021-03-16 11:48:27 +00:00
Zuul 27521c8106 Merge "libvirt: Report secure boot support to scheduler" 2021-03-16 11:47:43 +00:00
Zuul bf4d4c16fd Merge "libvirt: Wire up 'os_secure_boot' property" 2021-03-16 11:47:12 +00:00
Zuul cbf000b380 Merge "libvirt: Add guest generation for vDPA" 2021-03-16 00:03:00 +00:00
Zuul 7422eb00bf Merge "libvirt: Use firmware metadata files to configure instance" 2021-03-15 14:56:16 +00:00
Zuul 896bf25e74 Merge "libvirt: Add vDPA nodedev parsing" 2021-03-15 13:38:20 +00:00
Zuul 20fdd3c0bc Merge "libvirt: Move PCI host device parsing to 'host'" 2021-03-15 13:21:39 +00:00
Zuul 1e5b731005 Merge "Add device event constants to fakelibvirt" 2021-03-15 11:08:16 +00:00
Zuul bcb78e5a02 Merge "Remove non-libguestfs file injection for libvirt" 2021-03-15 11:07:45 +00:00
Zuul 29c841b9bc Merge "fakelibvirt: make kB_mem default not laughable" 2021-03-15 09:44:16 +00:00
Zuul 8a92bf8115 Merge "objects: Add 'VDPA' to 'PciDeviceType'" 2021-03-14 15:31:00 +00:00
Zuul 064ed49122 Merge "libvirt: Move some host arch checks to guest checks" 2021-03-14 08:23:05 +00:00
Zuul ad16d334fa Merge "libvirt: Add parsing of firmware metadata files" 2021-03-14 08:22:37 +00:00
Zuul 14dde04432 Merge "scheduler: Translate secure boot requests to trait" 2021-03-14 08:14:41 +00:00
Zuul 24edda34de Merge "compute: Report COMPUTE_SECURITY_UEFI_SECURE_BOOT" 2021-03-14 08:14:10 +00:00
Zuul 01de60f37d Merge "hardware: Start parsing 'os_secure_boot'" 2021-03-14 08:13:43 +00:00
Zuul 0eda4a7f43 Merge "add constants for vnic type vdpa" 2021-03-14 06:19:26 +00:00
Zuul 93a51dd94f Merge "trivial: Clarify purpose of 'Host.supports_*' properties" 2021-03-13 12:28:08 +00:00
Zuul e2d2bdf070 Merge "Support per port numa policies with SR-IOV" 2021-03-13 01:30:11 +00:00
Zuul 71c680624c Merge "nova-next: Start testing the q35 machine type" 2021-03-12 23:38:25 +00:00
Zuul d208688cc5 Merge "Add generate schemas tool" 2021-03-12 22:41:50 +00:00
Zuul 8af2c8d8ec Merge "apidb: Compact Train database migrations" 2021-03-12 20:37:48 +00:00
Zuul 63bba50f43 Merge "pci: implement the 'socket' NUMA affinity policy" 2021-03-12 18:21:12 +00:00
Zuul dd5a2462ce Merge "apidb: Compact Stein database migrations" 2021-03-12 18:19:48 +00:00
Stephen Finucane f4c249c692 docs: Document UEFI secure boot feature
Introduce two new guides on UEFI and Secure Boot. In addition, update
the flavors guide to document the secure boot feature (though this doc
should really be removed in near term in favour of the auto-generated
docs, as noted inline).

Note that this change includes our first use of the ':nova:extra-spec:'
cross-reference role and highlights a small bug in that implementation.
This is resolved.

Blueprint: allow-secure-boot-for-qemu-kvm-guests
Change-Id: I4eb370b87ba8d0403c8c0ef038a909313a48d1d6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-12 17:42:02 +00:00
Stephen Finucane e9c80da2db libvirt: Add guest generation for vDPA
Add the ability to generate the libvirt interface XML for a neutron port
with a vnic_type of vdpa.

Blueprint: libvirt-vdpa-support
Change-Id: I2c7b183fcb01f3cb67cb1c8b8bea7aaf5ce424f3
2021-03-12 11:48:40 +00:00