From 85de1149b61eb43ac085afe7b0e26d7e71456b93 Mon Sep 17 00:00:00 2001 From: Waldemar Znoinski Date: Fri, 3 Jul 2015 09:41:42 +0100 Subject: [PATCH] Add CPU Pinning in metadata definitions This metadef adds CPU pinning namespace and property to Nova::Flavor, Glance::Image, Cinder::Volume(image) resource types metadata. Change-Id: I215373648f7490faf35e44f5b98f9a2688c81e79 Closes-bug: #1476696 --- etc/metadefs/compute-cpu-pinning.json | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 etc/metadefs/compute-cpu-pinning.json diff --git a/etc/metadefs/compute-cpu-pinning.json b/etc/metadefs/compute-cpu-pinning.json new file mode 100644 index 0000000000..b3c4d223ec --- /dev/null +++ b/etc/metadefs/compute-cpu-pinning.json @@ -0,0 +1,33 @@ +{ + "namespace": "OS::Compute::CPUPinning", + "display_name": "CPU Pinning", + "description": "This provides the preferred CPU Pinning policy when pinning vCPU of the guest to pCPU of the host. Default 'shared' option doesn't change current default guest CPU placement policy. 'Dedicated' will make guest CPU(s) to be strictly pinned to set of host CPU(s). See also https://wiki.openstack.org/wiki/VirtDriverGuestCPUMemoryPlacement", + "visibility": "public", + "protected": true, + "resource_type_associations": [ + { + "name": "OS::Glance::Image", + "prefix": "hw_" + }, + { + "name": "OS::Cinder::Volume", + "prefix": "hw_", + "properties_target": "image" + }, + { + "name": "OS::Nova::Flavor", + "prefix": "hw:" + } + ], + "properties": { + "cpu_policy": { + "title": "CPU Pinning policy", + "description": "Type of CPU Pinning policy.", + "type": "string", + "enum": [ + "shared", + "dedicated" + ] + } + } +}