cp/mv broken in OpenVZ kernel: Please pull important fix

Bug #226335 reported by Daniel Hahler
34
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
High
Tim Gardner
Hardy
Fix Released
High
Unassigned
Intrepid
Invalid
High
Tim Gardner

Bug Description

Please include the following fix for the linux-openvz kernel. Without it, the kernel is still useless.

http://git.openvz.org/?p=ubuntu-hardy-openvz;a=commit;h=b5c04a9caa1ccec03150970499973e761de10c9f

openvz: make stat and fstat agree on (st_dev, st_ino) in VE

In Ubuntu kernel, sys_fstat implemented via new function vfs_fgetattr,
where virtinfo_notifier_call is not presented. As result syscalls stat
and fstat give different device id and inode numbers inside VE.

Bug report: http://forum.openvz.org/index.php?t=msg&th=5912

The fix is available since Thu, 17 Apr 2008 and has been mentioned in the "OpenVZ kernel does not boot" bug report (bug 210672).

Daniel Hahler (blueyed)
Changed in linux:
importance: Undecided → High
milestone: none → ubuntu-8.04.1
status: New → Triaged
Revision history for this message
Tim Gardner (timg-tpi) wrote :

SRU Justification:

Impact: cp and mv fail in most cases, rendering the openvz flavour unusable.

Fix Description: make stat and fstat agree on (st_dev, st_ino) in VE. This patch affects only the openvz kernel.

Patch: http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-hardy.git;a=commit;h=093579b35541f6a3a3ecfebf6f224ff336846d56

TEST CASE: See discussion in http://forum.openvz.org/index.php?t=msg&th=5912

Revision history for this message
Tim Gardner (timg-tpi) wrote :
Changed in linux:
assignee: nobody → timg-tpi
status: Triaged → Fix Committed
Revision history for this message
Jergen Dutch (jergendutch) wrote :

Is there a dpkg we can download to try this?

Revision history for this message
bgrupe (bgrupe) wrote :

I built a test kernel using the following commands (last line is the kernel it actually built for you, 17.32 contained the fix for this bug):

sudo aptitude install linux-kernel-devel fakeroot build-essential ubuntu-dev-tools git

git-clone git://kernel.ubuntu.com/ubuntu/ubuntu-hardy.git openvz

cd openvz
AUTOBUILD=1 NOEXTRAS=1 DEB_BUILD_OPTIONS=parallel=4 fakeroot debian/rules custom-binary-openvz
cd ..
sudo gdebi linux-image-2.6.24-17-openvz_2.6.24-17.32_amd64.deb

Revision history for this message
Jergen Dutch (jergendutch) wrote :

Thanks but unfortunately I can't install gcc etc on this box. No matter, I will wait.

Revision history for this message
Karoly Molnar (karoly-molnar) wrote :

Hi Jergen,

You don't need to compile the package on the same box where you will use it. Do as Bastian said on a temporary box and transfer the linux-image-2.6.24-17-openvz_2.6.24-17.32_amd64.deb package where you'd like to use it and install it with dpkg -i linux-image-2.6.24-17-openvz_2.6.24-17.32_amd64.deb.

Reboot, install vzctl and you have a fully functioning openvz system.

Cheers,
Karoly

Revision history for this message
Karoly Molnar (karoly-molnar) wrote :

I almost forgot that the installation instructions are updated on the OpenVZ Ubuntu Community Documentation page: https://help.ubuntu.com/community/OpenVZ#head-54cf69fe78967a48df8215528bf78747e49e4c42

Read it and you'll see that there is a temporary repository from where you could fetch & install the kernel.

Cheers,
Karoly

Revision history for this message
Jergen Dutch (jergendutch) wrote :

Thanks.

Revision history for this message
Jergen Dutch (jergendutch) wrote :

Unfortunately that kernel toasted my server. Because of an ubuntu installer bug, I use lilo instead of grub as my bootloader.
The image in PPA here does not work with lilo - it's too big.

Steve Langasek (vorlon)
Changed in linux:
milestone: ubuntu-8.04.1 → none
importance: Undecided → High
status: New → Triaged
Revision history for this message
Shane R. Spencer (whardier) wrote :

I use the compbrain PPA for these kernels. I left the Compbrain PPA kernels for 2.6.24-18 dist kernels and discovered this bug. This of course stops the network up/down scripts from functioning properly as well.

Sample Error:
    root@bip:/# cp /etc/hosts /etc/hosts2
    cp: skipping file `/etc/hosts', as it was replaced while being copied

Running:
    linux-image-2.6.24-18-openvz (2.6.24-18.32) as of today.

Reverting back to PPA kernels hoping nothing awkward just happened to my VZ's

Just curious, are there OpenVZ tests used before releasing kernels to the masses?

Revision history for this message
Daniel Feliciano Branco (danielblues) wrote :

Hi,

I have the same problem with linux-image-2.6.24-18-openvz.
It fails on copy with "skipping file as it was replaced while being copied"

Went back to linux-image-2.6.24-17-openvz and it works.

daniel

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Changed in linux:
status: Triaged → Fix Committed
Revision history for this message
Mik (mheder) wrote :

Martin, where can I find "-proposed" ?

Revision history for this message
bgrupe (bgrupe) wrote :

Mik:

see http://blog.omma.net/?p=11 for reference on how to get proposed updates and enjoy your new (hopefully) working kernel afterwards

Revision history for this message
Mik (mheder) wrote :

Thx Bastian.
The linux-image-2.6.24-19-openvz (2.6.24-19.33) from hardy-proposed repo working for me.

Revision history for this message
Daniel Feliciano Branco (danielblues) wrote :

Thanks
The linux-image-2.6.24-19-openvz also worked for me.

"-proposed" info:
https://wiki.ubuntu.com/Testing/EnableProposed

daniel

Revision history for this message
Stefan Soriga (sgstefan) wrote :

linux-image-2.6.24-19-openvz works for me too. Thanks.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Works for me, too. Changing tag to "verification-done".

Revision history for this message
Andy Hauser (andy-ubuntu-bugzilla) wrote :

Works here too.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in linux:
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

is this fix present in intrepid?

Revision history for this message
Tim Gardner (timg-tpi) wrote :

Custom binaries (openvz, xen, rt) are no longer present or supported in Intrepid.

Revision history for this message
Steve Langasek (vorlon) wrote :

marking as invalid since the openvz kernel flavor is not available in intrepid.

Changed in linux:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.