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:
James Page 2020-04-06 10:01:02 +01:00
parent 5795ecb94f
commit 203b4b7a15
1 changed files with 1 additions and 0 deletions

View File

@ -2631,6 +2631,7 @@ def get_osd_state(osd_num, osd_goal_state=None):
return osd_state
if osd_state == osd_goal_state:
return osd_state
time.sleep(3)
def get_all_osd_states(osd_goal_states=None):