Using resources:PCPU property does not result in CPU pinning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
High
|
Unassigned |
Bug Description
When instance is being created from flavor with `--property resources:PCPU=4`, generated XML doesn't include vcpupin directives that basically does pinning.
Instead only <vcpu placement=
Nova version: Xena
Sample flavor that's being used:
+------
| Field | Value |
+------
| OS-FLV-
| OS-FLV-
| description | None |
| disk | 50 |
| id | 7d4455db-
| name | cpu-high-
| os-flavor-
| properties | resouces:PCPU='4', trait:CUSTOM_
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 4 |
+------
Generated XML will be attached.
Changed in nova: | |
status: | New → Triaged |
setting this to high as this bug results in multiple cpus being pinned to a single CPU
<nova:vcpus> 4</nova: vcpus> "static" >4</vcpu>
<vcpu placement=
the workaround is to just used the preferred way of requesting CPU pinning via hw:cpu_ policy= dedicated.