From 8208a439f915a9887089f4d0d1b70e79f6c25266 Mon Sep 17 00:00:00 2001 From: jlothe Date: Fri, 10 Jul 2026 15:20:09 +0530 Subject: [PATCH] Resolved session conflict in do_setup logout Signed-off-by: jlothe --- cinder/volume/drivers/hpe/hpe_3par_common.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cinder/volume/drivers/hpe/hpe_3par_common.py b/cinder/volume/drivers/hpe/hpe_3par_common.py index 6bb44c929cc..940aa5049f2 100644 --- a/cinder/volume/drivers/hpe/hpe_3par_common.py +++ b/cinder/volume/drivers/hpe/hpe_3par_common.py @@ -445,7 +445,14 @@ def client_login(self): def client_logout(self): if self.client is not None: LOG.debug("Disconnect from 3PAR REST and SSH %s", self.uuid) - self.client.logout() + try: + self.client.logout() + except hpeexceptions.HTTPConflict as ex: + if "resource in use" in str(ex).lower(): + LOG.warning("3PAR session logout returned resource in " + "use; ignoring session cleanup conflict.") + else: + raise def _create_replication_client(self, remote_array): try: