summaryrefslogtreecommitdiff
path: root/nova/virt/powervm
diff options
context:
space:
mode:
authorDan Smith <dansmith@redhat.com>2019-03-28 10:08:53 -0700
committerDan Smith <dansmith@redhat.com>2019-04-24 12:33:55 -0700
commitb81fe4dbe451fe4125f0e67f14f9e67bb266db4c (patch)
tree0b736f1a773a7dfb13e3471fbed220b55684ed81 /nova/virt/powervm
parenta991980863f056323c1ee9fd6a46dbc4cb899eca (diff)
downloadnova-b81fe4dbe451fe4125f0e67f14f9e67bb266db4c.tar.gz
Add image type capability flags and trait conversions
This makes the base virt driver define capability flags for each of the glance-defined image types. It also adds a capability-to-trait mapping for each, causing any driver that supports a given image type to expose the corresponding trait. Related to blueprint request-filter-image-types Change-Id: Id2912a46dddee3d63ce373e4d280fad79d0128a8
Diffstat (limited to 'nova/virt/powervm')
-rw-r--r--nova/virt/powervm/driver.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/nova/virt/powervm/driver.py b/nova/virt/powervm/driver.py
index 1400d61fc0..9d3e9feb4c 100644
--- a/nova/virt/powervm/driver.py
+++ b/nova/virt/powervm/driver.py
@@ -77,6 +77,18 @@ class PowerVMDriver(driver.ComputeDriver):
'supports_extend_volume': True,
'supports_multiattach': False,
'supports_trusted_certs': False,
+
+ # Supported image types
+ "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,
}
super(PowerVMDriver, self).__init__(virtapi)