Add error message to OSD parse fail
This commit is contained in:
parent
95c59ba629
commit
5f9836f96d
|
@ -1183,8 +1183,8 @@ def update_zookeeper():
|
||||||
retcode, stdout, stderr = common.run_os_command('ceph osd df --format json', timeout=1)
|
retcode, stdout, stderr = common.run_os_command('ceph osd df --format json', timeout=1)
|
||||||
try:
|
try:
|
||||||
osd_df_raw = json.loads(stdout)['nodes']
|
osd_df_raw = json.loads(stdout)['nodes']
|
||||||
except:
|
except Exception as e:
|
||||||
logger.out('Failed to parse OSD list', state='w')
|
logger.out('Failed to parse OSD list: {}'.format(e), state='w')
|
||||||
osd_df_raw = []
|
osd_df_raw = []
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue