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
)
This commit is contained in:
parent
aeea5d78b0
commit
08f469d7e8
@ -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…
Reference in New Issue
Block a user