Bug 1035955 - Need better error message for NUMA memory tuning
Summary: Need better error message for NUMA memory tuning
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Michal Privoznik
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-29 02:43 UTC by Jincheng Miao
Modified: 2014-06-18 01:00 UTC (History)
6 users (show)

Fixed In Version: libvirt-1.1.1-15.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 10:24:08 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jincheng Miao 2013-11-29 02:43:03 UTC
Description of problem:
It needs a better error message when detecting a error for NUMA memory tuning.

Version-Release number of selected component (if applicable):
libvirt-1.1.1-13.el7.x86_64
qemu-kvm-rhev-1.5.3-20.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. define a guest with two preferred nodes, as we known it is wrong:
# virsh edit kvm-rhel6.5-x86_64-qcow2-virtio
...
  <vcpu placement='static'>3</vcpu>
  <numatune>
    <memory mode='preferred' nodeset='2-3'/>
  </numatune>
...

2. start it, we cann't see the real error
# virsh start kvm-rhel6.5-x86_64-qcow2-virtio
error: Failed to start domain kvm-rhel6.5-x86_64-qcow2-virtio
error: Child quit during startup handshake: Input/output error

3. check out qemu.log
# tail /var/log/libvirt/qemu/kvm-rhel6.5-x86_64-qcow2-virtio.log
libvirt:  error : internal error: NUMA memory tuning in 'preferred' mode only supports single node

Actual results:
error message is hide in qemu.log

Expected results:
show error message when virsh return.

Comment 2 Michal Privoznik 2013-12-03 17:53:11 UTC
Patch proposed upstream:

https://www.redhat.com/archives/libvir-list/2013-December/msg00210.html

Comment 5 Jincheng Miao 2013-12-16 04:20:14 UTC
This fix is verified on libvirt-1.1.1-15.el7:
# virsh edit virt-tests-vm1
...
  <vcpu placement='static'>3</vcpu>
  <numatune>
    <memory mode='preferred' nodeset='2-3'/>
  </numatune>
...

# virsh start virt-tests-vm1
error: Failed to start domain virt-tests-vm1
error: internal error: Process exited prior to exec: libvirt:  error : internal error: Nodeset is out of range, host cannot support NUMA node bigger than 3

So I change the status to VERIFIED.

Comment 6 Ludek Smid 2014-06-13 10:24:08 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.