We are stoked to announce the release of: sushy-tools 1.3.0: A set of tools to support the development and test of the Sushy library (https://docs.openstack.org/sushy/) The source is available from: https://opendev.org/openstack/sushy-tools Download the package from: https://tarballs.openstack.org/sushy-tools/ For more details, please see below. 1.3.0 ^^^^^ New Features ************ * Support for domains utilizing firmware auto-selection has been added to the libvirt driver. * Adds support for BIOS update emulation by introducing UpdateService. No actual updates are performed (all the code is doing is incrementing BIOS version value in libvirt xml) however this functionality may be used for automated testing of firmware update features in Ironic. Note BMC firmware update emulation is not supported at this time. * The openstack driver now supports insert and eject of virtual media. On insert a new empty volume is created and attached to the server and the server is rebuilt with the that image. On eject it is assumed that the attached volume has been rewritten with bootable image data. The volume is detached and uploaded as an image, then the server is rebuilt with that image. Both insert and delete results in the root disk being wiped and replaced with the contents of an image, so this should not be used in any scenario where the root disk data needs to be retained. Bug Fixes ********* * Replaces hardcoded BIOS version string with updatable field backed by a custom section in libvirt metadata (similar to prior art on BIOS settings). This can be used for BIOS version information as well as storing firmware version information of other components. NOTE: this enhancement is meant to facilitate testing BIOS/firmware upgrade codepaths and NOT performing actual BIOS/firmware upgrades. * Resolves the issue where UpdateService.SimpleUpdate action cannot complete successfully due to connections from UpdateService to System being redirected by libvirt system driver alias handling code. Changes in sushy-tools 1.2.0..1.3.0 ----------------------------------- 4ff52c5 Translate VM name to UUID to avoid redirect issue 4268005 Extend the fake systems driver with external systems status notifier 6958f7a Add fake system driver docs 57e560f Add support for BIOS update emulation fa0d9a3 Fix httpboot handling and unit tests bab6feb Replace hardcoded BiosVersion with an updatable field 15b6858 Python 3.12: do not use ssl.wrap_socket 4e3e3e9 Fix codespell reported errors 240e8d7 Normalize relative path for emulator config file cc738ad [Libvirt] Support firmware auto-selection fafb4b0 Add virtual-media-boot to openstack driver Diffstat (except docs and test files) ------------------------------------- ...ibvirt-firware-autoselect-b743737cb1cf9c5e.yaml | 6 + .../notes/add-updateservice-3332a9c15b5fb3ab.yaml | 8 + ...datable-firmware-versions-b1f947339b2e6b94.yaml | 9 + ...rvice-redirect-workaround-97c4864ef20a2eef.yaml | 6 + .../notes/vmedia-openstack-fc422b845c343fc3.yaml | 13 + setup.cfg | 3 +- sushy_tools/emulator/controllers/update_service.py | 98 ++++++ sushy_tools/emulator/main.py | 45 ++- sushy_tools/emulator/resources/systems/base.py | 25 ++ .../emulator/resources/systems/fakedriver.py | 49 ++- .../emulator/resources/systems/libvirtdriver.py | 292 ++++++++++++++++- .../emulator/resources/systems/novadriver.py | 356 +++++++++++++++++++++ sushy_tools/emulator/resources/vmedia.py | 112 ++++++- sushy_tools/emulator/templates/root.json | 3 + sushy_tools/emulator/templates/system.json | 2 +- sushy_tools/emulator/templates/task.json | 11 + sushy_tools/emulator/templates/task_service.json | 19 ++ sushy_tools/emulator/templates/update_service.json | 27 ++ sushy_tools/error.py | 7 + sushy_tools/static/main.py | 6 +- .../emulator/controllers/test_virtual_media.py | 8 +- .../unit/emulator/domain-q35_fw_auto_uefi.xml | 30 ++ .../emulator/domain-q35_fw_auto_uefi_secure.xml | 30 ++ .../emulator/resources/systems/test_libvirt.py | 295 +++++++++++++++++ .../unit/emulator/resources/systems/test_nova.py | 350 ++++++++++++++++++++ .../unit/emulator/resources/test_update_service.py | 128 ++++++++ 32 files changed, 2177 insertions(+), 53 deletions(-)
participants (1)
-
no-reply@openstack.org