[Users] Error when trying to create a new ISO storage domain

--_84d40e63-2fba-48dd-8b16-7e7d22a9a18a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all=2C I am trying to define a new ISO storage domain. I go to System > Storage=2C= click on the "New Domain" link=2C and fill in the requisite fields. "Domai= n Function / Storage Type" drop is set to "ISO / NFS"=2C and I verified tha= t I have the proper NFS path to the export on the NFS server I want to use.= However=2C when I click the "OK" button=2C I am getting the following popu= p: -----Error while executing action Add Storage Connection: Permission settin= gs on the specified path do not allow access to the storage.Verify permissi= on settings on the specified storage path.----- I have verified that I can manually mount the NFS filesystem on the host de= fined in the "Use Host" drop [as root]=2C and I have looked in /var/log/mes= sages (on the mounting host=2C as well as the NFS server=2C and do not see = any errors... Please not that the NFS export is a pre-existing share on the= NFS server=2C and does contain pre-existing data (ISOs=2C etc.) How can I debug this? = --_84d40e63-2fba-48dd-8b16-7e7d22a9a18a_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 12pt=3B font-family:Calibri } --></style></head> <body class=3D'hmmessage'><div dir=3D'ltr'>Hi all=2C<div><br></div><div>I a= m trying to define a new ISO storage domain. I go to System >=3B Storage= =2C click on the "New Domain" link=2C and fill in the requisite fields. "Do= main Function / Storage Type" drop is set to "ISO / NFS"=2C and I verified = that I have the proper NFS path to the export on the NFS server I want to u= se. However=2C when I click the "OK" button=2C I am getting the following p= opup:<br><div><br></div><div>-----</div><div><div>Error while executing act= ion Add Storage Connection: Permission settings on the specified path do no= t allow access to the storage.</div><div>Verify permission settings on the = specified storage path.</div></div></div><div>-----</div><div><br></div><di= v>I have verified that I can manually mount the NFS filesystem on the host = defined in the "Use Host" drop [as root]=2C and I have looked in /var/log/m= essages (on the mounting host=2C as well as the NFS server=2C and do not se= e any errors... Please not that the NFS export is a pre-existing share on t= he NFS server=2C and does contain pre-existing data (ISOs=2C etc.)</div><di= v><br></div><div>How can I debug this?</div> </div></body> </html>= --_84d40e63-2fba-48dd-8b16-7e7d22a9a18a_--

This is a multi-part message in MIME format. ------=_NextPartTM-000-55a33d75-2f24-4571-9c2f-1e9439f8f59a Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi all,=0A= =0A= I am trying to define a new ISO storage domain. I go to System =0A= Storage, click on the "New Domain" link, and fill in the requisite =0A= fields. "Domain Function / Storage Type" drop is set to "ISO / NFS", =0A= and I verified that I have the proper NFS path to the export on the =0A= NFS server I want to use. However, when I click the "OK" button, I =0A= am getting the following popup:=0A= -----=0A= Error while executing action Add Storage Connection: Permission =0A= settings on the specified path do not allow access to the storage.=0A= Verify permission settings on the specified storage path.=0A= -----=0A= =0A= Did you follow the NFS export guidelines and userid 36? Here the=0A= export data from our ISO NFS server path=0A= =0A= # ls -ald /var/nas3/OVirtISO=0A= drwxrwxr-x 3 36 36 74 Dez 10 12:53 /var/nas3/OVirtISO=0A= # cat /etc/exports=0A= /var/nas3/OVirtEXP 10.0.0.0/12(rw,async,no_subtree_check,anonuid=3D36,anong= id=3D36,all_squash)=0A= ...=0A= =0A= Markus= ------=_NextPartTM-000-55a33d75-2f24-4571-9c2f-1e9439f8f59a Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt"
**************************************************************************** Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Über das Internet versandte E-Mails können unter fremden Namen erstellt oder manipuliert werden. Deshalb ist diese als E-Mail verschickte Nachricht keine rechtsverbindliche Willenserklärung. Collogia Unternehmensberatung AG Ubierring 11 D-50678 Köln Vorstand: Kadir Akin Dr. Michael Höhnerbach Vorsitzender des Aufsichtsrates: Hans Kristian Langva Registergericht: Amtsgericht Köln Registernummer: HRB 52 497 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. e-mails sent over the internet may have been written under a wrong name or been manipulated. That is why this message sent as an e-mail is not a legally binding declaration of intention. Collogia Unternehmensberatung AG Ubierring 11 D-50678 Köln executive board: Kadir Akin Dr. Michael Höhnerbach President of the supervisory board: Hans Kristian Langva Registry office: district court Cologne Register number: HRB 52 497 **************************************************************************** ------=_NextPartTM-000-55a33d75-2f24-4571-9c2f-1e9439f8f59a--

--_26fe8b8f-1c5a-41d9-a7c7-c906204da921_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks for the reply=2C Markus.
Did you follow the NFS export guidelines and userid 36? Here the export data from our ISO NFS server path =20 # ls -ald /var/nas3/OVirtISO drwxrwxr-x 3 36 36 74 Dez 10 12:53 /var/nas3/OVirtISO # cat /etc/exports /var/nas3/OVirtEXP 10.0.0.0/12(rw=2Casync=2Cno_subtree_check=2Canonuid=3D= 36=2Canongid=3D36=2Call_squash) ... =20 Markus
<br></div><div>The share is on a Illumos (nee OpenSolaris) box=2C and uses= ZFS's NFS implementation. Here is the output of the "share" command (i.e. = exportfs) for this share:</div><div><br></div><div><font face=3D"Courier Ne= w">-@storage/ovir  =3B/volumes/storage/ovirt-isos  =3B anon=3D36=2C= sec=3Dnone=2Crw  =3B ""</font></div><div><br></div><div>I did change th= e NFS mount options (added the "anon=3D36"=2C and changed the "sec=3D" opti= on from "sys to "none")=2C and now I'm getting a slightly different error:<= /div><div><br></div><div>-----</div><div><font face=3D"Arial Unicode MS=2C = Arial=2C sans-serif" size=3D"3">Error while executing action Add Storage Co= nnection: Problem while trying to mount target</font></div><div><font face= =3D"Arial Unicode MS=2C Arial=2C sans-serif" size=3D"3">-----</font></div><=
The share is on a Illumos (nee OpenSolaris) box=2C and uses ZFS's NFS imple= mentation. Here is the output of the "share" command (i.e. exportfs) for th= is share: -@storage/ovir /volumes/storage/ovirt-isos anon=3D36=2Csec=3Dnone=2Crw = "" I did change the NFS mount options (added the "anon=3D36"=2C and changed th= e "sec=3D" option from "sys to "none")=2C and now I'm getting a slightly di= fferent error: -----Error while executing action Add Storage Connection: Problem while try= ing to mount target----- Any way to get more info on what exactly the propblem is?? = --_26fe8b8f-1c5a-41d9-a7c7-c906204da921_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 12pt=3B font-family:Calibri } --></style></head> <body class=3D'hmmessage'><div dir=3D'ltr'>Thanks for the reply=2C Markus.<= br><div><br>>=3B Did you follow the NFS export guidelines and userid 36? = Here the<br>>=3B export data from our ISO NFS server path<br>>=3B <br>&= gt=3B # ls -ald /var/nas3/OVirtISO<br>>=3B drwxrwxr-x 3 36 36 74 Dez 10 1= 2:53 /var/nas3/OVirtISO<br>>=3B # cat /etc/exports<br>>=3B /var/nas3/OV= irtEXP 10.0.0.0/12(rw=2Casync=2Cno_subtree_check=2Canonuid=3D36=2Canongid= =3D36=2Call_squash)<br>>=3B ...<br>>=3B <br>>=3B Markus<br></div><div= div><br></div><div>Any way to get more info on what exactly the propblem is= ??</div> </div></body> </html>= --_26fe8b8f-1c5a-41d9-a7c7-c906204da921_--

--_3d0a2dd1-ed14-4440-bb69-4de96b116146_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am still trying to resolve this issue. I found the "Troubleshooting NFS S= torage Issues" page=2C and have a few questions regarding the troubleshooti= ng steps contained therein... 1) In the "Permissions" section=2C there's a suggestion under the "SELinux"= subsection to "su - vdsm -s /bin/bash" and then try to mount the target NF= S share under a temp mountpoint. However=2C the mount command is only usabl= e as 'root'=2C right? If this can indeed be done=2C please let me know how = (and I will update the wiki page...) 2) In the "nfs-check program" section=2C it says to run the Python script p= assing the the target NFS share path as a parameter. However=2C it does not= indicate where to run the script -- on the engine=2C or on a node? (When I= ran it on a node=2C it gives the output: return =3D 32 error mount.nfs: ac= cess denied by server while mounting stordevfs.nec-labs.com:/volumes/storag= e/ovirt-isos) Thanks!Will From: willarddennis@live.com To: stockhausen@collogia.de=3B users@ovirt.org Date: Mon=2C 20 Jan 2014 16:17:28 -0500 Subject: Re: [Users] Error when trying to create a new ISO storage domain =0A= =0A= =0A= Thanks for the reply=2C Markus.
Did you follow the NFS export guidelines and userid 36? Here the export data from our ISO NFS server path =20 # ls -ald /var/nas3/OVirtISO drwxrwxr-x 3 36 36 74 Dez 10 12:53 /var/nas3/OVirtISO # cat /etc/exports /var/nas3/OVirtEXP 10.0.0.0/12(rw=2Casync=2Cno_subtree_check=2Canonuid=3D= 36=2Canongid=3D36=2Call_squash) ... =20 Markus
>=3B # cat /etc/exports<br>>=3B /var/nas3/OVirtEXP 10.0.0.0/12(rw=2Cas= ync=2Cno_subtree_check=2Canonuid=3D36=2Canongid=3D36=2Call_squash)<br>>= =3B ...<br>>=3B <br>>=3B Markus<br></div><div><br></div><div>The share = is on a Illumos (nee OpenSolaris) box=2C and uses ZFS's NFS implementation.= Here is the output of the "share" command (i.e. exportfs) for this share:<= /div><div><br></div><div><font face=3D"Courier New">-@storage/ovir  =3B= /volumes/storage/ovirt-isos  =3B anon=3D36=2Csec=3Dnone=2Crw  =3B "= "</font></div><div><br></div><div>I did change the NFS mount options (added=
The share is on a Illumos (nee OpenSolaris) box=2C and uses ZFS's NFS imple= mentation. Here is the output of the "share" command (i.e. exportfs) for th= is share: -@storage/ovir /volumes/storage/ovirt-isos anon=3D36=2Csec=3Dnone=2Crw = "" I did change the NFS mount options (added the "anon=3D36"=2C and changed th= e "sec=3D" option from "sys to "none")=2C and now I'm getting a slightly di= fferent error: -----Error while executing action Add Storage Connection: Problem while try= ing to mount target----- Any way to get more info on what exactly the propblem is?? =0A= _______________________________________________=0A= Users mailing list=0A= Users@ovirt.org=0A= http://lists.ovirt.org/mailman/listinfo/users = --_3d0a2dd1-ed14-4440-bb69-4de96b116146_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 12pt=3B font-family:Calibri } --></style></head> <body class=3D'hmmessage'><div dir=3D'ltr'>I am still trying to resolve thi= s issue. I found the "Troubleshooting NFS Storage Issues" page=2C and have = a few questions regarding the troubleshooting steps contained therein...<di= v><br></div><div>1) In the "Permissions" section=2C there's a suggestion un= der the "SELinux" subsection to "su - vdsm -s /bin/bash" and then try to mo= unt the target NFS share under a temp mountpoint. However=2C the mount comm= and is only usable as 'root'=2C right? If this can indeed be done=2C please= let me know how (and I will update the wiki page...)</div><div><br></div><= div>2) In the "nfs-check program" section=2C it says to run the Python scri= pt passing the =3Bthe target NFS share path as a parameter. However=2C = it does not indicate where to run the script -- on the engine=2C or on a no= de? (When I ran it on a node=2C it gives the output: =3Breturn =3D 32 e= rror mount.nfs: access denied by server while mounting stordevfs.nec-labs.c= om:/volumes/storage/ovirt-isos)<br><br>Thanks!</div><div>Will<br><br><div><= hr id=3D"stopSpelling">From: willarddennis@live.com<br>To: stockhausen@coll= ogia.de=3B users@ovirt.org<br>Date: Mon=2C 20 Jan 2014 16:17:28 -0500<br>Su= bject: Re: [Users] Error when trying to create a new ISO storage domain<br>= <br>=0A= =0A= <style><!--=0A= .ExternalClass .ecxhmmessage P {=0A= padding:0px=3B=0A= }=0A= =0A= .ExternalClass body.ecxhmmessage {=0A= font-size:12pt=3B=0A= font-family:Calibri=3B=0A= }=0A= =0A= --></style>=0A= <div dir=3D"ltr">Thanks for the reply=2C Markus.<br><div><br>>=3B Did you= follow the NFS export guidelines and userid 36? Here the<br>>=3B export = data from our ISO NFS server path<br>>=3B <br>>=3B # ls -ald /var/nas3/= OVirtISO<br>>=3B drwxrwxr-x 3 36 36 74 Dez 10 12:53 /var/nas3/OVirtISO<br= the "anon=3D36"=2C and changed the "sec=3D" option from "sys to "none")=2C= and now I'm getting a slightly different error:</div><div><br></div><div>-= ----</div><div><font face=3D"Arial Unicode MS=2C Arial=2C sans-serif" size= =3D"3">Error while executing action Add Storage Connection: Problem while t= rying to mount target</font></div><div><font face=3D"Arial Unicode MS=2C Ar= ial=2C sans-serif" size=3D"3">-----</font></div><div><br></div><div>Any way= to get more info on what exactly the propblem is??</div> </div>= =0A= <br>_______________________________________________=0A= Users mailing list=0A= Users@ovirt.org=0A= http://lists.ovirt.org/mailman/listinfo/users</div></div> </div>= </body> </html>= --_3d0a2dd1-ed14-4440-bb69-4de96b116146_--

vdsm is using mount command. please look at vdsm log and find the mount command that is failing and run it manually to see the mount trace. you can also attach the vdsm log here and we can try to find it :) Dafna On 01/20/2014 09:17 PM, Willard Dennis wrote:
Thanks for the reply, Markus.
Did you follow the NFS export guidelines and userid 36? Here the export data from our ISO NFS server path
# ls -ald /var/nas3/OVirtISO drwxrwxr-x 3 36 36 74 Dez 10 12:53 /var/nas3/OVirtISO # cat /etc/exports /var/nas3/OVirtEXP 10.0.0.0/12(rw,async,no_subtree_check,anonuid=36,anongid=36,all_squash) ...
Markus
The share is on a Illumos (nee OpenSolaris) box, and uses ZFS's NFS implementation. Here is the output of the "share" command (i.e. exportfs) for this share:
-@storage/ovir /volumes/storage/ovirt-isos anon=36,sec=none,rw ""
I did change the NFS mount options (added the "anon=36", and changed the "sec=" option from "sys to "none"), and now I'm getting a slightly different error:
----- Error while executing action Add Storage Connection: Problem while trying to mount target -----
Any way to get more info on what exactly the propblem is??
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Dafna Ron

--_3f61678c-eed1-4323-b4bc-f49d198b4e5d_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks for the response=2C Dafna...
vdsm is using mount command. please look at vdsm log and find the mount command that is failing and=20 run it manually to see the mount trace. =20 you can also attach the vdsm log here and we can try to find it :) =20 Dafna
Just needed a clue where to look=2C thanks :) I see that the mount cmd is being invoked with sudo=2C and that's how it wo= rks for the user vdsm --/usr/bin/sudo -n /bin/mount -t nfs -o soft=2Cnoshar= ecache=2Ctimeo=3D600=2Cretrans=3D6=2Cnfsvers=3D3 stordevfs.nec-labs.com:/vo= lumes/storage/ovirt-isos /rhev/data-center/mnt/stordevfs.nec-labs.com:_volu= mes_storage_ovirt-isos And then the resulting error I'm getting:MountError: (32=2C '=3Bmount.nfs: = access denied by server while mounting stordevfs.nec-labs.com:/volumes/stor= age/ovirt-isos\n') ...which correlates with the output of the nfs-check.py script. So=2C I will have to debug on the Illumos side as to why I don't seem to ha= ve the needed perm's=3B but=2C in the meantime=2C I did set up a NFS share = on a CentOS 6.4 box I have available=2C following directions on http://www= .ovirt.org/Troubleshooting_NFS_Storage_Issues =2C and it does work fine fro= m there.=20 Thanks for your assistance! Best=2CWill = --_3f61678c-eed1-4323-b4bc-f49d198b4e5d_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 12pt=3B font-family:Calibri } --></style></head> <body class=3D'hmmessage'><div dir=3D'ltr'><br>Thanks for the response=2C D= afna...<br><div><br>>=3B vdsm is using mount command.<br>>=3B please lo= ok at vdsm log and find the mount command that is failing and <br>>=3B ru= n it manually to see the mount trace.<br>>=3B <br>>=3B you can also att= ach the vdsm log here and we can try to find it :)<br>>=3B <br>>=3B Daf= na<br><br></div><div>Just needed a clue where to look=2C thanks :)</div><di= v><br></div><div>I see that the mount cmd is being invoked with sudo=2C and= that's how it works for the user vdsm --</div><div><div><font face=3D"Cour= ier New">/usr/bin/sudo -n /bin/mount -t nfs -o soft=2Cnosharecache=2Ctimeo= =3D6<span style=3D"font-size: 12pt=3B">00=2Cretrans=3D6=2Cnfsvers=3D3 stord= evfs.nec-labs.com:/volumes/storage/ovirt-isos /rhev/data-center/mnt/stordev= fs.nec-labs.com:_volumes_storage_ovirt-isos</span></font></div></div><div><= br></div><div>And then the resulting error I'm getting:</div><div><font fac= e=3D"Courier New">MountError: (32=2C '=3Bmount.nfs: access denied by server= while mounting stordevfs.nec-labs.com:/volumes/storage/ovirt-isos\n')</fon= t></div><div><br></div><div>...which correlates with the output of the nfs-= check.py script.</div><div><br></div><div>So=2C I will have to debug on the= Illumos side as to why I don't seem to have the needed perm's=3B but=2C in= the meantime=2C I did set up a NFS share on a CentOS 6.4 box I have availa= ble=2C following directions on  =3B<a href=3D"http://www.ovirt.org/Trou= bleshooting_NFS_Storage_Issues" target=3D"_blank" style=3D"font-size: 12pt= =3B">http://www.ovirt.org/Troubleshooting_NFS_Storage_Issues</a> =3B=2C= and it does work fine from there. =3B</div><div><br></div><div>Thanks = for your assistance!</div><div><br></div><div>Best=2C</div><div>Will</div> = </div></body> </html>= --_3f61678c-eed1-4323-b4bc-f49d198b4e5d_--
participants (3)
-
Dafna Ron
-
Markus Stockhausen
-
Willard Dennis