osd upgrade: sleep between status checks
Perform a sleep at the end of the status check loop to avoid
spamming the OSD admin socket continually.
Change-Id: I1d05d0da5010fa16fcdb794c3bcf9d3416aa046a
Related-Bug: 1821028
(cherry picked from commit b61b4d170b
)
This commit is contained in:
parent
5795ecb94f
commit
203b4b7a15
|
@ -2631,6 +2631,7 @@ def get_osd_state(osd_num, osd_goal_state=None):
|
||||||
return osd_state
|
return osd_state
|
||||||
if osd_state == osd_goal_state:
|
if osd_state == osd_goal_state:
|
||||||
return osd_state
|
return osd_state
|
||||||
|
time.sleep(3)
|
||||||
|
|
||||||
|
|
||||||
def get_all_osd_states(osd_goal_states=None):
|
def get_all_osd_states(osd_goal_states=None):
|
||||||
|
|
Loading…
Reference in New Issue