summaryrefslogtreecommitdiff
path: root/nova/notifications
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2020-07-16 17:54:44 +0100
committerStephen Finucane <stephenfin@redhat.com>2020-07-16 17:54:44 +0100
commit5550f866237157e82cad8c6146b486c62f35a0d8 (patch)
treed6224da756ebd221be93f2b13d1a419c00953e80 /nova/notifications
parente3b0412dda2c070e9d4d3341de22d9845b84b7c6 (diff)
downloadnova-5550f866237157e82cad8c6146b486c62f35a0d8.tar.gz
scheduler: Request vTPM trait based on flavor or image
Add support for the 'hw:tpm_version' and 'hw:tpm_model' flavor extra specs along with the equivalent image metadata properties. These are picked up by the scheduler and transformed into trait requests. This is effectively a no-op for now since we don't yet have a driver that reports these traits. Part of blueprint add-emulated-virtual-tpm Change-Id: I8645c31b4ecb18afea592b2a5b360b0165626009 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'nova/notifications')
-rw-r--r--nova/notifications/objects/image.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/notifications/objects/image.py b/nova/notifications/objects/image.py
index bf8bd88326..613003f446 100644
--- a/nova/notifications/objects/image.py
+++ b/nova/notifications/objects/image.py
@@ -121,7 +121,8 @@ class ImageMetaPropsPayload(base.NotificationPayloadBase):
# Version 1.2: Added hw_pci_numa_affinity_policy field
# Version 1.3: Added hw_mem_encryption, hw_pmu and hw_time_hpet fields
# Version 1.4: Added 'mixed' to hw_cpu_policy field
- VERSION = '1.4'
+ # Version 1.5: Added 'hw_tpm_model' and 'hw_tpm_version' fields
+ VERSION = '1.5'
SCHEMA = {
k: ('image_meta_props', k) for k in image_meta.ImageMetaProps.fields}