Bug 1794558

Summary: RFE - Ceph command 'ceph node ls' doesn't report clients like RGW
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: mamccoma
Component: Ceph-Mgr PluginsAssignee: Greg Farnum <gfarnum>
Ceph-Mgr Plugins sub component: status QA Contact: Sayalee <saraut>
Status: ASSIGNED --- Docs Contact: ceph-docs <ceph-docs>
Severity: low    
Priority: medium CC: cbodley, ceph-eng-bugs, kbader, mamccoma, mbenjamin, mhackett, nojha, rzarzyns
Version: 3.3   
Target Milestone: ---   
Target Release: 7.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mamccoma 2020-01-23 20:00:27 UTC
Hello,

- When running the command 'ceph node ls', it doesn't appear to list the ceph-mgr services. 


- This doesn't appear to be a common command and so I suspect it just needs to be updated for the separated ceph-mgr daemon that appeared in RHCS 3.x

- Initial introduction of the command: https://tracker.ceph.com/issues/10904

================================================

# ceph -s
  cluster:
    id:     397e918c-3a8e-4a02-8cfa-9aaefef65fcf
    health: HEALTH_OK
 
  services:
    mon: 3 daemons, quorum vm252-88,vm254-248,vm255-135
    mgr: vm252-88(active), standbys: vm255-135, vm254-248
    osd: 9 osds: 9 up, 9 in
    rgw: 3 daemons active
 
  data:
    pools:   7 pools, 100 pgs
    objects: 271 objects, 140MiB
    usage:   1.43GiB used, 84.0GiB / 85.4GiB avail
    pgs:     100 active+clean

======================================================

[root@vm252-88 ~]# ceph node ls
{
    "mon": {
        "vm252-88.gsslab.pnq2.redhat.com": [
            0
        ],
        "vm254-248.gsslab.pnq2.redhat.com": [
            1
        ],
        "vm255-135.gsslab.pnq2.redhat.com": [
            2
        ]
    },
    "osd": {
        "vm252-88.gsslab.pnq2.redhat.com": [
            0,
            4,
            8
        ],
        "vm254-248.gsslab.pnq2.redhat.com": [
            1,
            3,
            5
        ],
        "vm255-135.gsslab.pnq2.redhat.com": [
            2,
            6,
            7
        ]
    }
}

===============================================

- As it appears the command can list 'mds' nodes, there could also be some added benefit in being able to list RGW clients as well. Especially as 'ceph -s only lists the number of RGWs and does't provide the names.


- From the man page:

node ls {all|osd|mon|mds}                                                                                 list all nodes in cluster [type]

Comment 6 Jane smith 2020-11-04 09:55:07 UTC Comment hidden (spam)