Skip to content

Need a "ceph-whatami" kind of utility that returns the type of ceph node {mon|mgr|mds|rgw|osd} #32

@nkshirsagar

Description

@nkshirsagar

It would be nice to have a utility that can run on any node and return what node it is (mon/mgr/mds/osd/rgw)

For a script, it's difficult to be sure what node it is running on. For example, if someone is writing a script that needs to do different things depending on whether it's run on a mon or osd node, for eg., there's no easy way to be sure unless you do a combination of things like check running services, examine /var/lib/ceph/XXX for non empty folders, etc.

So for example the expected behavior would be, when run on a OSD node,
$ceph-whatami
OSD

When run on a mon+mgr node
$ceph-whatami
MON
MGR

When run on a RGW node,
$ceph-whatami
RGW

This would come in handy for any scripts that need to behave differently depending on whether they're running on mon/osd/mgr/rgw/mds ceph nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions