Set RADOS df information in ZK
This commit is contained in:
parent
9c89a22ec4
commit
cda690e94f
|
@ -916,6 +916,21 @@ def update_zookeeper():
|
||||||
logger.out('Failed to set Ceph status data', state='e')
|
logger.out('Failed to set Ceph status data', state='e')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Set ceph rados df information in zookeeper (primary only)
|
||||||
|
if this_node.router_state == 'primary':
|
||||||
|
if debug:
|
||||||
|
print("Set ceph rados df information in zookeeper (primary only)")
|
||||||
|
# Get rados df info
|
||||||
|
retcode, stdout, stderr = common.run_os_command('rados df')
|
||||||
|
rados_df = stdout
|
||||||
|
try:
|
||||||
|
zkhandler.writedata(zk_conn, {
|
||||||
|
'/ceph/radosdf': str(rados_df)
|
||||||
|
})
|
||||||
|
except:
|
||||||
|
logger.out('Failed to set Rados space data', state='e')
|
||||||
|
return
|
||||||
|
|
||||||
# Set pool information in zookeeper (primary only)
|
# Set pool information in zookeeper (primary only)
|
||||||
if this_node.router_state == 'primary':
|
if this_node.router_state == 'primary':
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue