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.
DescriptionFederico Simoncelli
2013-05-16 17:35:12 UTC
Description of problem:
virDomainBlockInfo is failing on NFS when root_squash is enabled (Permission denied)
Version-Release number of selected component (if applicable):
libvirt-0.10.2-18.el6_4.4.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Start a vm with a disk on NFS with root_squash enabled
2. virsh -r domblkinfo [domain] vda
Actual results:
# virsh -r domblkinfo VM2 vda
error: failed to open path '/rhev/data-center/10dbed3a-20c7-42d7-8c1a-862910e6c136/e0d636c4-10c3-44be-a0ce-26cb59c1631b/images/07284a98-3ad5-4751-b981-be90e8b170b9/185a18a5-ff18-4ca1-b186-5f4ae490543f': Permission denied
Expected results:
The command should be successful.
I can reproduce it on rhevm with libvirt-0.10.2-18.el6_4.4.x86_64
pkginfo
kernel-2.6.32-358.2.1.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.355.el6_4.3.x86_64
libvirt-0.10.2-18.el6_4.4.x86_64
steps
1. Start a vm with a disk on NFS with root_squash enabled
2.# virsh -r domblkinfo nfs1 vda
error: failed to open path '/rhev/data-center/ef6ecccf-2ca5-4a00-8ebb-3f5676d4fb68/a4ca1c7c-ea33-4d6e-81c6-6605d45a82b3/images/7969dc43-15fb-47fc-84e1-78f11a3cd8ef/175885da-d47d-4843-adeb-75436c72dee0': Permission denied
# virsh domblkinfo nfs1 vda
Please enter your authentication name: test
Please enter your password:
error: failed to open path '/rhev/data-center/ef6ecccf-2ca5-4a00-8ebb-3f5676d4fb68/a4ca1c7c-ea33-4d6e-81c6-6605d45a82b3/images/7969dc43-15fb-47fc-84e1-78f11a3cd8ef/175885da-d47d-4843-adeb-75436c72dee0': Permission denied
Comment 3Martin Kletzander
2013-05-23 13:06:14 UTC
Comment 6Martin Kletzander
2013-07-24 13:13:45 UTC
This should be fixed upstream now with commit v1.1.1-rc1-7-gb4a40dd:
commit b4a40dd92dc7e6f110b13f2353cb5343d1147227
Author: Martin Kletzander <mkletzan>
Date: Fri May 24 18:26:26 2013 +0200
Use qemuOpenFile in qemu_driver.c
Comment 11Martin Kletzander
2014-04-07 08:26:58 UTC
I can reproduce with libvirt-0.10.2-29.el6_5.7.x86_64
verified with libvirt-0.10.2-31.el6.x86_64.
Steps to reporduce with libvirt-0.10.2-29.el6_5.7.x86_64.
1. Start a vm with a disk on NFS with root_squash enabled
# virsh list
Id Name State
----------------------------------------------------
2 aa1 running
2.# virsh -r domblkinfo aa1 vda
error: failed to open path '/var/lib/libvirt/nfs/aa1.img': Permission denied
# virsh domblkinfo a5d39767-51fe-81d6-1c17-048fadb8de89 vda
error: failed to open path '/var/lib/libvirt/nfs/aa1.img': Permission denied
Steps to verify with libvirt-0.10.2-31.el6.x86_64.
1. Start a vm with a disk on NFS with root_squash enabled
# virsh list
Id Name State
----------------------------------------------------
2 aa1 running
2. # virsh -r domblkinfo aa1 vda
Capacity: 8589934592
Allocation: 2452307968
Physical: 2452307968
# virsh domblkinfo aa1 vda
Capacity: 8589934592
Allocation: 2452307968
Physical: 2452307968
Verification passed, move to verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2014-1374.html