Skip to content

Commit

Permalink
Fix vmdk_allowed_types checking
Browse files Browse the repository at this point in the history
Related-Bug: #2059809
  • Loading branch information
kk7ds authored and markgoddard committed Jul 2, 2024
1 parent fe88152 commit 7248c46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nova/virt/libvirt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def create_cow_image(
reason=_('Base image failed safety check'))

base_details = images.qemu_img_info(backing_file)
if base_details.file_format == 'vmdk':
images.check_vmdk_image('base', base_details)
if base_details.backing_file is not None:
LOG.warning('Base image %s failed safety check', backing_file)
raise exception.InvalidDiskInfo(
Expand Down

0 comments on commit 7248c46

Please sign in to comment.