numa cell ids need to be normalized before creating xml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Przemyslaw Czesnowicz |
Bug Description
When creating instance with numa topology, if that instance is placed on a host numa node different then 0 , invalid libvirt.xml will be generated. it's because instance cell id's are used to store host id assignment. Instance cell id's should be normalized before generating libvirt.xml
2014-11-28 16:35:55.195 ERROR nova.virt.
<uuid>
<name>
<memory>
<numatune>
<memory mode="strict" nodeset="1"/>
<memnode cellid="1" mode="strict" nodeset="1"/>
</numatune>
<vcpu>4</vcpu>
<metadata>
<nova:instance xmlns:nova="http://
<nova:package version=
<
<
<nova:flavor name="nano_mini">
<
<nova:owner>
<nova:user uuid="04d6fa121
</nova:owner>
<nova:root type="image" uuid="c0fc1ed6-
</nova:
</metadata>
<sysinfo type="smbios">
<system>
<entry name="manufactu
<entry name="product"
<entry name="version"
<entry name="serial"
<entry name="uuid"
</system>
</sysinfo>
<os>
<type>
<boot dev="hd"/>
<smbios mode="sysinfo"/>
</os>
<features>
<acpi/>
<apic/>
</features>
<cputune>
<vcpupin vcpu="0" cpuset=
<vcpupin vcpu="1" cpuset=
<vcpupin vcpu="2" cpuset=
<vcpupin vcpu="3" cpuset=
</cputune>
<clock offset="utc">
<timer name="pit" tickpolicy=
<timer name="rtc" tickpolicy=
<timer name="hpet" present="no"/>
</clock>
<cpu match="exact">
<topology sockets="4" cores="1" threads="1"/>
<numa>
<cell id="1" cpus="0-3" memory="2097152"/>
</numa>
</cpu>
<devices>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/
<target bus="virtio" dev="vda"/>
</disk>
<disk type="file" device="cdrom">
<driver name="qemu" type="raw" cache="none"/>
<source file="/
<target bus="ide" dev="hdd"/>
</disk>
<interface type="hostdev" managed="yes">
<mac address=
<source>
<address type="pci" domain="0x0000" bus="0x82" slot="0x10" function="0x2"/>
</source>
<vlan>
<tag id="1000"/>
</vlan>
</interface>
<serial type="file">
<source path="/
</serial>
<serial type="pty"/>
<graphics type="vnc" autoport="yes" keymap="en-us" listen=
<video>
<model type="cirrus"/>
</video>
<memballoon model="virtio">
<stats period="10"/>
</memballoon>
</devices>
</domain>
2014-11-28 16:35:55.195 ERROR nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
2014-11-28 16:35:55.195 TRACE nova.compute.
Changed in nova: | |
assignee: | nobody → Przemyslaw Czesnowicz (pczesno) |
Changed in nova: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/138128
Review: https:/