Hitachi: fix to initialize a lock counter
This patch fixes Hitachi driver to initialize a lock counter, in a method to re-login to REST-API server, for fixing the bug which send unnecessary request to unlock storage resource group. Closes-Bug: #2033448 Change-Id: I8d0da7bf499bc4ac352949c942c41494a51b3874
This commit is contained in:
parent
b07e4147f9
commit
bce0f26398
@ -537,6 +537,7 @@ class RestApiClient():
|
|||||||
timeout=self.conf.hitachi_lock_timeout)
|
timeout=self.conf.hitachi_lock_timeout)
|
||||||
if not err:
|
if not err:
|
||||||
self.set_my_session(self.Session(rsp["sessionId"], rsp["token"]))
|
self.set_my_session(self.Session(rsp["sessionId"], rsp["token"]))
|
||||||
|
self.nested_count = 0
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
@ -574,6 +575,7 @@ class RestApiClient():
|
|||||||
retry = self._has_session()
|
retry = self._has_session()
|
||||||
if not retry:
|
if not retry:
|
||||||
LOG.debug("Trying to re-login.")
|
LOG.debug("Trying to re-login.")
|
||||||
|
self.nested_count = 0
|
||||||
retry = self._login(do_raise=False)
|
retry = self._login(do_raise=False)
|
||||||
if not retry:
|
if not retry:
|
||||||
self.output_log(
|
self.output_log(
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Hitachi driver `bug #2033448
|
||||||
|
<https://bugs.launchpad.net/cinder/+bug/2033448>`_: Fixed to initialize
|
||||||
|
lock counter for resource group
|
Loading…
x
Reference in New Issue
Block a user