]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/orchestrator: add filtering and count option for orch host ls 44531/head
authorAdam King <adking@redhat.com>
Fri, 19 Nov 2021 00:43:35 +0000 (19:43 -0500)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 11 Jan 2022 12:44:59 +0000 (13:44 +0100)
commit262e0f3065280ff68801fd420539f2462deb4443
tree430a3c90952546933196baadbef932418b5025a7
parent24e18cd04eeb9a4d111bcb1511987420e029bd3c
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>
(cherry picked from commit edd9bf38c3f07f5fdb6714e7f66515820c736d2e)
doc/cephadm/host-management.rst
src/pybind/mgr/orchestrator/module.py