Skip to content

Commit

Permalink
dump more ceph cluster info during deployment
Browse files Browse the repository at this point in the history
post ceph deployment, this patch will display more cluster details
as part of cifmw_cephadm role.
  • Loading branch information
katarimanojk authored and openshift-merge-bot[bot] committed Aug 1, 2024
1 parent d87ab21 commit 1c1d0d0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions roles/cifmw_cephadm/tasks/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@
ansible.builtin.debug:
msg: "{{ ceph_orch_ls.stdout_lines }}"
when: cifmw_cephadm_verbose | bool

- name: Get ceph config dump
ansible.builtin.command: "{{ cifmw_cephadm_ceph_cli }} config dump"
become: true
register: ceph_config_dump
- name: Show config dump
ansible.builtin.debug:
msg: "{{ ceph_config_dump.stdout_lines }}"
when: cifmw_cephadm_verbose | bool

- name: Get ceph require-min-compat-client
ansible.builtin.command: "{{ cifmw_cephadm_ceph_cli }} osd get-require-min-compat-client"
become: true
register: ceph_min_compat_client
- name: Show ceph require-min-compat-client
ansible.builtin.debug:
msg: "{{ ceph_min_compat_client.stdout_lines }}"

- name: Get ceph version
ansible.builtin.command: "{{ cifmw_cephadm_ceph_cli }} -v"
become: true
register: ceph_version
- name: Ceph version
ansible.builtin.debug:
msg: "{{ ceph_version.stdout_lines }}"

- name: Print the status of the deployed Ceph cluster
ansible.builtin.command: "{{ cifmw_cephadm_ceph_cli }} -s"
become: true
Expand Down

0 comments on commit 1c1d0d0

Please sign in to comment.