problems starting multiple lxc instances concurrently
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
Oneiric |
Fix Released
|
High
|
Serge Hallyn | ||
nova (Ubuntu) |
Invalid
|
High
|
Serge Hallyn | ||
Oneiric |
Invalid
|
High
|
Serge Hallyn |
Bug Description
I've seen this issue fairly consistently when trying to launch multiple LXC instances:
euca-run-instances -n 4 -k whatever ami-XXXXXX
Some instances start OK - some fail to start and sit 'pending' with this error message in the nova-compute.log file.
>>>>>>>
2011-09-06 15:21:07,106 DEBUG nova.utils [-] Running cmd (subprocess): sudo mount /dev/nbd12 /var/lib/
2011-09-06 15:21:07,219 DEBUG nova.virt.
2011-09-06 15:21:07,220 DEBUG nova.compute.
2011-09-06 15:21:07,242 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: self._run_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: current_power_state = self._get_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return self.driver.
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: (state, max_mem, mem, num_cpu, cpu_time) = virt_dom.info()
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: if ret is None: raise libvirtError ('virDomainGetI
(nova.exception): TRACE: libvirtError: internal error Unable to get cgroup for instance-00000006
(nova.exception): TRACE:
2011-09-06 15:21:07,262 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: rval = node_func(
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: raise Error(str(e))
(nova.rpc): TRACE: Error: internal error Unable to get cgroup for instance-00000006
(nova.rpc): TRACE:
2011-09-06 15:21:07,281 INFO nova.virt.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: nova-compute-lxc 2011.3~
ProcVersionSign
Uname: Linux 3.0.0-10-server x86_64
Architecture: amd64
Date: Tue Sep 6 16:30:36 2011
NovaConf: Error: [Errno 13] Permission denied: '/etc/nova/
PackageArchitec
ProcEnviron:
LANGUAGE=en_GB:
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: nova
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
tags: | added: server-o-rs |
Changed in nova (Ubuntu): | |
milestone: | none → ubuntu-11.10 |
Changed in libvirt (Ubuntu Oneiric): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
Changed in nova (Ubuntu Oneiric): | |
assignee: | nobody → Chuck Short (zulcss) |
Changed in libvirt (Ubuntu Oneiric): | |
assignee: | Serge Hallyn (serge-hallyn) → nobody |
Changed in nova (Ubuntu Oneiric): | |
status: | Incomplete → In Progress |
Changed in libvirt (Ubuntu Oneiric): | |
status: | Confirmed → Invalid |
Changed in libvirt (Ubuntu Oneiric): | |
status: | Invalid → In Progress |
Changed in libvirt (Ubuntu Oneiric): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
tags: | added: rls-mgr-o-tracking |
This looks more like a problem with libvirt, as its an internal libvirt error..
(nova.exception): TRACE: File "/usr/lib/ pymodules/ python2. 7/nova/ virt/libvirt/ connection. py", line 1168, in get_info python2. 7/dist- packages/ libvirt. py", line 1059, in info nfo() failed', dom=self)
(nova.exception): TRACE: (state, max_mem, mem, num_cpu, cpu_time) = virt_dom.info()
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: if ret is None: raise libvirtError ('virDomainGetI
(nova.exception): TRACE: libvirtError: internal error Unable to get cgroup for instance-00000006
Though it could be a logic problem in some assumptions nova makes about libvirt "domains" that is only proved false with LXC.
Marking as also affects libvirt, setting both to importance of High. While this only affects users of LXC, its intermittent which may signal other problems that are harder to detect.