Bug 1724018

Summary: rhv storage failures when using cephfs
Product: Red Hat Enterprise Virtualization Manager Reporter: gaojianan <jgao>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED DUPLICATE QA Contact: Elad <ebenahar>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3.0CC: frolland, hhan, jgao, lsurette, srevivo, tnisan, ycui
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-17 09:04:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Vdsm log of host machine none

Description gaojianan 2019-06-26 03:20:50 UTC
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:

Comment 1 Tal Nisan 2019-07-08 15:02:49 UTC
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:_'"

Comment 2 gaojianan 2019-07-09 01:44:38 UTC
(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.

Comment 3 Fred Rolland 2019-07-15 14:26:29 UTC
Can you check that the VDSM user has permissions to access.

Check here:
https://www.ovirt.org/develop/troubleshooting-nfs-storage-issues.html

Comment 4 Fred Rolland 2019-07-15 14:27:29 UTC
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.

Comment 5 gaojianan 2019-07-16 09:46:02 UTC
(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.

Comment 6 Fred Rolland 2019-07-16 11:53:24 UTC
Did you check that the vdsm user can mount from the host?

Comment 7 Fred Rolland 2019-07-16 12:24:04 UTC
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

Comment 8 gaojianan 2019-07-17 05:49:37 UTC
(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

Comment 9 Fred Rolland 2019-07-17 09:04:03 UTC
Thanks, I will duplicate to #1558836

*** This bug has been marked as a duplicate of bug 1558836 ***