VNX: Set timeout for naviseccli
Add -timeout option to all naviseccli commands, the value is 120 sec. Change-Id: Ib3b35da6766b5db69395b89debd50c54d69eec00 Closes-Bug: 1546412
This commit is contained in:
parent
58ecfaac88
commit
4fe875a199
|
@ -5492,9 +5492,9 @@ class EMCVNXCLIDriverFCTestCase(DriverTestCaseBase):
|
|||
|
||||
class EMCVNXCLIToggleSPTestData(object):
|
||||
def FAKE_COMMAND_PREFIX(self, sp_address):
|
||||
return ('/opt/Navisphere/bin/naviseccli', '-address', sp_address,
|
||||
'-user', 'sysadmin', '-password', 'sysadmin',
|
||||
'-scope', 'global')
|
||||
return ('/opt/Navisphere/bin/naviseccli', '-timeout 120',
|
||||
'-address', sp_address, '-user', 'sysadmin',
|
||||
'-password', 'sysadmin', '-scope', 'global')
|
||||
|
||||
|
||||
class EMCVNXCLIToggleSPTestCase(test.TestCase):
|
||||
|
|
|
@ -688,7 +688,7 @@ class CommandLineHelper(object):
|
|||
LOG.error(err_msg)
|
||||
raise exception.VolumeBackendAPIException(data=err_msg)
|
||||
|
||||
self.command = (navisecclipath, '-address')
|
||||
self.command = (navisecclipath, '-timeout 120', '-address')
|
||||
self.active_storage_ip = configuration.san_ip
|
||||
self.primary_storage_ip = self.active_storage_ip
|
||||
self.secondary_storage_ip = configuration.san_secondary_ip
|
||||
|
|
Loading…
Reference in New Issue