From 7ab8848a29ec266490b75af505cf3b7ddfaac17c Mon Sep 17 00:00:00 2001 From: raghavendrat Date: Sat, 8 Jun 2024 11:52:30 +0000 Subject: [PATCH] HPE 3par: getWsApiVersion now requires login Earlier the call to getWsApiVersion() worked without login. Now with new wsapi of 2024, login is required. This patch makes call to client_login() before getWsApiVersion(). Closes-Bug: #2068795 Change-Id: I30f105ee619386f52bc907f5115c08e0fafb9e42 (cherry picked from commit 1b07bee38643d4d4cf52fcb01d2e45318187b27e) --- cinder/volume/drivers/hpe/hpe_3par_common.py | 1 + .../hpe-3par-login-getWsApiVersion-0252d655844ae054.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/hpe-3par-login-getWsApiVersion-0252d655844ae054.yaml diff --git a/cinder/volume/drivers/hpe/hpe_3par_common.py b/cinder/volume/drivers/hpe/hpe_3par_common.py index 9094f7e8936..bd2e1350b30 100644 --- a/cinder/volume/drivers/hpe/hpe_3par_common.py +++ b/cinder/volume/drivers/hpe/hpe_3par_common.py @@ -466,6 +466,7 @@ class HPE3PARCommon(object): # case of a fail-over. self._get_3par_config(array_id=array_id) self.client = self._create_client(timeout=timeout) + self.client_login() wsapi_version = self.client.getWsApiVersion() self.API_VERSION = wsapi_version['build'] diff --git a/releasenotes/notes/hpe-3par-login-getWsApiVersion-0252d655844ae054.yaml b/releasenotes/notes/hpe-3par-login-getWsApiVersion-0252d655844ae054.yaml new file mode 100644 index 00000000000..66e78451c29 --- /dev/null +++ b/releasenotes/notes/hpe-3par-login-getWsApiVersion-0252d655844ae054.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + HPE 3PAR driver `Bug #2068795 `_: + Fixed: Perform login before invoking getWsApiVersion +