From 3636ad1114a89101ed0a14520572b5f0203d454b Mon Sep 17 00:00:00 2001 From: Remi Bergsma Date: Thu, 25 Feb 2016 22:48:54 +0100 Subject: [PATCH] lower the time we wait for interfaces to appear They might never appear.. for example when we have entries in /etc/cloudstack/ips.json that haven't been plugged yet. Waiting this long makes everything horribly slow (every vm, interface, static route, etc, etc, will hit this wait, for every device). --- systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py index 1b39b385d4d6..0d0a4975ba4f 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py @@ -235,8 +235,7 @@ def buildlist(self): continue self.devlist.append(vals[0]) - def waitfordevice(self, timeout=15): - """ Wait up to 15 seconds for a device to become available """ + def waitfordevice(self, timeout=2): count = 0 while count < timeout: if self.dev in self.devlist: