Report an error when booting an instance with a flavor which has NUMA nodes is set to 0 (hw:numa_nodes=0)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Gábor Antal |
Bug Description
Booting a Nova instance successfully with hw:numa_nodes=0, with a Nova guest XML like that[*]. This bug came out of this RDO bug -- https:/
But, talking with Daniel Berrnage and Nikola Dipanov on IRC, they suggest we should default to 1 node if nothing is specified:
. . .
<danpb> hmm, i'm not convinced we should allow nodes=0 at all
<danpb> we should default 1 node if nothing is specified
<danpb> We should refuse a vlaue of 0, in case we wish to make use
of that as a special value at a later date
<danpb> we don't want people relying on numa_nodes=0 accidentally
working for them now
<nikola> danpb, correct
. . .
Simple test
-------------
NUMA setup instructions here:
https:/
$ nova flavor-key m1.tiny set hw:numa_nodes=0
$ nova flavor-show m1.tiny
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 1 |
| extra_specs | {"hw:numa_nodes": "0"} |
| id | 1 |
| name | m1.tiny |
| os-flavor-
| ram | 512 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+------
$ nova boot --image cirros-
[*] Nova guest XML with an instance booted with hw:numa_nodes=0
-------
<domain type='kvm' id='3'>
<name>
<uuid>
<metadata>
<nova:instance xmlns:nova="http://
<nova:package version="2015.1"/>
<
<
<nova:flavor name="m1.tiny">
<
<nova:owner>
<nova:user uuid="0d5623bda
</nova:owner>
<nova:root type="image" uuid="5bc9a92b-
</nova:
</metadata>
<memory unit='KiB'
<currentMemory unit='KiB'
<vcpu placement=
<cputune>
<vcpupin vcpu='0' cpuset='0-3'/>
<emulatorpin cpuset='0-3'/>
</cputune>
<numatune>
<memory mode='strict' nodeset='0'/>
<memnode cellid='0' mode='strict' nodeset='0'/>
</numatune>
<resource>
<partition>
</resource>
<sysinfo type='smbios'>
<system>
<entry name='manufactu
<entry name='product'
<entry name='version'
<entry name='serial'
<entry name='uuid'
</system>
</sysinfo>
<os>
<type arch='x86_64' machine=
<boot dev='hd'/>
<smbios mode='sysinfo'/>
</os>
<features>
<acpi/>
<apic/>
</features>
<cpu>
<topology sockets='1' cores='1' threads='1'/>
<numa>
<cell id='0' cpus='0' memory='524288' unit='KiB'/>
</numa>
</cpu>
<clock offset='utc'>
<timer name='pit' tickpolicy=
<timer name='rtc' tickpolicy=
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>
<on_reboot>
<on_crash>
<devices>
<emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/
<backingStore type='file' index='1'>
<format type='raw'/>
<source file='/
<
<target dev='vda' bus='virtio'/>
<alias name='virtio-
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' cache='none'/>
<source file='/
<
<target dev='hdd' bus='ide'/>
<readonly/>
<alias name='ide0-1-1'/>
<address type='drive' controller='0' bus='1' target='0' unit='1'/>
</disk>
<controller type='usb' index='0'>
<alias name='usb0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
</controller>
<controller type='ide' index='0'>
<alias name='ide0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='bridge'>
<mac address=
<source bridge=
<target dev='tap7584d9f
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</interface>
<serial type='file'>
<source path='/
<target port='0'/>
<alias name='serial0'/>
</serial>
<serial type='pty'>
<source path='/
<target port='1'/>
<alias name='serial1'/>
</serial>
<console type='file'>
<source path='/
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
<stats period='10'/>
</memballoon>
</devices>
<seclabel type='dynamic' model='selinux' relabel='yes'>
<label>
<imagelabel
</seclabel>
</domain>
-------
Changed in nova: | |
assignee: | nobody → Avinash (avinash-jalumuru) |
Changed in nova: | |
assignee: | Avinash (avinash-jalumuru) → Satish Inakoti (inakoti-satish) |
Changed in nova: | |
assignee: | Satish Inakoti (inakoti-satish) → nobody |
assignee: | nobody → Santhosh Peddiboyina (peddiboyina-9) |
Changed in nova: | |
assignee: | Karim Boumedhel (karmab) → Sharath S (sharathyadav95) |
Changed in nova: | |
assignee: | nobody → nagachetan (nagachetan-km) |
assignee: | nagachetan (nagachetan-km) → nobody |
Changed in nova: | |
assignee: | nobody → Gábor Antal (gabor.antal) |
Please do not assign a bug to yourself unless you have a patch up in gerrit.