Vinicius Lopes da Silva be55832311 Fix code to support new json format when calling osd crush tree
When doing host-lock in storage nodes when ceph cluster is in warning
state, it verifies the state of the storage node. Doing this involves
calling 'pg dump_stuck' and 'osd crush tree' but their json format has
changed and current code doesn't support this format.

The fix was made to support the new format.

Testing performed:
STANDARD+STORAGE: Set ceph-cluster in warning state and successfully
locked storage-1. To put the cluster in warning state I created a pool
having size 3 and set nosizechange to true. This allows pgs_list to not
be empty and test the loop iteration (which calls 'osd crush tree').

Story: 2009074
Task: 44128

Signed-off-by: Vinicius Lopes da Silva <vinicius.lopesdasilva@windriver.com>
Change-Id: I1b0f76e89222e2de0f95858955ef07ba479a6822
2021-12-06 11:36:34 -03:00
2020-02-21 14:57:37 -06:00
2021-06-17 01:45:52 +00:00
2019-10-24 13:23:53 -04:00
2019-09-09 13:43:49 -05:00
2019-09-09 13:43:49 -05:00
Description
StarlingX miscellaneous tools and utilities
11 MiB
Languages
Shell 53.7%
Python 39.2%
C 3.3%
Makefile 1.2%
HTML 1.1%
Other 1.3%