]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: show orchestrator status
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 10 Jul 2020 18:13:15 +0000 (14:13 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 13 Jul 2020 13:16:11 +0000 (09:16 -0400)
At the end of the playbook we can show the orchestrator status like
we do with the ceph status in initial deployment.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/cephadm-adopt.yml

index 0fc8b6d17e19bcc19be95112c94f22114d3f10d6..33fd938b4be1cb88d25c2077a387c2575405bab8 100644 (file)
           changed_when: false
           environment:
             CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
+
+- name: show ceph orchestrator status
+  hosts: "{{ mon_group_name|default('mons') }}"
+  become: true
+  gather_facts: false
+  tasks:
+    - import_role:
+        name: ceph-defaults
+
+    - name: show ceph orchestrator services
+      command: "cephadm shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch ls"
+      run_once: true
+      changed_when: false
+      environment:
+        CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
+
+    - name: show ceph orchestrator daemons
+      command: "cephadm shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch ps"
+      run_once: true
+      changed_when: false
+      environment:
+        CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'