3PAR: Workaround SSH logging issue
The 3PAR client has a problem when enabling debug logging, if the client hasn't created its SSH client when we enable the debug logging it doesn't enable SSH logging. The client bug is https://bugs.launchpad.net/cinder/+bug/1882075 This patch introduces a workaround that enables logging again after we have already created the SSH client (happens when we call "setSSHOptions" in "client_login". Closes-Bug: #1882075 Change-Id: I869f8e286d7242cb8aba8ee4a3048aae0e034492
This commit is contained in:
parent
feae563269
commit
951ffa4373
@ -534,6 +534,10 @@ class HPE3PARCommon(object):
|
||||
self.client_logout()
|
||||
else:
|
||||
self.client.id = stats['array_id']
|
||||
# TODO: This duplicate call is to see SSH logs. Remove it when issue
|
||||
# https://github.com/hpe-storage/python-3parclient/pull/77 is fixed.
|
||||
if self.config.hpe3par_debug:
|
||||
self.client.debug_rest(True)
|
||||
|
||||
def check_for_setup_error(self):
|
||||
"""Verify that requirements are in place to use HPE driver."""
|
||||
|
Loading…
Reference in New Issue
Block a user