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
This commit is contained in:
Waldemar Znoinski 2015-07-03 09:41:42 +01:00 committed by Ian Cordasco
parent 4ec1e7d4db
commit 85de1149b6
1 changed files with 33 additions and 0 deletions

View File

@ -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"
]
}
}
}