From d2b302885e8306f9d363a818ca4eb2c2c31f4bdd Mon Sep 17 00:00:00 2001 From: Atsushi Kawai Date: Fri, 9 Sep 2022 10:19:22 +0000 Subject: [PATCH] Hitachi: fix to output resource lock message correctly This patch fix to output a warning message for resource lock correctly. The message can help to analyze in some trouble. Closes-Bug: #1989176 Change-Id: Iaeee0496987ffe4777c34fe8056f56985273a5d0 --- cinder/volume/drivers/hitachi/hbsd_rest_api.py | 2 +- .../hitachi-vsp-fix-resource-lock-msg-5a119426e6c65998.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/hitachi-vsp-fix-resource-lock-msg-5a119426e6c65998.yaml diff --git a/cinder/volume/drivers/hitachi/hbsd_rest_api.py b/cinder/volume/drivers/hitachi/hbsd_rest_api.py index 56c68e97c18..118b9db6dc3 100644 --- a/cinder/volume/drivers/hitachi/hbsd_rest_api.py +++ b/cinder/volume/drivers/hitachi/hbsd_rest_api.py @@ -377,7 +377,7 @@ class RestApiClient(): message, errobj=errobj) return False, rsp_body, errobj else: - LOG.debug("The resource group to which the operation object ", + LOG.debug("The resource group to which the operation object " "belongs is being locked by other software.") return True, rsp_body, errobj diff --git a/releasenotes/notes/hitachi-vsp-fix-resource-lock-msg-5a119426e6c65998.yaml b/releasenotes/notes/hitachi-vsp-fix-resource-lock-msg-5a119426e6c65998.yaml new file mode 100644 index 00000000000..3f383fbbcac --- /dev/null +++ b/releasenotes/notes/hitachi-vsp-fix-resource-lock-msg-5a119426e6c65998.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Hitachi driver `bug #1989176 + `_: + Fixed Hitachi driver to output a message for resource lock correctly.