Created attachment 1726324 [details] NFS mount Description of problem:[Ceph-Dashboard] 5.0 - Dashboard is not listing the NFS mounts for CephFS. >client section shows still "0" instead of 1 Version-Release number of selected component (if applicable): [root@magna094 ubuntu]# ./cephadm version Using recent ceph image registry-proxy.engineering.redhat.com/rh-osbs/rhceph:ceph-5.0-rhel-8-containers-candidate-96803-20201013192445 ceph version 16.0.0-6275.el8cp (d1e0606106224ac333f1c245150d7484cb626841) pacific (dev) [root@magna094 ubuntu]# How reproducible: Steps to Reproduce: 1. Install a bootstrap cluster with cephadm and the dashboard service enabled. 2. # cephadm shell 3.Deploy NFS over CEPHFS followed by mounting the NFS. Below commands used for reference: ceph fs volume create test 1 ceph orch apply mds test 3 ceph nfs cluster create cephfs testnfs ceph nfs cluster info testnfs (verify hostname, ip and port are listed) Record ip and port for later ceph nfs export create cephfs test testnfs /cephfs ceph auth ls (check “client.testnfs1” keyring is present) ceph nfs export get testnfs /cephfs (should have output) rados -p nfs-ganesha -N testnfs get export-1 - testnfs/cephnfs (check that export was successfully created) ceph nfs export ls testnfs (should show pseudo path “/cephfs”) Verify nfs export exists on dashboard Login to dashboard with credentials from bootstrap URL will be https://{host-ip}:8443/ Navigate to NFS page Table should contain the export you just created Exit shell Command should just be “exit” systemctl status nfs-server If service is listed as inactive, run “systemctl start nfs-server” Run “systemctl status nfs-server”. Should now be active sudo mount -t nfs -o port={nfs-port} {nfs-ip}:/cephfs /mnt Port and ip should be from “ceph nfs cluster info testnfs” command ran earlier Ex: mount -t nfs -o port=2049 10.8.128.94:/cephfs /mnt/cephfs/ Then give mount command -> to check if its mounted #mount Output: 10.8.128.94:/cephfs on /mnt/cephfs type nfs4 (rw,relatime,seclabel,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.8.128.94,local_lock=none,addr=10.8.128.94) Actual results: Able to see the mounted details in CLI but the same is not reflected in Dashboard under client section Expected results: Dashboard UI also should display the info displayed in CLI as well Additional info: Magna094 root/q Attached screenshot for the same https://magna094.ceph.redhat.com:8443/#/login admin/admin123
Created attachment 1731285 [details] Filesystems client list
*** Bug 1903460 has been marked as a duplicate of this bug. ***
Tested in Version : ceph version 16.2.0-38.el8cp (54fb2271e5015808565bc05b6877deb6bf3f5da9) pacific (stable) Client List from the cluster cli: We have a client with ID 24460 which is nfs mount. Overall we have 4 clients and all are displayed in dashboard Attached Screenshot for the same [cephuser@ceph-amar-bg-1621428120609-node1-mon-mgr-client-installer ~]$ sudo ceph tell mds.0 client ls 2021-05-20T01:51:18.004-0400 7f24f77fe700 0 client.15642 ms_handle_reset on v2:10.0.210.160:6832/1636896799 2021-05-20T01:51:18.026-0400 7f24f77fe700 0 client.15648 ms_handle_reset on v2:10.0.210.160:6832/1636896799 [ { "id": 24442, "entity": { "name": { "type": "client", "num": 24442 }, "addr": { "type": "v1", "addr": "10.0.210.160:0", "nonce": 2653008770 } }, "state": "open", "num_leases": 0, "num_caps": 1, "request_load_avg": 0, "uptime": 58681.643746759, "requests_in_flight": 0, "completed_requests": 0, "reconnecting": false, "recall_caps": { "value": 0, "halflife": 60 }, "release_caps": { "value": 0, "halflife": 60 }, "recall_caps_throttle": { "value": 0, "halflife": 1.5 }, "recall_caps_throttle2o": { "value": 0, "halflife": 0.5 }, "session_cache_liveness": { "value": 0, "halflife": 300 }, "cap_acquisition": { "value": 0, "halflife": 10 }, "delegated_inos": [], "inst": "client.24442 v1:10.0.210.160:0/2653008770", "completed_requests": [], "prealloc_inos": [], "client_metadata": { "client_features": { "feature_bits": "0x0000000000003bff" }, "metric_spec": { "metric_flags": { "feature_bits": "0x" } }, "entity_id": "ceph-amar-bg-1621428120609-node3-osd-mon-mds-client", "hostname": "ceph-amar-bg-1621428120609-node3-osd-mon-mds-client", "kernel_version": "4.18.0-240.1.1.el8_3.x86_64", "root": "/" } }, { "id": 24460, "entity": { "name": { "type": "client", "num": 24460 }, "addr": { "type": "any", "addr": "10.0.210.160:0", "nonce": 1918915129 } }, "state": "open", "num_leases": 0, "num_caps": 4, "request_load_avg": 0, "uptime": 58511.931957170003, "requests_in_flight": 0, "completed_requests": 1, "reconnecting": false, "recall_caps": { "value": 0, "halflife": 60 }, "release_caps": { "value": 0, "halflife": 60 }, "recall_caps_throttle": { "value": 0, "halflife": 1.5 }, "recall_caps_throttle2o": { "value": 0, "halflife": 0.5 }, "session_cache_liveness": { "value": 0, "halflife": 300 }, "cap_acquisition": { "value": 0, "halflife": 10 }, "delegated_inos": [ { "start": "0x100000057a8", "length": 500 } ], "inst": "client.24460 10.0.210.160:0/1918915129", "completed_requests": [ { "tid": 4151, "created_ino": "0x1000000621d" } ], "prealloc_inos": [ { "start": "0x100000057a8", "length": 500 }, { "start": "0x1000000621e", "length": 827 } ], "client_metadata": { "client_features": { "feature_bits": "0x000000000000ffff" }, "metric_spec": { "metric_flags": { "feature_bits": "0x00000000000000ff" } }, "ceph_sha1": "54fb2271e5015808565bc05b6877deb6bf3f5da9", "ceph_version": "ceph version 16.2.0-38.el8cp (54fb2271e5015808565bc05b6877deb6bf3f5da9) pacific (stable)", "entity_id": "admin", "hostname": "ceph-amar-bg-1621428120609-node3-osd-mon-mds-client", "pid": "40639", "root": "/", "timeout": "300", "uuid": "ganesha-ceph-amar-bg-1621428120609-node3-osd-mon-mds-client-0064" } }, { "id": 24584, "entity": { "name": { "type": "client", "num": 24584 }, "addr": { "type": "any", "addr": "10.0.209.20:0", "nonce": 1173000466 } }, "state": "open", "num_leases": 0, "num_caps": 0, "request_load_avg": 0, "uptime": 58682.949736303999, "requests_in_flight": 0, "completed_requests": 0, "reconnecting": false, "recall_caps": { "value": 0, "halflife": 60 }, "release_caps": { "value": 0, "halflife": 60 }, "recall_caps_throttle": { "value": 0, "halflife": 1.5 }, "recall_caps_throttle2o": { "value": 0, "halflife": 0.5 }, "session_cache_liveness": { "value": 0, "halflife": 300 }, "cap_acquisition": { "value": 0, "halflife": 10 }, "delegated_inos": [], "inst": "client.24584 10.0.209.20:0/1173000466", "completed_requests": [], "prealloc_inos": [], "client_metadata": { "client_features": { "feature_bits": "0x000000000000ffff" }, "metric_spec": { "metric_flags": { "feature_bits": "0x00000000000000ff" } }, "ceph_sha1": "54fb2271e5015808565bc05b6877deb6bf3f5da9", "ceph_version": "ceph version 16.2.0-38.el8cp (54fb2271e5015808565bc05b6877deb6bf3f5da9) pacific (stable)", "entity_id": "ceph-amar-bg-1621428120609-node2-mon-mgr-mds-client", "hostname": "ceph-amar-bg-1621428120609-node2-mon-mgr-mds-client", "mount_point": "/mnt/cephfs_hsnex9cdjv", "pid": "28904", "root": "/" } }, { "id": 15147, "entity": { "name": { "type": "client", "num": 15147 }, "addr": { "type": "any", "addr": "10.0.210.31:0", "nonce": 3788581867 } }, "state": "open", "num_leases": 0, "num_caps": 5, "request_load_avg": 0, "uptime": 58683.241733966999, "requests_in_flight": 0, "completed_requests": 0, "reconnecting": false, "recall_caps": { "value": 0, "halflife": 60 }, "release_caps": { "value": 0, "halflife": 60 }, "recall_caps_throttle": { "value": 0, "halflife": 1.5 }, "recall_caps_throttle2o": { "value": 0, "halflife": 0.5 }, "session_cache_liveness": { "value": 0, "halflife": 300 }, "cap_acquisition": { "value": 0, "halflife": 10 }, "delegated_inos": [], "inst": "client.15147 10.0.210.31:0/3788581867", "completed_requests": [], "prealloc_inos": [ { "start": "0x10000000805", "length": 471 }, { "start": "0x10000005595", "length": 526 } ], "client_metadata": { "client_features": { "feature_bits": "0x000000000000ffff" }, "metric_spec": { "metric_flags": { "feature_bits": "0x00000000000000ff" } }, "ceph_sha1": "54fb2271e5015808565bc05b6877deb6bf3f5da9", "ceph_version": "ceph version 16.2.0-38.el8cp (54fb2271e5015808565bc05b6877deb6bf3f5da9) pacific (stable)", "entity_id": "ceph-amar-bg-1621428120609-node1-mon-mgr-client-installer", "hostname": "ceph-amar-bg-1621428120609-node1-mon-mgr-client-installer", "mount_point": "/mnt/cephfs_hsnex9cdjv", "pid": "64776", "root": "/" } } ]
Created attachment 1785048 [details] Clients Displayed in Dashboard
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3294