Created attachment 1584581 [details] Vdsm log of host machine Description of problem: rhv storage failures when using cephfs Version-Release number of selected component (if applicable): vdsm-4.30.20-1.el7ev.x86_64 How reproducible: 100% Steps to Reproduce: 1.Add a POSIX compliant fs storage to RHV with following settings: path: 10.73.224.204:6789:/ VFS type: ceph mount options: name=admin,secret=AQCAgd5cFyMQLhAAHaz6w+WKy5LvmKjmRAViEg== Get error: Error while executing action Add Storage Connection: Permission settings on the specified path do not allow access to the storage. Verify permission settings on the specified storage path. 2.On the rhv host, the mount cmd `mount -t ceph 10.73.224.204:6789:/ /rhev/data-center/mnt/10.73.224.204:6789:_ -o name=admin,secret=AQCAgd5cFyMQLhAAHaz6w+WKy5LvmKjmRAViEg==` works well 3. Actual results: Get errors and mount failed,more logs in attachment Expected results: works well without any errors Additional info:
It seems like you have a permission error, can you please check? "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.73.224.204:6789:_'"
(In reply to Tal Nisan from comment #1) > It seems like you have a permission error, can you please check? > "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.73.224.204:6789:_'" But actually i have checked it in step2 in the host,but it worked well. They have the same name and the same secret,so i wonder why i can't add it in RHV, this is why i file this bug.
Can you check that the VDSM user has permissions to access. Check here: https://www.ovirt.org/develop/troubleshooting-nfs-storage-issues.html
Specifically this setting is important: In principle, the user vdsm, with uid 36 and gid 36, must have read and write permissions on all NFS exports.
(In reply to Fred Rolland from comment #3) > Can you check that the VDSM user has permissions to access. > > Check here: > https://www.ovirt.org/develop/troubleshooting-nfs-storage-issues.html I checked the permmisions: # getsebool -a|grep virt_use_nfs virt_use_nfs --> on It is in 'on' status and i got the same error as before.
Did you check that the vdsm user can mount from the host?
Can you try to disable selinux on the host to see if it is related to : https://bugzilla.redhat.com/show_bug.cgi?id=1558836
(In reply to Fred Rolland from comment #7) > Can you try to disable selinux on the host to see if it is related to : > https://bugzilla.redhat.com/show_bug.cgi?id=1558836 Yeah,after i disaled selinux it worked well,it seems like the same error like https://bugzilla.redhat.com/show_bug.cgi?id=1558836
Thanks, I will duplicate to #1558836 *** This bug has been marked as a duplicate of bug 1558836 ***