[Users] Hey using NFS as my main datastore

I am using NFS share on an Openfile server as my main datastore went to fire up a virtual instance this is the error I get: VM Building_Automation is down. Exit message internal error process exited while connecting to monitor: qemu-kvm: -drive file=/rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c,if=none,id=drive-virtio-disk0,format=raw,serial=0e-a017-b09f8cfa9410,cache=none,werror=stop,rerror=stop,aio=threads: could not open disk image /rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c: Permission denied . Does vdsm have to be installed on the server that shares the main datastore? Export and ISO are fine no problems. -- Dominic Kaiser Greater Boston Vineyard Director of Operations cell: 617-230-1412 fax: 617-252-0238 email: dominic@bostonvineyard.org

On 02/09/2012 07:41 PM, Dominic Kaiser wrote:
I am using NFS share on an Openfile server as my main datastore went to fire up a virtual instance this is the error I get:
VM Building_Automation is down. Exit message internal error process exited while connecting to monitor: qemu-kvm: -drive file=/rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c,if=none,id=drive-virtio-disk0,format=raw,serial=0e-a017-b09f8cfa9410,cache=none,werror=stop,rerror=stop,aio=threads: could not open disk image /rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c: Permission denied .
Does vdsm have to be installed on the server that shares the main datastore? Export and ISO are fine no problems.
no need (say you would use a netapp, you couldn't install vdsm on it). but you get a permission denied. what does ls -l shows on that path?

--=_854a7bdd-197f-48f3-ac5f-af5cdba6bde7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit ----- Original Message ----- From: "Itamar Heim" <iheim@redhat.com> To: "Dominic Kaiser" <dominic@bostonvineyard.org> Cc: users@ovirt.org Sent: Thursday, February 9, 2012 7:44:54 PM Subject: Re: [Users] Hey using NFS as my main datastore On 02/09/2012 07:41 PM, Dominic Kaiser wrote:
I am using NFS share on an Openfile server as my main datastore went to fire up a virtual instance this is the error I get:
VM Building_Automation is down. Exit message internal error process exited while connecting to monitor: qemu-kvm: -drive file=/rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c,if=none,id=drive-virtio-disk0,format=raw,serial=0e-a017-b09f8cfa9410,cache=none,werror=stop,rerror=stop,aio=threads: could not open disk image /rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c: Permission denied . It might be an selinux issue, please run the following:
1) run getenforce - if getenforce == enforcing, please run 'setenforce 0' and re-run the vm 2) ls -Zl /rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c 3) rpm -qa | egrep "selinux|qemu-kvm|vdsm|libvirt"
Does vdsm have to be installed on the server that shares the main datastore? Export and ISO are fine no problems.
Re: [Users] Hey using NFS as my main datastore<br><br>On 02/09/2012 07:41 = PM, Dominic Kaiser wrote:<br>> I am using NFS share on an Openfile serve= r as my main datastore went to<br>> fire up a virtual instance this is t= he error I get:<br>><br>> VM Building_Automation is down. Exit messag= e internal error process<br>> exited while connecting to monitor: qemu-k= vm: -drive<br>> file=3D/rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674= ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b= 09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c,if=3Dnone,id=3Ddrive-virti= o-disk0,format=3Draw,serial=3D0e-a017-b09f8cfa9410,cache=3Dnone,werror=3Dst= op,rerror=3Dstop,aio=3Dthreads:<br>> could not open disk image<br>> /= rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6= c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4= fad-9150-437e7ff9d14c:<br>> Permission denied .<br>It might be an selinu= x issue, please run the following: <br><br>1) run getenforce - if getenforc= e =3D=3D enforcing, please run 'setenforce 0' and re-run the vm<br>2) ls -Z= l /rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b= 6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-= 4fad-9150-437e7ff9d14c<br>3) rpm -qa | egrep "selinux|qemu-kvm|vdsm|libvirt= " <br><br><br><br>><br>> Does vdsm have to be installed on the server=
no need (say you would use a netapp, you couldn't install vdsm on it). but you get a permission denied. what does ls -l shows on that path? _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users --=_854a7bdd-197f-48f3-ac5f-af5cdba6bde7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><style type=3D'text/css'>p { margin: 0; }</style></head><body><= div style=3D'font-family: Arial; font-size: 10pt; color: #000000'><br><br><= hr id=3D"zwchr"><div style=3D"color:#000;font-weight:normal;font-style:norm= al;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12= pt;"><b>From: </b>"Itamar Heim" <iheim@redhat.com><br><b>To: </b>"Dom= inic Kaiser" <dominic@bostonvineyard.org><br><b>Cc: </b>users@ovirt.o= rg<br><b>Sent: </b>Thursday, February 9, 2012 7:44:54 PM<br><b>Subject: </b= that shares the main<br>> datastore? Export and ISO are fine no p= roblems.<br><br>no need (say you would use a netapp, you couldn't install v= dsm on it).<br>but you get a permission denied.<br>what does ls -l shows on= that path?<br><br><br>_______________________________________________<br>U= sers mailing list<br>Users@ovirt.org<br>http://lists.ovirt.org/mailman/list= info/users<br></div><br></div></body></html> --=_854a7bdd-197f-48f3-ac5f-af5cdba6bde7--

So I have fixed it! Thanks Itamar! It was chown -R 36:36 /path to my shared folder. I should have looked at the ovirt wiki also: http://www.ovirt.org/wiki/Troubleshooting_NFS_Storage_Issues. So all NFS shares up and my virtual servers are starting. Dominic On Thu, Feb 9, 2012 at 12:41 PM, Dominic Kaiser <dominic@bostonvineyard.org>wrote:
I am using NFS share on an Openfile server as my main datastore went to fire up a virtual instance this is the error I get:
VM Building_Automation is down. Exit message internal error process exited while connecting to monitor: qemu-kvm: -drive file=/rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c,if=none,id=drive-virtio-disk0,format=raw,serial=0e-a017-b09f8cfa9410,cache=none,werror=stop,rerror=stop,aio=threads: could not open disk image /rhev/data-center/c10c25e0-526a-11e1-a5e4-87fa674ffb5d/340dad49-2ec7-475e-b6c6-668504bdb5b1/images/da582689-2248-4d0e-a017-b09f8cfa9410/78340ab7-b1f5-4fad-9150-437e7ff9d14c: Permission denied .
Does vdsm have to be installed on the server that shares the main datastore? Export and ISO are fine no problems.
-- Dominic Kaiser Greater Boston Vineyard Director of Operations
cell: 617-230-1412 fax: 617-252-0238 email: dominic@bostonvineyard.org
-- Dominic Kaiser Greater Boston Vineyard Director of Operations cell: 617-230-1412 fax: 617-252-0238 email: dominic@bostonvineyard.org

Hi Dominic, On 02/09/2012 01:49 PM, Dominic Kaiser wrote:
So I have fixed it! Thanks Itamar! It was chown -R 36:36 /path to my shared folder. I should have looked at the ovirt wiki also: http://www.ovirt.org/wiki/Troubleshooting_NFS_Storage_Issues. So all NFS shares up and my virtual servers are starting.
Nice! Next time something similar happens, you might want to try nfs-check script: http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=commitdiff;h=578cfe90239d5c3f6f1... Thanks! -- Cheers Douglas

On 02/10/2012 03:28 AM, Douglas Landgraf wrote:
Hi Dominic,
On 02/09/2012 01:49 PM, Dominic Kaiser wrote:
So I have fixed it! Thanks Itamar! It was chown -R 36:36 /path to my shared folder. I should have looked at the ovirt wiki also: http://www.ovirt.org/wiki/Troubleshooting_NFS_Storage_Issues. So all NFS shares up and my virtual servers are starting.
Hi Dominic, I had the same "perm denied" issue even after having all the user.group stuff right. It ended up as VDSM not setting the selinux policy. It went away for me after running `setsebool virt_use_nfs 1` Strangely, this is not mentioned in the above troubleshooting guide/link, let me see if i can add it.
Nice! Next time something similar happens, you might want to try nfs-check script: http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=commitdiff;h=578cfe90239d5c3f6f1...
Thanks!
Hi Doug, I saw the script, it just gives a hint to check selinux booleans, but doesn't go into specific as to which booleans need to be set. Is there any other place in the ovirt wiki where the selinux booleans are mentioned so that users can map it to their setup and make changes accordingly to match it as mentioned in the wiki ?
participants (5)
-
Deepak C Shetty
-
Dominic Kaiser
-
Douglas Landgraf
-
Haim Ateya
-
Itamar Heim