Increase wait on OSD add/remove a bit more

This commit is contained in:
Joshua Boniface 2019-06-21 16:01:08 -04:00
parent 9cec0c5b43
commit 60e6df4416
1 changed files with 2 additions and 2 deletions

View File

@ -859,7 +859,7 @@ def add_osd(zk_conn, node, device, weight):
# Acquire a write lock to ensure things go smoothly # Acquire a write lock to ensure things go smoothly
lock = zkhandler.writelock(zk_conn, '/ceph/cmd') lock = zkhandler.writelock(zk_conn, '/ceph/cmd')
with lock: with lock:
time.sleep(3) time.sleep(5)
zkhandler.writedata(zk_conn, {'/ceph/cmd': ''}) zkhandler.writedata(zk_conn, {'/ceph/cmd': ''})
return success, message return success, message
@ -891,7 +891,7 @@ def remove_osd(zk_conn, osd_id):
# Acquire a write lock to ensure things go smoothly # Acquire a write lock to ensure things go smoothly
lock = zkhandler.writelock(zk_conn, '/ceph/cmd') lock = zkhandler.writelock(zk_conn, '/ceph/cmd')
with lock: with lock:
time.sleep(3) time.sleep(5)
zkhandler.writedata(zk_conn, {'/ceph/cmd': ''}) zkhandler.writedata(zk_conn, {'/ceph/cmd': ''})
return success, message return success, message