From: Yucong Feng Date: Fri, 24 Apr 2015 15:49:52 +0000 (-0500) Subject: Removing sleep between when a command is sent and 'YES' is sent X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ad77e835e8d9143f8da29fa6f13b64837972fc99;p=openstack-build%2Fcinder-build.git Removing sleep between when a command is sent and 'YES' is sent Removing sleep between when a command is sent and 'YES' is sent to confirm the operation. We believe it is added because the Cisco CLI is mirrored based on Brocade. Removing would increase performance when launching concurrent vms. Closes-Bug: #1447776 Change-Id: I3102922456fa9dde3a63ec623565a3427e9b357d --- diff --git a/cinder/zonemanager/drivers/cisco/cisco_fc_zone_client_cli.py b/cinder/zonemanager/drivers/cisco/cisco_fc_zone_client_cli.py index f71e99704..14ff95223 100644 --- a/cinder/zonemanager/drivers/cisco/cisco_fc_zone_client_cli.py +++ b/cinder/zonemanager/drivers/cisco/cisco_fc_zone_client_cli.py @@ -430,7 +430,6 @@ class CiscoFCZoneClientCLI(object): attempts -= 1 try: stdin, stdout, stderr = ssh.exec_command(command) - greenthread.sleep(random.randint(20, 500) / 100.0) channel = stdout.channel exit_status = channel.recv_exit_status() LOG.debug("Exit Status from ssh:%s", exit_status)