summaryrefslogtreecommitdiff
path: root/nova/notifications
diff options
context:
space:
mode:
authorArtom Lifshitz <alifshit@redhat.com>2021-01-27 10:50:38 -0500
committerStephen Finucane <stephenfin@redhat.com>2021-02-24 10:23:33 +0000
commitbe80dfdc714d0f00c77d84d72703f7fea04d2f94 (patch)
treea6def0ba8d9613eec95bdfb7e51f4aa0cc827b95 /nova/notifications
parent95b9481aa4e4271503ccfdde80ab8b52838d5ffe (diff)
downloadnova-be80dfdc714d0f00c77d84d72703f7fea04d2f94.tar.gz
objects: Add 'socket' PCI NUMA affinity
This patch adds the 'socket' value to the allowed PCI NUMA affinity policies, both to the 'hw:pci_numa_affinity_policy' flavor extra spec, and the 'hw_pci_numa_affinity_policy' image property. For now the new value is a no-op and remains undocumented. It will be wired-in in a subsequent patch. Implements: blueprint pci-socket-affinity Change-Id: I0680d4e21f3e317ac702b55afef4c87e8acbfc3a
Diffstat (limited to 'nova/notifications')
-rw-r--r--nova/notifications/objects/image.py3
-rw-r--r--nova/notifications/objects/request_spec.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/nova/notifications/objects/image.py b/nova/notifications/objects/image.py
index 613003f446..4b673ab566 100644
--- a/nova/notifications/objects/image.py
+++ b/nova/notifications/objects/image.py
@@ -122,7 +122,8 @@ class ImageMetaPropsPayload(base.NotificationPayloadBase):
# 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.5: Added 'hw_tpm_model' and 'hw_tpm_version' fields
- VERSION = '1.5'
+ # Version 1.6: Added 'socket' to hw_pci_numa_affinity_policy
+ VERSION = '1.6'
SCHEMA = {
k: ('image_meta_props', k) for k in image_meta.ImageMetaProps.fields}
diff --git a/nova/notifications/objects/request_spec.py b/nova/notifications/objects/request_spec.py
index dae5c5a823..a46a71e8da 100644
--- a/nova/notifications/objects/request_spec.py
+++ b/nova/notifications/objects/request_spec.py
@@ -240,7 +240,8 @@ class InstancePCIRequestsPayload(base.NotificationPayloadBase):
@nova_base.NovaObjectRegistry.register_notification
class InstancePCIRequestPayload(base.NotificationPayloadBase):
# Version 1.0: Initial version
- VERSION = '1.0'
+ # Version 1.1: Added 'socket' to numa_policy field
+ VERSION = '1.1'
SCHEMA = {
'count': ('pci_request', 'count'),