From: Tao Bai Date: Wed, 2 Jul 2014 10:17:50 +0000 (-0700) Subject: Slow down Storwize driver initialization X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=776c94a8a3f49370a519e4ca92fb3071fc86e262;p=openstack-build%2Fcinder-build.git Slow down Storwize driver initialization Storwize has the limitation that can not burst more than 3 new ssh connection within 1 second.So slow down storwize driver initialization. Closes-Bug: #1335722 Change-Id: Id442cd6421ef23b953a3cb45a5f6dd6969064a6e --- diff --git a/cinder/volume/drivers/ibm/storwize_svc/__init__.py b/cinder/volume/drivers/ibm/storwize_svc/__init__.py index 810535643..471ddad33 100644 --- a/cinder/volume/drivers/ibm/storwize_svc/__init__.py +++ b/cinder/volume/drivers/ibm/storwize_svc/__init__.py @@ -35,6 +35,8 @@ Limitations: """ import math +import time + from oslo.config import cfg from cinder import context @@ -137,6 +139,9 @@ class StorwizeSVCDriver(san.SanDriver): 'system_id': None, 'code_level': None, } + # Storwize has the limitation that can not burst more than 3 new ssh + # connections within 1 second. So slow down the initialization. + time.sleep(1) def do_setup(self, ctxt): """Check that we have all configuration details from the storage."""