[Bug 842845] Re: problems starting multiple lxc instances concurrently
This bug was fixed in the package libvirt - 0.9.2-4ubuntu15 --- libvirt (0.9.2-4ubuntu15) oneiric; urgency=low * Pull patches from upstream which prevent a race between lxc driver and controller while a container is started, easily exposed by nova. (LP: #842845) -- Serge HallynMon, 03 Oct 2011 14:39:05 -0500 ** Changed in: libvirt (Ubuntu Oneiric) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
@Chuck, sorry! wrong bug. I'm aboug to assign 861656 to you however. ** Changed in: libvirt (Ubuntu Oneiric) Assignee: Chuck Short (zulcss) => Serge Hallyn (serge-hallyn) ** Patch removed: "debdiff solving the issue" https://bugs.launchpad.net/ubuntu/+source/nova/+bug/842845/+attachment/2504441/+files/nova-nbd.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
@Chuck, assigning this to you in the hopes that you can either push the debdiff or merge it with any changes you have remaining for nova. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
** Patch added: "debdiff solving the issue" https://bugs.launchpad.net/ubuntu/+source/nova/+bug/842845/+attachment/2504441/+files/nova-nbd.debdiff ** Changed in: libvirt (Ubuntu Oneiric) Assignee: Serge Hallyn (serge-hallyn) => Chuck Short (zulcss) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
libvirt with this debdiff attached passes qa-regression-testing -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
** Patch added: "Proposed debdiff solving the issue" https://bugs.launchpad.net/ubuntu/+source/nova/+bug/842845/+attachment/2503169/+files/libvirt-lxc-race.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
This is actually fixed upstream. I have a new independent patch (which can be found in the thread listed in comment #17) which fixes this, but it will be better if I can cherrypick the lxc patch from git. ** Changed in: nova (Ubuntu Oneiric) Status: In Progress => Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
** Tags added: rls-mgr-o-tracking -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
** Changed in: libvirt (Ubuntu Oneiric) Assignee: (unassigned) => Serge Hallyn (serge-hallyn) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
Sent the patch upstream. The tread can be followed here: https://www.redhat.com/archives/libvir-list/2011-September/msg01181.html -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
Actually this libvirt debdiff may be a better solution. I'm going to send it to upstream libvirt (cc: openstack) for comment. ** Patch added: "libvirt.debdiff" https://bugs.launchpad.net/ubuntu/+source/nova/+bug/842845/+attachment/2475829/+files/libvirt.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
** Changed in: libvirt (Ubuntu Oneiric) Status: Invalid => In Progress -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
In the libvirt logs, I see 21:20:43.846: 1205: debug : remoteSerializeError:132 : prog=536903814 ver=1 proc=16 type=1 serial=1004, msg=internal error Unable to get cgroup for instance-003d followed a bit later by 21:20:43.856: 8627: debug : virCgroupMakeGroup:511 : Make group /libvirt/lxc/instance-003d 21:20:43.856: 8627: debug : virCgroupMakeGroup:526 : Make controller /sys/fs/cgroup/cpu/libvirt/lxc/instance-003d/ ... 21:20:43.878: 8627: debug : virCgroupSetValueStr:304 : Set value '/sys/fs/cgroup/cpuacct/libvirt/lxc/instance-003d/tasks' to '8627' etc. The nova unhandled exception happened at 21:20:43,868 which seems too early. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
Here is the relevant excerpt from nova-compute.log. note that the first line (at /usr/lib/python2.7/dist- packages/nova/virt/libvirt/connection.py:604)is two lines before the timer call which should wait until the container is booted. 2011-09-27 21:20:43,830 DEBUG nova.virt.libvirt_conn [-] instance instance-003d: is running from (pid=2100) spawn /usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py:604 2011-09-27 21:20:43,831 DEBUG nova.compute.manager [-] Checking state of instance-003d from (pid=2100) _get_power_state /usr/lib/python2.7/dist-packages/nova/compute/manager.py:188 2011-09-27 21:20:43,868 ERROR nova.exception [-] Uncaught exception (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 98, in wrapped (nova.exception): TRACE: return f(*args, **kw) (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 454, in run_instance (nova.exception): TRACE: self._run_instance(context, instance_id, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 432, in _run_instance (nova.exception): TRACE: current_power_state = self._get_power_state(context, instance) (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 190, in _get_power_state (nova.exception): TRACE: return self.driver.get_info(instance['name'])["state"] (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1204, in get_info (nova.exception): TRACE: (state, max_mem, mem, num_cpu, cpu_time) = virt_dom.info() (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1059, in info (nova.exception): TRACE: if ret is None: raise libvirtError ('virDomainGetInfo() failed', dom=self) (nova.exception): TRACE: libvirtError: internal error Unable to get cgroup for instance-003d (nova.exception): TRACE: 2011-09-27 21:20:43,869 ERROR nova.rpc [-] Exception during message handling (nova.rpc): TRACE: Traceback (most recent call last): (nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 620, in _process_data (nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args) (nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 129, in wrapped (nova.rpc): TRACE: raise Error(str(e)) (nova.rpc): TRACE: Error: internal error Unable to get cgroup for instance-003d (nova.rpc): TRACE: 2011-09-27 21:20:43,964 INFO nova.virt.libvirt_conn [-] Instance instance-003d spawned successfully. Note also that it says the container spawned successfully. And while the libvirt container is in fact running, euca-describe-instances shows: serge@stack:~$ euca-describe-instances RESERVATION r-lj3xi0v8 test-projectdefault INSTANCEi-003d ami-000311.0.0.511.0.0.5 pending mykey3 m1.small2011-09-28T02:20:25Znova ami- ami- INSTANCEi-003c ami-000311.0.0.411.0.0.4 running mykey2 m1.small2011-09-28T02:20:24Znova ami- ami- INSTANCEi-003b ami-000311.0.0.311.0.0.3 pending mykey1 m1.small2011-09-28T02:20:24Znova ami- ami- INSTANCEi-003a ami-000311.0.0.211.0.0.2 running mykey0 m1.small2011-09-28T02:20:23Znova ami- ami- so i-003d is marked pending. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
With the debdiff above, I can still very rarely reproduce this - it's the same cause - nova is calling get_info while libvirt is still setting the cgroups. The nova-compute.log shows the unhandled exception now at _get_power_state in nova/compute/manager.py. I'm not sure why it is getting to that point, though, because _wait_for_boot at nova/virt/libvirt/connection.py should make it wait until the container is ready. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
@hallyn, Can you propose your patch to upstream trunk please - then we'll look to cherry pick it back. Thanks :) ** Changed in: nova (Ubuntu Oneiric) Assignee: Chuck Short (zulcss) => Serge Hallyn (serge-hallyn) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
The attachment "nova.debdiff" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report. [This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
With this debdiff applied, the bug no longer appears on my systems. ** Patch added: "nova.debdiff" https://bugs.launchpad.net/ubuntu/+source/nova/+bug/842845/+attachment/2471726/+files/nova.debdiff -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
** Changed in: nova (Ubuntu Oneiric) Assignee: (unassigned) => Chuck Short (zulcss) ** Changed in: libvirt (Ubuntu Oneiric) Assignee: Serge Hallyn (serge-hallyn) => (unassigned) ** Changed in: nova (Ubuntu Oneiric) Status: Incomplete => In Progress ** Changed in: libvirt (Ubuntu Oneiric) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
I see - nova-compute checks too quickly whether the vm has powered on. It asks libvirt to look up the vm, but libvirt complains that it has not (yet) created the cgroups. Not sure yet whether this should be changed at libvirt or at nova's end. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
I'm able to reproduce this with 'euca-run-instances -n 4'. But the libvirt instances do in fact start. virsh -c lxc:/// list shows the, but euca-describe-instances shows them pending. nova-compute.log shows: 2011-09-27 16:06:23,110 ERROR nova.exception [-] Uncaught exception (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 98, in wrapped (nova.exception): TRACE: return f(*args, **kw) (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 454, in run_instance (nova.exception): TRACE: self._run_instance(context, instance_id, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 432, in _run_instance (nova.exception): TRACE: current_power_state = self._get_power_state(context, instance) (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 190, in _get_power_state (nova.exception): TRACE: return self.driver.get_info(instance['name'])["state"] (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1196, in get_info (nova.exception): TRACE: (state, max_mem, mem, num_cpu, cpu_time) = virt_dom.info() (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1059, in info (nova.exception): TRACE: if ret is None: raise libvirtError ('virDomainGetInfo() failed', dom=self) (nova.exception): TRACE: libvirtError: internal error Unable to get cgroup for instance-0008 (nova.rpc): TRACE: Traceback (most recent call last): (nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 620, in _process_data (nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args) (nova.rpc): TRACE: File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 129, in wrapped (nova.rpc): TRACE: raise Error(str(e)) (nova.rpc): TRACE: Error: internal error Unable to get cgroup for instance-0008 (nova.rpc): TRACE: 2011-09-27 16:06:23,220 INFO nova.virt.libvirt_conn [-] Instance instance-0008 spawned successfully. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
** Changed in: libvirt (Ubuntu Oneiric) Assignee: (unassigned) => Serge Hallyn (serge-hallyn) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
** Changed in: nova (Ubuntu) Milestone: None => ubuntu-11.10 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
zul, is this still and issue and are we able to reproduce it? Is there a nova issue? ** Also affects: libvirt (Ubuntu Oneiric) Importance: High Status: Confirmed ** Also affects: nova (Ubuntu Oneiric) Importance: High Status: New ** Changed in: libvirt (Ubuntu Oneiric) Milestone: None => ubuntu-11.10 ** Changed in: nova (Ubuntu Oneiric) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
** Tags added: server-o-rs -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
I had a look at this and this caused by libvirt in src/lxc/lxc_driver.c: 545 if (virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0) { 546 lxcError(VIR_ERR_INTERNAL_ERROR, 547 _("Unable to get cgroup for %s"), vm->def->name); 548 goto cleanup; 549 } I am not exactly sure what happened here, when the domain got created, it didnt register with cgroups maybe James switch from kvm to lxc when this happened (in this case), but I have seen it other cases when libvirt is a bit racey when creating the lxc domains. ** Changed in: libvirt (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
Can't seem to reproduce this with a simple for c in o1 o2 o3 o4; do virsh -c lxc:// start $c done so I'll set up an openstack box to test. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 842845] Re: problems starting multiple lxc instances concurrently
On Mon, 2011-09-12 at 13:36 +, Serge Hallyn wrote: > You don't get this problem at all doing the same thing with kvm > containers, right? Right -- James Page Ubuntu Server Developer -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
You don't get this problem at all doing the same thing with kvm containers, right? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
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 (nova.exception): TRACE: (state, max_mem, mem, num_cpu, cpu_time) = virt_dom.info() (nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1059, in info (nova.exception): TRACE: if ret is None: raise libvirtError ('virDomainGetInfo() failed', dom=self) (nova.exception): TRACE: libvirtError: internal error Unable to get cgroup for instance-0006 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. ** Also affects: libvirt (Ubuntu) Importance: Undecided Status: New ** Changed in: libvirt (Ubuntu) Importance: Undecided => High ** Changed in: nova (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 842845] Re: problems starting multiple lxc instances concurrently
-- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/842845 Title: problems starting multiple lxc instances concurrently To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/842845/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs