This change includes unit tests for the ISO
format inspector using mkisofs to generate
the iso files.
A test for stashing qcow content in the system_area
of an iso file is also included.
This change modifies format_inspector.detect_file_format
to evaluate all inspectors until they are complete and
raise an InvalidDiskInfo exception if multiple formats
match.
Related-Bug: #2059809
Change-Id: I7e12718fb3e1f77eb8d1cfcb9fa64e8ddeb9e712
(cherry picked from commit b1cc39848ebe9b9cb63141a647bda52a2842ee4b)
(cherry picked from commit eeda7c333c773216c216159926673874ce4843ba)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /923729 /opendev. org/openstack/ nova/commit/ 24628ecbbe9d5fd d4fe6767ca92395 f0d3da9e48
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.2
commit 24628ecbbe9d5fd d4fe6767ca92395 f0d3da9e48
Author: Sean Mooney <email address hidden>
Date: Thu Jul 4 20:09:31 2024 +0100
Add iso file format inspector
This change includes unit tests for the ISO
format inspector using mkisofs to generate
the iso files.
A test for stashing qcow content in the system_area
of an iso file is also included.
This change modifies format_ inspector. detect_ file_format
to evaluate all inspectors until they are complete and
raise an InvalidDiskInfo exception if multiple formats
match.
Related-Bug: #2059809 7eb8d1cfcb9fa64 e8ddeb9e712 cb63141a647bda5 2a2842ee4b) 6c2161599266738 74ce4843ba)
Change-Id: I7e12718fb3e1f7
(cherry picked from commit b1cc39848ebe9b9
(cherry picked from commit eeda7c333c77321