From 8eb53f5b5c940d5c7e4f2594c049777c9a43e01c Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Thu, 25 Apr 2019 08:56:43 -0700 Subject: [PATCH] Add zvm 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: I0b6fd6c9bcc95582718355019e467f6d6cc1c8a4 --- nova/virt/zvm/driver.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nova/virt/zvm/driver.py b/nova/virt/zvm/driver.py index 2cdde95d23bc..d17e9883160f 100644 --- a/nova/virt/zvm/driver.py +++ b/nova/virt/zvm/driver.py @@ -45,6 +45,19 @@ DEFAULT_EPH_DISK_FMT = 'ext3' class ZVMDriver(driver.ComputeDriver): """z/VM implementation of ComputeDriver.""" + capabilities = { + # 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": False, + "supports_image_type_vhd": False, + "supports_image_type_vhdx": False, + "supports_image_type_vmdk": False, + } def __init__(self, virtapi): super(ZVMDriver, self).__init__(virtapi)