Add metadef value for stateless firmware

Add the new hw_firmware_stateless image property, which is now used to
request launching instances with stateless firmware in nova.

Depends-on: https://review.opendev.org/c/openstack/nova/+/908890
Change-Id: I24868b89bc79eda5657a6e2a5e98fb8fa150b1f3
This commit is contained in:
Takashi Kajinami 2024-08-20 12:05:05 +09:00
parent ca40d49f4d
commit 1f3e66fb4f
4 changed files with 26 additions and 1 deletions

View File

@ -431,6 +431,14 @@ Here is a list of useful image properties and the values they expect.
* ``bios``
* ``uefi``
``hw_firmware_stateless``
:Type: bool
Specifies whether the image should be booted with stateless firmware.
If true, firmware configurations do not persist over server reboot.
Only supported by the libvirt driver. Also UEFI firmware is required.
``hw_mem_encryption``
:Type: bool

View File

@ -51,6 +51,11 @@
"uefi"
]
},
"hw_firmware_stateless": {
"title": "Stateless Firmware",
"description": "Specifies whether the image should be booted with only read-only firmware image. If true, firmware configurations do not persist over server reboot. Note stateless firmware is only supported when UEFI is used.",
"type": "boolean"
},
"hw_rng_model": {
"title": "Random Number Generator Device",
"description": "Adds a random-number generator device to the image's instances. The cloud administrator can enable and control device behavior by configuring the instance's flavor. By default: The generator device is disabled. /dev/random is used as the default entropy source. To specify a physical HW RNG device, use the following option in the nova.conf file: rng_dev_path=/dev/hwrng",

View File

@ -793,7 +793,7 @@ class MetadefLoadUnloadTests:
'OS::Compute::VMwareFlavor': 2,
'OS::Compute::TPM': 1,
'OS::Compute::GuestMemoryBacking': 1,
'OS::Compute::LibvirtImage': 16,
'OS::Compute::LibvirtImage': 17,
'OS::Compute::VMware': 6,
'OS::Compute::Watchdog': 1,
}

View File

@ -0,0 +1,12 @@
---
upgrade:
- |
The following metadata definitions have been modified in the Dalmatian
release:
* Added ``hw_firmware_stateless`` boolean in
the ``OS::Compute::LibvirtImage`` namespace.
You may upgrade these definitions using:
``glance-manage db load_metadefs [--path <path>] [--merge] [--prefer_new]``