Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221971 - sys-cluster/vzctl will not work when compiled against >=linux-headers-2.6.25
Summary: sys-cluster/vzctl will not work when compiled against >=linux-headers-2.6.25
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL: http://bugzilla.openvz.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-13 17:11 UTC by Romain Riviere
Modified: 2008-07-14 06:18 UTC (History)
3 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 Romain Riviere 2008-05-13 17:11:26 UTC
linux-headers-2.6.25 and up have a new _LINUX_CAPABILITY_VERSION that causes capset to fail with EINVAL when trying to start a VE.

As a result, if vzctl is compiled against those headers, it will not be usable (although it will compile without complaining).



Reproducible: Always

Steps to Reproduce:
After compiling vzctl with linux-headers-2.6.25 and up, do :
vzctl start <VEID>
Actual Results:  
Unable to set capability: Invalid argument

Expected Results:  
<normal VE start>

Installing linux-headers-2.6.24 or earlier and recompiling vzctl solves the problem. It was suggested (#openvz on Freenode) that the problem should be corrected upstream instead of creating a dependency on linux-headers.
Comment 1 Martin von Gagern 2008-05-28 13:51:39 UTC
Similar issues were observed for squid in bug 223051, and a solution found at
http://www.squid-cache.org/bugs/show_bug.cgi?id=2350#c3
Maybe the same solution, i.e. using _LINUX_CAPABILITY_VERSION_1 instead of _LINUX_CAPABILITY_VERSION if available, would work for vzctl as well.
Comment 2 Romain Riviere 2008-05-28 17:48:36 UTC
(In reply to comment #1)
> Similar issues were observed for squid in bug 223051, and a solution found at
> http://www.squid-cache.org/bugs/show_bug.cgi?id=2350#c3
> Maybe the same solution, i.e. using _LINUX_CAPABILITY_VERSION_1 instead of
> _LINUX_CAPABILITY_VERSION if available, would work for vzctl as well.
> 

It would probably work since that is the argument used by capset() and causing it to fail. I'll try and give it a shot, if it hasn't been patched upstream by then.
Comment 3 Joakim 2008-07-13 22:35:08 UTC
Any progress on this issue? Actually, imho this is a blocker for bug 228189 as that bug cause the compile to fail which ironically safe a currently working vzctl to be hit by this one.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-07-14 06:18:13 UTC
Thank you all for report and sorry for delay. The patch from upstream was added to vzctl-3.0.22-r1. Fixed.