From 4ed3ea509c3f0eed213dfd238befffd8c8e5f64b Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Thu, 25 Apr 2019 08:55:03 -0700 Subject: [PATCH] Add xenapi driver image type capabilities This is a static list, so a test is fairly pointless. Related to blueprint bp/request-filter-image-types Change-Id: Ic946b56906a3cc88fa9ebd042f56f0f81e3bcb84 --- nova/virt/xenapi/driver.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nova/virt/xenapi/driver.py b/nova/virt/xenapi/driver.py index b62f9c65fd3d..bcb68069fe4d 100644 --- a/nova/virt/xenapi/driver.py +++ b/nova/virt/xenapi/driver.py @@ -75,6 +75,18 @@ class XenAPIDriver(driver.ComputeDriver): "supports_device_tagging": True, "supports_multiattach": False, "supports_trusted_certs": False, + + # Image type support flags + "supports_image_type_aki": False, + "supports_image_type_ami": False, + "supports_image_type_ari": False, + "supports_image_type_iso": False, + "supports_image_type_qcow2": False, + "supports_image_type_raw": True, + "supports_image_type_vdi": True, + "supports_image_type_vhd": True, + "supports_image_type_vhdx": False, + "supports_image_type_vmdk": False, } def __init__(self, virtapi, read_only=False):