Actions
Bug #46862
closedcephadm: nfs ganesha client mount is read only
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When trying to mount a ganesha share via nfs on a client node, the mount command is successful but the share is in RO mode (even if we set the rw mount option).
# ceph --version ceph version 16.0.0-4201-g2ccd47711b (2ccd47711b73b09069e6964730532fc3cf6e7382) pacific (dev)
Ganesha was deployed using the following commands:
# ceph osd pool create nfs-ganesha # ceph orch apply nfs foo nfs-ganesha nfs-ns
And the state of the ganesha service/daemon looks fine
# ceph orch ls --service_type nfs NAME RUNNING REFRESHED AGE PLACEMENT IMAGE NAME IMAGE ID nfs.foo 1/1 5m ago 19h count:1 docker.io/ceph/daemon-base:latest-master-devel 4275043b0890 # ceph orch ps --service_name nfs.foo NAME HOST STATUS REFRESHED AGE VERSION IMAGE NAME IMAGE ID CONTAINER ID nfs.foo.odjodqkndf odjodqkndf running (13m) 6m ago 19h 3.3 docker.io/ceph/daemon-base:latest-master-devel 4275043b0890 59ab18b8dcb9
Using a CentOS 8 node as a client
192.168.100.12 is ganesha IP address
192.168.100.9 is the client IP address
# mount -t nfs -o nfsvers=4,proto=tcp,rw 192.168.100.12:/ /mnt/ # ls -lh /mnt/ total 0 # touch /mnt/foo touch: cannot touch '/mnt/foo': Read-only file system # mount|grep nfs4 192.168.100.12:/ on /mnt type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.100.9,local_lock=none,addr=192.168.100.12)
In the ganesha pool we can see the conf-nfs.foo file present in the right namespace. But that file is empty (I don't know if this is expected or not)
# rados -p nfs-ganesha -N nfs-ns ls grace rec-0000000000000004:nfs.foo.odjodqkndf rec-0000000000000002:nfs.foo.odjodqkndf conf-nfs.foo
Am I missing something ?
Actions