Add CPU thread pinning to metadata defs

CPU pinning policy is defined, but CPU thread pinning policy is not.
Resolve this.

UpgradeImpact
Change-Id: Ie3027a9ee92ac272b6c9a07926aa529d72187d00
Closes-bug: #1612341
This commit is contained in:
Stephen Finucane 2016-08-11 17:32:58 +01:00
parent bfe4d91136
commit 411418b044
2 changed files with 16 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"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",
"description": "This provides the preferred CPU pinning and CPU thread pinning policy to be used when pinning vCPU of the guest to pCPU of the host. See http://docs.openstack.org/admin-guide/compute-numa-cpu-pinning.html",
"visibility": "public",
"protected": true,
"resource_type_associations": [
@ -22,12 +22,22 @@
"properties": {
"cpu_policy": {
"title": "CPU Pinning policy",
"description": "Type of CPU Pinning policy.",
"description": "Type of CPU pinning policy.",
"type": "string",
"enum": [
"shared",
"dedicated"
]
},
"cpu_thread_policy": {
"title": "CPU Thread Pinning Policy.",
"description": "Type of CPU thread pinning policy.",
"type": "string",
"enum": [
"isolate",
"prefer",
"require"
]
}
}
}

View File

@ -0,0 +1,4 @@
---
upgrade:
- Added additional metadata for CPU thread pinning policies to
'compute-cpu-pinning.json'. Use the ``glance_manage`` tool to upgrade.