First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 221971
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Peter Volkov <pva@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Romain Riviere <mr-smoke@spinning-plates.eu.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 221971 depends on: Show dependency tree
Bug 221971 blocks:
Votes: 10    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-05-13 17:11 0000
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 From Martin von Gagern 2008-05-28 13:51:39 0000 -------
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 From Romain Riviere 2008-05-28 17:48:36 0000 -------
(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 From Joakim 2008-07-13 22:35:08 0000 -------
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 From Peter Volkov 2008-07-14 06:18:13 0000 -------
Thank you all for report and sorry for delay. The patch from upstream was added
to vzctl-3.0.22-r1. Fixed.

First Last Prev Next    No search results available      Search page      Enter new bug