Merge "Add config option SUSHY_EMULATOR_STORAGE_POOL"

This commit is contained in:
Zuul 2025-04-10 14:56:23 +00:00 committed by Gerrit Code Review
commit 2016d137f4
2 changed files with 7 additions and 1 deletions

View File

@ -118,6 +118,9 @@ SUSHY_EMULATOR_VMEDIA_DEVICES = {
# retrieving the image.
SUSHY_EMULATOR_VMEDIA_VERIFY_SSL = False
# The libvirt storage pool to use.
SUSHY_EMULATOR_STORAGE_POOL = 'default'
# This map contains statically configured Redfish Storage resources linked up
# with the Systems resources, keyed by the UUIDs of the Systems.
SUSHY_EMULATOR_STORAGE = {
@ -167,7 +170,8 @@ SUSHY_EMULATOR_DRIVES = {
# The Volumes in the map missing from the libvirt backend will be created
# dynamically in the pool name specified (provided the pool exists in the
# backend). If the pool name is not specified, the Volume will be created
# automatically in a pool named 'default'.
# automatically in the pool specified by SUSHY_EMULATOR_STORAGE_POOL, by
# default 'default'.
SUSHY_EMULATOR_VOLUMES = {
('da69abcc-dae0-4913-9a7b-d344043097c0', '1'): [
{

View File

@ -187,6 +187,8 @@ class LibvirtDriver(AbstractSystemsDriver):
cls.SECURE_BOOT_DISABLED_NVRAM)
cls.SUSHY_EMULATOR_IGNORE_BOOT_DEVICE = \
cls._config.get('SUSHY_EMULATOR_IGNORE_BOOT_DEVICE', False)
cls.STORAGE_POOL = cls._config.get(
'SUSHY_EMULATOR_STORAGE_POOL', cls.STORAGE_POOL)
cls._http_boot_uri = None
return cls