]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/orchestrator: add filtering and count option for orch host ls 44020/head
authorAdam King <adking@redhat.com>
Fri, 19 Nov 2021 00:43:35 +0000 (19:43 -0500)
committerAdam King <adking@redhat.com>
Fri, 17 Dec 2021 14:51:56 +0000 (09:51 -0500)
commitedd9bf38c3f07f5fdb6714e7f66515820c736d2e
tree7187b7df3e2f4d6c431fc270c5ebc971d27cba37
parent834c0c175655468d79b3e4622d584c7673904d89
mgr/orchestrator: add filtering and count option for orch host ls

Filter orch host ls output for only hosts whose name
contains a certain substring or who have a certain label

Add a count flag that causes the command to return the number
of hosts found (either overall or matching the substring and/or
label) instead of a list of all the matching hosts

Fixes: https://tracker.ceph.com/issues/47774
Fixes: https://tracker.ceph.com/issues/53452
Signed-off-by: Adam King <adking@redhat.com>
doc/cephadm/host-management.rst
src/pybind/mgr/orchestrator/module.py