]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Removing sleep between when a command is sent and 'YES' is sent
authorYucong Feng <yfeng@us.ibm.com>
Fri, 24 Apr 2015 15:49:52 +0000 (10:49 -0500)
committerYucong Feng <yfeng@us.ibm.com>
Tue, 5 May 2015 14:14:55 +0000 (09:14 -0500)
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

cinder/zonemanager/drivers/cisco/cisco_fc_zone_client_cli.py

index f71e99704e778f9397e5fa8db226d45e87f41161..14ff95223f87a4db6caffd32df1b8f2edf6424b4 100644 (file)
@@ -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)