Bug 700328 - Failed to save a local guest to root_squash nfs
Summary: Failed to save a local guest to root_squash nfs
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.7
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-28 07:26 UTC by zhanghaiyan
Modified: 2011-08-16 02:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 02:25:28 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description zhanghaiyan 2011-04-28 07:26:03 UTC
Description of problem:
Failed to save a local guest to root_squash nfs 

Version-Release number of selected component (if applicable):
- 2.6.18-256.el5
- kvm-83-230.el5
- libvirt-0.8.2-18.el5

How reproducible:
always

Steps to Reproduce:
On host A 
1. set up a nfs server
# cat /etc/exports
/tmp *(rw,root_squash)
# service nfs restart

On host B
2. start a local guest 
# virsh list --all
 Id Name                 State
----------------------------------
  5 rhel61               running
3.# mount 10.66.4.211:/tmp/ /mnt/
# ll -d /mnt/
drwxrwxrwt 30 root root 4096 Apr 28 03:20 /mnt/
In /etc/libvirt/qemu.conf, keep the default setting
# The user ID for QEMU processes run by the system instance
#user = "root"
# The group ID for QEMU processes run by the system instance
#group = "root"
# Whether libvirt should dynamically change file ownership
# to match the configured user/group above. Defaults to 0 for
# compatibility reasons.
# Set to 1 to enable file ownership changes.
#dynamic_ownership = 0
4. # virsh save rhel61 /mnt/rhel61.save
error: Failed to save domain rhel61 to /mnt/rhel61.save
error: Failed to create domain save file '/mnt/rhel61.save': Permission denied
5. # tail -f /var/log/messages
Apr 28 03:19:04 localhost libvirtd: 03:19:04.474: error : virFileOperationNoFork:1292 : cannot chown '/mnt/rhel61.save' to (0, 0): Operation not permitted 
Apr 28 03:19:04 localhost libvirtd: 03:19:04.474: error : qemudDomainSaveFlag:5308 : Failed to create domain save file '/mnt/rhel61.save': Operation not permitted 

Actual results:
4. Failed to save guest to root_squash nfs

Expected results:
4. Could succeed to save guest to root_squash nfs

Additional info:
If change nfs server to no_root_squash, then could save the guest to nfs succssfully

Comment 1 Huming Jiang 2011-05-31 10:02:08 UTC
Could reproduce this bug on the following components of rh5.6:
kernel-2.6.18-238.el5
libvirt-0.8.2-15.el5
virt-manager-0.6.1-13.el5

Steps:
On host A 
1. set up a nfs server
# cat /etc/exports
/tmp *(rw,root_squash)
# service nfs restart

On host B
2. start a local guest 
# virsh list --all
 Id Name                 State
----------------------------------
  5 rh5              running
3.# mount 10.66.4.211:/tmp/ /mnt/
# ll -d /mnt/
drwxrwxrwt 10 root root 4096 May 31 16:39 /mnt

In /etc/libvirt/qemu.conf, keep the default setting
# The user ID for QEMU processes run by the system instance
#user = "root"
# The group ID for QEMU processes run by the system instance
#group = "root"
# Whether libvirt should dynamically change file ownership
# to match the configured user/group above. Defaults to 0 for
# compatibility reasons.
# Set to 1 to enable file ownership changes.
#dynamic_ownership = 0

4. # virsh save rh5 /mnt/rh5.save
error: Failed to save domain rh5 to /mnt/rh5.save
error: Failed to create domain save file '/mnt/rh5.save': Operation not permitted

5. # tail -f /var/log/messages
May 31 17:58:43 tiger libvirtd: 17:58:43.215: error : virFileOperationNoFork:1293 : cannot chown '/mnt/rh5.save' to (0, 0): Operation not permitted 
May 31 17:58:43 tiger libvirtd: 17:58:43.215: error : qemudDomainSaveFlag:5308 : Failed to create domain save file '/mnt/rh5.save': Operation not permitted

Comment 2 RHEL Program Management 2011-06-20 22:43:22 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 4 RHEL Program Management 2011-08-16 02:25:28 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.