Bug 1125289 - Failed to run vm with NumaNode
Summary: Failed to run vm with NumaNode
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: 3.5
Hardware: x86_64
OS: Linux
Target Milestone: ---
: 3.5.0
Assignee: Bruce Shi
QA Contact: Artyom
Whiteboard: sla
Depends On:
TreeView+ depends on / blocked
Reported: 2014-07-31 13:45 UTC by Artyom
Modified: 2016-02-10 19:41 UTC (History)
11 users (show)

Fixed In Version: vt4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-10-17 12:43:57 UTC
oVirt Team: SLA

Attachments (Terms of Use)
vdsm.log (18.28 MB, text/x-log)
2014-07-31 14:37 UTC, Artyom
no flags Details

System ID Private Priority Status Summary Last Updated
oVirt gerrit 27988 0 master MERGED core: Add numa node index when create vm numa node Never

Description Artyom 2014-07-31 13:45:37 UTC
Description of problem:
Failed to run vm with NumaNode

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Create new vm and add via REST to vm numa node:
<core index="0"/>
<core index="1"/>
2. Run vm

Actual results:
Vm failed to run with exception in vdsm.log
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/vm.py", line 2235, in _startUnderlyingVm
  File "/usr/share/vdsm/virt/vm.py", line 3255, in _run
    domxml = hooks.before_vm_start(self._buildCmdLine(), self.conf)
  File "/usr/share/vdsm/virt/vm.py", line 3045, in _buildCmdLine
  File "/usr/share/vdsm/virt/vm.py", line 931, in appendCpu
    self.conf.get('guestNumaNodes'), key=itemgetter('nodeIndex'))
KeyError: 'nodeIndex'

Expected results:
Vm success to run without any exceptions

Additional info:
If I change line:
guestNumaNodes = sorted(
                self.conf.get('guestNumaNodes'), key=itemgetter('nodeIndex'))
guestNumaNodes = self.conf.get('guestNumaNodes') and restart vdsm all works fine

Comment 1 Dan Kenigsberg 2014-07-31 14:19:02 UTC
Could you attach vdsm.log from the vmCreate line down to that exception?

Comment 2 Artyom 2014-07-31 14:37:48 UTC
Created attachment 922951 [details]

Comment 3 Bruce Shi 2014-08-04 01:49:25 UTC
This root cause of this bug is in engine side, and the related patches are already posted.

Comment 4 Gilad Chaplik 2014-08-05 13:27:19 UTC
(In reply to Bruce Shi from comment #3)
> This root cause of this bug is in engine side, and the related patches are
> already posted.

actually I think that: http://gerrit.ovirt.org/#/c/27987/3/vdsm/virt/vm.py solves it.

Comment 5 Bruce Shi 2014-08-06 01:19:04 UTC
No, i don't think so. Yes, http://gerrit.ovirt.org/#/c/27987/3/vdsm/virt/vm.py is to fix the bug of missing index when create vm numa nodes, but it also needs the support of several engine patches, including the following:
the above engine patches are still in reviewing. So we need to merge these patches to fix this issue.

Comment 6 Bruce Shi 2014-09-23 01:43:16 UTC
Since the related engine patches are merged, this bug should be modified.

Comment 7 Artyom 2014-10-05 12:42:27 UTC
Verified on rhevm-3.5.0-0.13.beta.el6ev.noarch
Run vm with NUMA node success without any problem.

Comment 8 Sandro Bonazzola 2014-10-17 12:43:57 UTC
oVirt 3.5 has been released and should include the fix for this issue.

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