On Sun, Nov 18, 2012 at 9:48 AM, Eli Mesika <emesika@redhat.com> wrote:


----- Original Message -----
> From: "Cristian Falcas" <cristi.falcas@gmail.com>
> To: users@ovirt.org
> Sent: Sunday, November 18, 2012 12:24:19 AM
> Subject: [Users] can't add export domain
>
>
> Hi all,
>
> When trying to add a nfs export domain (nightly builds) I get this
> error in logs:
>
>
> Thread-564::DEBUG::2012-11-18
> 00:17:47,923::misc::83::Storage.Misc.excCmd::(<lambda>) '/bin/sudo
> -n /bin/mount -t nfs -o
> soft,nosharecache,timeo=600,retrans=6,nfsvers=3
> 10.20.20.20:/media/ceva2/Ovirt/Export
> /rhev/data-center/mnt/10.20.20.20:_media_ceva2_Ovirt_Export' (cwd
> None)
> Thread-564::DEBUG::2012-11-18
> 00:17:47,995::misc::83::Storage.Misc.excCmd::(<lambda>) '/bin/sudo
> -n /bin/umount -f -l
> /rhev/data-center/mnt/10.20.20.20:_media_ceva2_Ovirt_Export' (cwd
> None)
> Thread-564::ERROR::2012-11-18
> 00:17:48,036::hsm::2207::Storage.HSM::(connectStorageServer) Could
> not connect to storageServer
> Traceback (most recent call last):
> File "/usr/share/vdsm/storage/hsm.py", line 2203, in
> connectStorageServer
> conObj.connect()
> File "/usr/share/vdsm/storage/storageServer.py", line 302, in connect
> return self._mountCon.connect()
> File "/usr/share/vdsm/storage/storageServer.py", line 208, in connect
> fileSD.validateDirAccess(self.getMountObj().getRecord().fs_file)
> File "/usr/share/vdsm/storage/fileSD.py", line 58, in
> validateDirAccess
> raise se.StorageServerAccessPermissionError(dirPath)
> StorageServerAccessPermissionError: Permission settings on the
> specified path do not allow access to the storage. Verify permission
> settings on the specified storage path.: 'path =
> /rhev/data-center/mnt/10.20.20.20:_media_ceva2_Ovirt_Export'
>
> The directory is either removed or not created:
>
> [root@localhost vdsm]# ls -la /rhev/data-center/mnt/
> total 12
> drwxr-xr-x. 3 vdsm kvm 4096 Nov 18 00:19 .
> drwxr-xr-x. 7 vdsm kvm 4096 Nov 18 00:15 ..
> drwxr-xr-x. 3 vdsm kvm 4096 Nov 18 00:14
> 10.20.20.20:_media_ceva2_Ovirt_Iso
> lrwxrwxrwx. 1 vdsm kvm 26 Nov 17 17:20 _media_ceva2_Ovirt_Storage ->
> /media/ceva2/Ovirt/Storage
>
> If I create the
> /rhev/data-center/mnt/10.20.20.20:_media_ceva2_Ovirt_Export
> directory, it will be deleted when I try to add the storage again.

HI Cristian
/rhev/data-center/mnt/ is manipulated internally and you should not add your export storage manually there.

Please follow:
1) Create an export directory (not under /rhev/data-center/mnt)
2) chown 36 <your directory>
3) chgrp 36 <your directory>

Now, try to add your export domain

The mount to /rhev/data-center/mnt/ is done internally by oVirt.

>
> Best regards,
> Cristian Falcas
>
> _______________________________________________
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>


Sorry, I forgot to mention that my real export dir was in /media/ceva2/Ovirt/Export/.

It looks that I had the wrong permissions on the folder, so problem is fixed after chown