From 776c94a8a3f49370a519e4ca92fb3071fc86e262 Mon Sep 17 00:00:00 2001 From: Tao Bai Date: Wed, 2 Jul 2014 03:17:50 -0700 Subject: [PATCH] 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 --- cinder/volume/drivers/ibm/storwize_svc/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) 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.""" -- 2.45.2