Make Get OSD stat percentage compatible with both Luminous and Nautilus
On upgrade we might be using the newer validations against a Luminous
cluster, hence the check needs to work in both cases.
Change-Id: I16e7eb081640332ac69ee0b32d3d871fab40d447
Related-Bug: 1882387
(cherry picked from commit 35821c44df
)
This commit is contained in:
parent
5b73eaf317
commit
02664d1145
|
@ -65,7 +65,7 @@
|
|||
block:
|
||||
- name: set jq osd percentage filter
|
||||
set_fact:
|
||||
jq_osd_percentage_filter: '( (.osdmap.num_in_osds) / (.osdmap.num_osds) ) * 100'
|
||||
jq_osd_percentage_filter: '( (try .osdmap.num_in_osds + try .num_in_osds) / (try .osdmap.num_osds + try .num_osds)) * 100'
|
||||
|
||||
- name: Get OSD stat percentage
|
||||
become: true
|
||||
|
|
Loading…
Reference in New Issue