From 12126847c1eed0eacccc8c247d93443bd83e5555 Mon Sep 17 00:00:00 2001 From: Apollon Oikonomopoulos <apollon@noc.grnet.gr> Date: Wed, 3 Aug 2011 18:04:08 +0300 Subject: [PATCH] Remove 15-second sleep from LUInstanceCreate 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 <apollon@noc.grnet.gr> Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/cmdlib.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 782cc2f16..d6bf26e11 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -8873,7 +8873,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: -- GitLab