From 951ffa437309db5ef257529f475327f6561a50df Mon Sep 17 00:00:00 2001 From: Gorka Eguileor Date: Thu, 4 Jun 2020 13:36:26 +0200 Subject: [PATCH] 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 --- cinder/volume/drivers/hpe/hpe_3par_common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cinder/volume/drivers/hpe/hpe_3par_common.py b/cinder/volume/drivers/hpe/hpe_3par_common.py index 7bc32d3c9cc..214e079cae1 100644 --- a/cinder/volume/drivers/hpe/hpe_3par_common.py +++ b/cinder/volume/drivers/hpe/hpe_3par_common.py @@ -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."""