]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #49189 from pcuzner/improve-orch-host-ls
authorAdam King <47704447+adk3798@users.noreply.github.com>
Sun, 22 Jan 2023 16:26:10 +0000 (11:26 -0500)
committerGitHub <noreply@github.com>
Sun, 22 Jan 2023 16:26:10 +0000 (11:26 -0500)
orchestrator: improvements to the orch host ls command

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
1  2 
doc/cephadm/host-management.rst
src/pybind/mgr/orchestrator/module.py

index b6cba8a75470543682c325e3c0c44cd0f3859070,bd1b9192f998733dc50388639f72f7339428a426..18dbfb800f94f7c626aebe27d74cf14aa48f0591
@@@ -11,20 -11,29 +11,30 @@@ Run a command of this form to list host
  
  .. prompt:: bash #
  
-    ceph orch host ls [--format yaml] [--host-pattern <name>] [--label <label>] [--host-status <status>]
+    ceph orch host ls [--format yaml] [--host-pattern <name>] [--label <label>] [--host-status <status>] [--detail]
  
- In commands of this form, the arguments "host-pattern", "label" and
+ In commands of this form, the arguments "host-pattern", "label", and
  "host-status" are optional and are used for filtering. 
  
 -- "host-pattern" is a regex that will match against hostnames and will only
 -  return matching hosts.
 +- "host-pattern" is a regex that matches against hostnames and returns only
 +  matching hosts.
  - "label" returns only hosts with the specified label.
  - "host-status" returns only hosts with the specified status (currently
    "offline" or "maintenance").
 -- Any combination of these filtering flags is valid. You may filter against
 -  name, label and/or status simultaneously.
 +- Any combination of these filtering flags is valid. It is possible to filter
 +  against name, label and status simultaneously, or to filter against any
 +  proper subset of name, label and status.
  
+ The "detail" parameter provides more host related information for cephadm based
+ clusters. For example:
+ .. prompt:: bash #
+    # ceph orch host ls --detail 
+    HOSTNAME     ADDRESS         LABELS  STATUS  VENDOR/MODEL                           CPU    HDD      SSD  NIC  
+    ceph-master  192.168.122.73  _admin          QEMU (Standard PC (Q35 + ICH9, 2009))  4C/4T  4/1.6TB  -    1    
+    1 hosts in cluster
  .. _cephadm-adding-hosts:    
      
  Adding Hosts
Simple merge