Live migration breaks UML (and will break LXC).

Bug #735390 reported by Chuck Short
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Soren Hansen

Bug Description

Due to the lack of capabilites that LXC has in libvirt (no cpu info, socket info, etc). Compute will fail if you specificy something other than qemu as a --libvirt-flag. See attached traceback:

(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/home/ubuntu/work/nova-lxc/nova/exception.py", line 120, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/home/ubuntu/work/nova-lxc/nova/compute/manager.py", line 799, in update_available_resource
(nova.exception): TRACE: return self.driver.update_available_resource(context, self.host)
(nova.exception): TRACE: File "/home/ubuntu/work/nova-lxc/nova/virt/libvirt_conn.py", line 1095, in update_available_resource
(nova.exception): TRACE: 'cpu_info': self.get_cpu_info()}
(nova.exception): TRACE: File "/home/ubuntu/work/nova-lxc/nova/virt/libvirt_conn.py", line 1012, in get_cpu_info
(nova.exception): TRACE: cpu_info['model'] = xml.xpathEval('//cpu/model')[0].getContent()
(nova.exception): TRACE: IndexError: list index out of range
(nova.exception): TRACE:
2011-03-14 22:06:56,935 CRITICAL nova [-] list index out of range
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "./bin/nova-compute", line 48, in <module>
(nova): TRACE: service.serve()
(nova): TRACE: File "/home/ubuntu/work/nova-lxc/nova/service.py", line 284, in serve
(nova): TRACE: x.start()
(nova): TRACE: File "/home/ubuntu/work/nova-lxc/nova/service.py", line 96, in start
(nova): TRACE: self.manager.update_available_resource(ctxt)
(nova): TRACE: File "/home/ubuntu/work/nova-lxc/nova/exception.py", line 126, in _wrap
(nova): TRACE: raise Error(str(e))
(nova): TRACE: Error: list index out of range

Tags: regression

Related branches

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → High
status: New → Confirmed
Soren Hansen (soren)
Changed in nova:
assignee: nobody → Soren Hansen (soren)
status: Confirmed → In Progress
Thierry Carrez (ttx)
tags: added: regression
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.