From 7248c46f339b7e321177e24ad7b5fa00a34be7b2 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 1 Jul 2024 09:06:40 -0700 Subject: [PATCH] Fix vmdk_allowed_types checking Related-Bug: #2059809 --- nova/virt/libvirt/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nova/virt/libvirt/utils.py b/nova/virt/libvirt/utils.py index 6ff86e9bcac..93c5b38cb77 100644 --- a/nova/virt/libvirt/utils.py +++ b/nova/virt/libvirt/utils.py @@ -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(