Commit Graph

58574 Commits

Author SHA1 Message Date
Zuul 232fa8bca1 Merge "docs: Remove duplicate TPM extra spec info" 2021-03-25 13:46:15 +00:00
Zuul ad6882b45b Merge "docs: Add a real-time guide" 2021-03-25 13:45:03 +00:00
Zuul 93cfdc131c Merge "Wallaby 23.0.0 prelude section" 2021-03-25 13:43:47 +00:00
Zuul 4952f23bbc Merge "[Arm64][libvirt] Fix read bytes from json files" 2021-03-25 05:26:07 +00:00
Zuul a086a88cd1 Merge "docs: Add a resource limits guide" 2021-03-24 13:26:39 +00:00
Zuul 16562b0ab0 Merge "Reset global wsgi app state in unit test" 2021-03-24 13:25:31 +00:00
Zuul a337c1de91 Merge "docs: Add note about rescuing bfv instances with the 2.87 microversion" 2021-03-24 13:23:49 +00:00
Zuul 4d9b363be9 Merge "docs: Add version{added,changed} notes to the hw_machine_type guide" 2021-03-24 13:23:05 +00:00
ricolin 020e46094a [Arm64][libvirt] Fix read bytes from json files
This fix issue that we might get str stream from json files instead of bytes
and make sure we read bytes from json files under
QEMU_FIRMWARE_DESCRIPTOR_PATHS.

Add `rb` mode ([1]) to return contents as bytes objects.
[1] https://docs.python.org/3.8/library/functions.html#open

Closes-Bug: #1921075

Change-Id: I446be58f7f3e972d8e10cc5cbf83ebd42edb34e3
2021-03-24 12:09:13 +00:00
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
Stephen Finucane 94c03e8d66 docs: Remove duplicate TPM extra spec info
We have a perfectly good TPM guide. Enhance that, allowing us to remove
the special section dedicated to this from the generic flavor docs.

Change-Id: If484074c01595f747f9201b5ec12164779195b61
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-23 11:12:29 +00:00
Stephen Finucane 777c02485f docs: Add a real-time guide
This beefy patch closes a long-standing TODO and allows us to move yet
more information out of the flavors guide and into specific documents.
This, combined with existing documentation in place, means we can remove
the sections for various extra specs from the 'user/flavors' guide:

- hw:cpu_realtime            -> doc/source/admin/real-time.rst
- hw:cpu_realtime_mask       -> doc/source/admin/real-time.rst
- hw:emulator_threads_policy -> doc/source/admin/cpu-topologies.rst
- hw:cpu_policy              -> doc/source/admin/cpu-topologies.rst
- hw:cpu_thread_policy       -> doc/source/admin/cpu-topologies.rst
- hw:cpu_sockets             -> doc/source/admin/cpu-topologies.rst
- hw:cpu_cores               -> doc/source/admin/cpu-topologies.rst
- hw:cpu_threads             -> doc/source/admin/cpu-topologies.rst
- hw:cpu_max_sockets         -> doc/source/admin/cpu-topologies.rst
- hw:cpu_max_cores           -> doc/source/admin/cpu-topologies.rst
- hw:cpu_max_threads         -> doc/source/admin/cpu-topologies.rst
- hw:numa_nodes              -> doc/source/admin/cpu-topologies.rst
- hw:numa_cpus.N             -> doc/source/admin/cpu-topologies.rst
- hw:numa_mem.N              -> doc/source/admin/cpu-topologies.rst
- hw:mem_page_size           -> doc/source/admin/huge-pages.rst

Multiple improvements to the libvirt extra spec docs are included here,
for want of a better place to include them.

Change-Id: I02b044f8246f4a42481bb5f00259842692b29b71
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-23 11:11:52 +00:00
Stephen Finucane 8528eaa602 docs: Add a resource limits guide
This is mostly regurgitated information from the current flavors guide
but we take the opportunity to significantly expand upon what we've
already stated here.

Change-Id: I9ad798427bbc6451fd920d6c08357d6e1eaa5136
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-23 10:37:30 +00:00
Sylvain Bauza dd15a09af4 Wallaby 23.0.0 prelude section
Mostly based on cycle highlights.

Change-Id: I77d984f39e7c5473f54b7d6fe57c52187f894919
2021-03-22 17:30:14 +01: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