Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586040 - app-emulation/libvirt-1.3.4 LXC Containers failed to start
Summary: app-emulation/libvirt-1.3.4 LXC Containers failed to start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-15 17:39 UTC by ALeX
Modified: 2016-07-01 09:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ALeX 2016-06-15 17:39:28 UTC
app-emulation/libvirt-1.3.4 LXC Containers failed to start

Reproducible: Always

Steps to Reproduce:
1. Update libvirt to 1.3.4
2. Restart libvirtd daemon
3. Create LXC container and start it
Actual Results:  
Got error: virLXCProcessStart:1501 : internal error: No valid cgroup for machine $containername

Expected Results:  
Container should start

It seems libvirt developers changed CGROUP struct naming in libvirt-1.3.2, but forgot reflect this changes till libvirt-1.3.5

Bug fixed in upstream: http://libvirt.org/git/?p=libvirt.git;a=commit;h=fb377701f253559268e903377707ed3d265823cd
Comment 1 Nicolas Bock gentoo-dev 2016-06-18 05:44:34 UTC
I can't reproduce this issue as stated. I get

sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell

inside the container. Have you tried to run libvirt-1.3.5? Does it fix the issue?
Comment 2 Nicolas Bock gentoo-dev 2016-06-18 05:45:16 UTC
(In reply to Nicolas Bock from comment #1)
> I can't reproduce this issue as stated. I get
> 
> sh: cannot set terminal process group (-1): Inappropriate ioctl for device
> sh: no job control in this shell
> 
> inside the container. Have you tried to run libvirt-1.3.5? Does it fix the
> issue?

To make this clearer, I can confirm the problem you see.
Comment 3 ALeX 2016-06-18 10:30:21 UTC
(In reply to Nicolas Bock from comment #1)
> I can't reproduce this issue as stated. I get
> 
> sh: cannot set terminal process group (-1): Inappropriate ioctl for device
> sh: no job control in this shell
> 
> inside the container. Have you tried to run libvirt-1.3.5? Does it fix the
> issue?

Yes, libvirt-1.3.5 works fine. 
Applying upstream patch to libvirt-1.3.4 with epatch_user fixes bug too.

As I said earlier, this bug affects libvirt from 1.3.2 to 1.3.4, so we should add bugfix from upstream or stabilize libvirt-1.3.5

Upstream patch: http://libvirt.org/git/?p=libvirt.git;a=patch;h=fb377701f253559268e903377707ed3d265823cd
Comment 4 Nicolas Bock gentoo-dev 2016-06-18 13:29:03 UTC
Hi created a stabilization request for libvirt-1.3.5.
Comment 5 Matthias Maier gentoo-dev 2016-07-01 09:23:55 UTC
1.3.5-r1 is stable now.

All, thanks a lot!