Browse Source

Update Ceph role's Get OSD stat to use new data structure

The variables for 'num_osds' and similar are now enclosed
in an additional map whose key is 'osdmap' so we need to
use that key when extracting them.

Change-Id: I40bed1fdc9cd39295a1b9f9aaed21d3814d7e2b5
Closes-Bug: #1882387
(cherry picked from commit aa330a8e99)
changes/69/734069/1
John Fulton 4 weeks ago
parent
commit
08f469d7e8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      roles/ceph/tasks/ceph-health.yaml

+ 1
- 1
roles/ceph/tasks/ceph-health.yaml View File

@@ -65,7 +65,7 @@
block:
- name: set jq osd percentage filter
set_fact:
jq_osd_percentage_filter: '( (.num_in_osds) / (.num_osds) ) * 100'
jq_osd_percentage_filter: '( (.osdmap.num_in_osds) / (.osdmap.num_osds) ) * 100'

- name: Get OSD stat percentage
become: true


Loading…
Cancel
Save