<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 18, 2012 at 9:48 AM, Eli Mesika <span dir="ltr"><<a href="mailto:emesika@redhat.com" target="_blank">emesika@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><div class="h5"><br>
<br>
----- Original Message -----<br>
> From: "Cristian Falcas" <<a href="mailto:cristi.falcas@gmail.com">cristi.falcas@gmail.com</a>><br>
> To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> Sent: Sunday, November 18, 2012 12:24:19 AM<br>
> Subject: [Users] can't add export domain<br>
><br>
><br>
> Hi all,<br>
><br>
> When trying to add a nfs export domain (nightly builds) I get this<br>
> error in logs:<br>
><br>
><br>
> Thread-564::DEBUG::2012-11-18<br>
> 00:17:47,923::misc::83::Storage.Misc.excCmd::(<lambda>) '/bin/sudo<br>
> -n /bin/mount -t nfs -o<br>
> soft,nosharecache,timeo=600,retrans=6,nfsvers=3<br>
> 10.20.20.20:/media/ceva2/Ovirt/Export<br>
> /rhev/data-center/mnt/10.20.20.20:_media_ceva2_Ovirt_Export' (cwd<br>
> None)<br>
> Thread-564::DEBUG::2012-11-18<br>
> 00:17:47,995::misc::83::Storage.Misc.excCmd::(<lambda>) '/bin/sudo<br>
> -n /bin/umount -f -l<br>
> /rhev/data-center/mnt/10.20.20.20:_media_ceva2_Ovirt_Export' (cwd<br>
> None)<br>
> Thread-564::ERROR::2012-11-18<br>
> 00:17:48,036::hsm::2207::Storage.HSM::(connectStorageServer) Could<br>
> not connect to storageServer<br>
> Traceback (most recent call last):<br>
> File "/usr/share/vdsm/storage/hsm.py", line 2203, in<br>
> connectStorageServer<br>
> conObj.connect()<br>
> File "/usr/share/vdsm/storage/storageServer.py", line 302, in connect<br>
> return self._mountCon.connect()<br>
> File "/usr/share/vdsm/storage/storageServer.py", line 208, in connect<br>
> fileSD.validateDirAccess(self.getMountObj().getRecord().fs_file)<br>
> File "/usr/share/vdsm/storage/fileSD.py", line 58, in<br>
> validateDirAccess<br>
> raise se.StorageServerAccessPermissionError(dirPath)<br>
> StorageServerAccessPermissionError: Permission settings on the<br>
> specified path do not allow access to the storage. Verify permission<br>
> settings on the specified storage path.: 'path =<br>
> /rhev/data-center/mnt/10.20.20.20:_media_ceva2_Ovirt_Export'<br>
><br>
> The directory is either removed or not created:<br>
><br>
> [root@localhost vdsm]# ls -la /rhev/data-center/mnt/<br>
> total 12<br>
> drwxr-xr-x. 3 vdsm kvm 4096 Nov 18 00:19 .<br>
> drwxr-xr-x. 7 vdsm kvm 4096 Nov 18 00:15 ..<br>
> drwxr-xr-x. 3 vdsm kvm 4096 Nov 18 00:14<br>
> 10.20.20.20:_media_ceva2_Ovirt_Iso<br>
> lrwxrwxrwx. 1 vdsm kvm 26 Nov 17 17:20 _media_ceva2_Ovirt_Storage -><br>
> /media/ceva2/Ovirt/Storage<br>
><br>
> If I create the<br>
> /rhev/data-center/mnt/10.20.20.20:_media_ceva2_Ovirt_Export<br>
> directory, it will be deleted when I try to add the storage again.<br>
<br>
</div></div>HI Cristian<br>
/rhev/data-center/mnt/ is manipulated internally and you should not add your export storage manually there.<br>
<br>
Please follow:<br>
1) Create an export directory (not under /rhev/data-center/mnt)<br>
2) chown 36 <your directory><br>
3) chgrp 36 <your directory><br>
<br>
Now, try to add your export domain<br>
<br>
The mount to /rhev/data-center/mnt/ is done internally by oVirt.<br>
<br>
><br>
> Best regards,<br>
> Cristian Falcas<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
><br>
</blockquote></div><br><br>Sorry, I forgot to mention that my real export dir was in /media/ceva2/Ovirt/Export/. <br><br>It looks that I had the wrong permissions on the folder, so problem is fixed after chown<br><br><br>
</div>