Bug 1260846
| Summary: | libvirtd crash when define a guest which numa cell id is out of order | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Luyao Huang <lhuang> |
| Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.2 | CC: | dyuan, hliu, honzhang, mzhan, ovasik, rbalakri |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-1.2.17-9.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 06:54:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Luyao Huang
2015-09-08 03:38:23 UTC
Moving to POST: http://post-office.corp.redhat.com/archives/rhvirt-patches/2015-September/msg00111.html Verify it as follows. The result is expected. Move its status to VERIFIED.
# rpm -q libvirt
libvirt-1.2.17-9.el7.x86_64
# cat test1.xml
<domain type='kvm'>
<name>QEMUGuest2</name>
<memory unit='KiB'>328650</memory>
<currentMemory unit='KiB'>328650</currentMemory>
<vcpu placement='static'>16</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='network'/>
</os>
<cpu>
<topology sockets='2' cores='4' threads='2'/>
<numa>
<cell id="0" cpus="1" memory="6044000" unit="b" />
<cell id="2" cpus="2" memory="1" unit="m" />
<cell id="1" cpus="0" memory="890" unit="kib" />
</numa>
</cpu>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
</devices>
</domain>
# virsh define test1.xml
Domain QEMUGuest2 defined from test1.xml
# virsh start QEMUGuest2
Domain QEMUGuest2 started
# virsh dumpxml QEMUGuest2|grep /cpu -B7
<cpu>
<topology sockets='2' cores='4' threads='2'/>
<numa>
<cell id='0' cpus='1' memory='6144' unit='KiB'/>
<cell id='1' cpus='0' memory='1024' unit='KiB'/>
<cell id='2' cpus='2' memory='1024' unit='KiB'/>
</numa>
</cpu>
# cat test.xml
<domain type='kvm'>
<name>QEMUGuest1</name>
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
<memory unit='KiB'>328650</memory>
<currentMemory unit='KiB'>328650</currentMemory>
<vcpu placement='static'>16</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='network'/>
</os>
<cpu>
<topology sockets='2' cores='4' threads='2'/>
<numa>
<cell id='0' cpus='0-5' memory='109550' unit='KiB'/>
<cell id='2' cpus='6-10' memory='109550' unit='KiB'/>
<cell id='1' cpus='11-15' memory='109550' unit='KiB'/>
</numa>
</cpu>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
</devices>
</domain>
# virsh define test.xml
Domain QEMUGuest1 defined from test.xml
# virsh start QEMUGuest1
Domain QEMUGuest1 started
# virsh dumpxml QEMUGuest1|grep /cpu -B7
<cpu>
<topology sockets='2' cores='4' threads='2'/>
<numa>
<cell id='0' cpus='0-5' memory='109568' unit='KiB'/>
<cell id='1' cpus='11-15' memory='109568' unit='KiB'/>
<cell id='2' cpus='6-10' memory='109568' unit='KiB'/>
</numa>
</cpu>
# cat test2.xml|grep /cpu -B7
<cpu>
<topology sockets='2' cores='4' threads='2'/>
<numa>
<cell id="0" cpus="5-10" memory="6044000" unit="b" />
<cell id="2" cpus="0-6" memory="1" unit="m" />
<cell id="1" cpus="11-15" memory="890" unit="kib" />
</numa>
</cpu>
# virsh define test2.xml
error: Failed to define domain from test2.xml
error: unsupported configuration: NUMA cells 2 and 0 have overlapping vCPU ids
# service libvirtd status
Redirecting to /bin/systemctl status libvirtd.service
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2015-09-17 16:18:04 CST; 24h ago
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2202.html |