Remove 15 second sleep when wait_for_sync is not set. LUInstanceCreate already calls _WaitForSync with oneshot=True, which already performs an internal wait-loop for disks to start syncing.
Signed-off-by: Apollon Oikonomopoulos <apol...@noc.grnet.gr> --- lib/cmdlib.py | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index d4235a7..bb4ce4b 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -8855,7 +8855,6 @@ class LUInstanceCreate(LogicalUnit): disk_abort = not _WaitForSync(self, iobj) elif iobj.disk_template in constants.DTS_INT_MIRROR: # make sure the disks are not degraded (still sync-ing is ok) - time.sleep(15) feedback_fn("* checking mirrors status") disk_abort = not _WaitForSync(self, iobj, oneshot=True) else: -- 1.7.2.5