Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 709454

Summary: Install VMs using ISO on NFS shares fail
Product: Red Hat Enterprise Linux 6 Reporter: Steve Reichard <sreichar>
Component: libvirtAssignee: Laine Stump <laine>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: dallan, dyuan, vvaldez
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-02 20:34:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve Reichard 2011-05-31 18:21:13 UTC
Description of problem:
We have always kept our our collections of ISO we we install guests on an NFS share.  This was not previously an issue, however on a RHEL 6.1 hosts this will fail and required me to copy the ISO locally.


If the NFS is mount using NFS3 I see this error:
Unable to complete install: 'internal error process exited while connecting to monitor: char device redirected to /dev/pts/6
qemu: could not open disk image /pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso: Permission denied
'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1622, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1193, in start_install
    start_xml, final_xml, is_initial)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1252, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1341, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error process exited while connecting to monitor: char device redirected to /dev/pts/6
qemu: could not open disk image /pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso: Permission denied

To show accessibility - 

[root@cf-vms qemu]# ls -l /pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso 
-rwxrwxrwx. 1 qemu qemu 3520802816 Nov 16  2010 /pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso
[root@cf-vms qemu]# dd if=/pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso of=/dev/null bs=1024
^C417117+0 records in
417116+0 records out
427126784 bytes (427 MB) copied, 3.81563 s, 112 MB/s

[root@cf-vms qemu]# dd if=/pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso of=/dev/null bs=1024k
3357+1 records in
3357+1 records out
3520802816 bytes (3.5 GB) copied, 26.5434 s, 133 MB/s
[root@cf-vms qemu]# 


If it is mounted NFSV4, I see this:

Unable to complete install: 'unable to set user and group to '107:107' on '/net/refarch.cloud.lab.eng.bos.redhat.com/pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso': Invalid argument'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1622, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1193, in start_install
    start_xml, final_xml, is_initial)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1252, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1341, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: unable to set user and group to '107:107' on '/net/refarch.cloud.lab.eng.bos.redhat.com/pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso': Invalid argument

showing accessibility again - 


[root@cf-vms qemu]# ls -l /net/refarch.cloud.lab.eng.bos.redhat.com/pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso 
-rwxrwxrwx. 1 4294967294 4294967294 3520802816 Nov 16  2010 /net/refarch.cloud.lab.eng.bos.redhat.com/pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso
[root@cf-vms qemu]# dd if=/net/refarch.cloud.lab.eng.bos.redhat.com/pub/kits/os/Fedora/14/x86_64/Fedora-14-x86_64-DVD.iso of=/dev/null bs=1024k
3357+1 records in
3357+1 records out
3520802816 bytes (3.5 GB) copied, 31.1087 s, 113 MB/s
[root@cf-vms qemu]# 



Version-Release number of selected component (if applicable):

[root@cf-vms qemu]# uname -a
Linux cf-vms.cloud.lab.eng.bos.redhat.com 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@cf-vms qemu]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.1 (Santiago)
[root@cf-vms qemu]# 
[root@cf-vms qemu]# yum list libvirt virt-manager 
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
Installed Packages
libvirt.x86_64                                                                 0.8.7-18.el6                                                            @rhel-x86_64-server-6
virt-manager.noarch                                                            0.8.6-4.el6                                                             @rhel-x86_64-server-6
[root@cf-vms qemu]

How reproducible:
 everytime



Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Laine Stump 2011-06-02 20:34:25 UTC
This is the same problem as Bug 702044 - chown returns EINVAL for this failure, but we're only ignoring EOPNOTSUPP, EPERM, and EROFS. My guess is that chown previously returned one of these other errors, but has been changed for some reason.

*** This bug has been marked as a duplicate of bug 702044 ***