From: Adam King Date: Fri, 19 Nov 2021 00:43:35 +0000 (-0500) Subject: mgr/orchestrator: add filtering and count option for orch host ls X-Git-Tag: v16.2.8~266^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44531%2Fhead;p=ceph.git 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 (cherry picked from commit edd9bf38c3f07f5fdb6714e7f66515820c736d2e) --- diff --git a/doc/cephadm/host-management.rst b/doc/cephadm/host-management.rst index c109e2dc73b3..d6aa89faa24a 100644 --- a/doc/cephadm/host-management.rst +++ b/doc/cephadm/host-management.rst @@ -8,7 +8,13 @@ To list hosts associated with the cluster: .. prompt:: bash # - ceph orch host ls [--format yaml] + ceph orch host ls [--format yaml] [--host-pattern ] [--label