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.

Best regards,
Cristian Falcas