We are stoked to announce the release of: oslo.utils 7.3.0: Oslo Utility library This release is part of the dalmatian release series. The source is available from: https://opendev.org/openstack/oslo.utils Download the package from: https://pypi.org/project/oslo.utils Please report issues through: https://bugs.launchpad.net/oslo.utils/+bugs For more details, please see below. 7.3.0 ^^^^^ New Features * The format_inspector module has been imported from the projects that were using it. They had effectively maintained in-tree forks of the original code from glance. This code has been imported (from Nova) into oslo.utils under imageutils for common use. A refactoring of how the safety check works was done to facilitate the ability to surface fine-grained information about individual checks, as needed by some projects, as well as a few other generalizing aspects, which are detailed in the following. * A gpt/mbr format inspector was added, which should reduce the number of disk images that are detected as "raw". This furthers the goal of trying to avoid using "raw" for both "anything we don't recognize" and "exact image of a physical disk". * The glance-centric InfoWrapper from the imported code has been replaced with InspectWrapper, which natively runs multiple (default: all) inspector classes in parallel. This is identical to what detect_file_format() did, but in a stream-friendly way, and detect_file_format() now uses this internally. Users of the glance- based code moving to the oslo implemenation should switch to using the InspectWrapper going forward. * Bug #2073894 (https://bugs.launchpad.net/oslo.utils/+bug/2073894): Added the netutils.get_noscope_ipv6() function in order to fix errors related to IPv6 address formatting that can happen when using an IPv6 defined with scope. Changes in oslo.utils 7.2.0..7.3.0 ---------------------------------- 076aaac Add a function to trim scope out of ipv6 addr 4e596cd Add release note for format_inspector 91af49b Add stream-based detection a0481d5 Add GPT/MBR inspector 1290708 Fix qcow2 feature flag checks (for the future) 1f756b8 Refactor some things for oslo cfc0e10 Support VMDK sparse with footer 23d6b20 Make VMDKInspector support non-sparse formats b68be95 Add region-complete signaling for inspectors e1f58f4 Reinstate VMDK safety check coverage e2bae7a Modularize image safety checks 8e1b637 Imported Translations from Zanata e973df6 Make FileInspector an ABC 7e1bea6 Test cover target in CI 15370fb Import format_inspector from nova fa53de1 Make imageutils a directory e858c7e Fix coverage target Diffstat (except docs and test files) ------------------------------------- .zuul.yaml | 1 + oslo_utils/imageutils/__init__.py | 1 + oslo_utils/imageutils/format_inspector.py | 1411 ++++++++++++++++++++ oslo_utils/{imageutils.py => imageutils/qemu.py} | 0 oslo_utils/locale/ka_GE/LC_MESSAGES/oslo_utils.po | 86 ++ oslo_utils/netutils.py | 25 + .../test_qemu.py} | 0 ...dd-image-format-inspector-2ad45f623838a8f8.yaml | 22 + .../notes/bug-2073894-2e11ca85984b7bb7.yaml | 7 + .../locale/en_GB/LC_MESSAGES/releasenotes.po | 5 +- tox.ini | 15 +- 14 files changed, 2667 insertions(+), 5 deletions(-)