Dell PowerFlex: Unnecessary login happen
The Dell PowerFlex (scaleio) connector maintains a token cache for PowerFlex OS. The cache was overwritten with None by misktake in Change-ID I6f01a178616b74ed9a86876ca46e7e46eb360518. This patch fixes the broken cache to avoid unnecessary login. Closes-Bug: #2004630 Change-Id: I2399b0b2af8254cd5697b44dcfcec553c2845bec (cherry picked from commit14b024c505) (cherry picked from commit885fb6a756) (cherry picked from commit950a8b1060)
This commit is contained in:
committed by
Nilesh Thathagar
parent
2458ef1c4f
commit
4ea7f0c352
@@ -333,8 +333,10 @@ class ScaleIOConnector(base.BaseLinuxConnector):
|
||||
self.server_ip = connection_properties['serverIP']
|
||||
self.server_port = connection_properties['serverPort']
|
||||
self.server_username = connection_properties['serverUsername']
|
||||
self.server_password, self.server_token = self._get_password_token(
|
||||
self.server_password, server_token = self._get_password_token(
|
||||
connection_properties)
|
||||
if server_token:
|
||||
self.server_token = server_token
|
||||
self.iops_limit = connection_properties['iopsLimit']
|
||||
self.bandwidth_limit = connection_properties['bandwidthLimit']
|
||||
self.verify_certificate = (
|
||||
|
||||
8
releasenotes/notes/bug-2004630-e94616509a51258c.yaml
Normal file
8
releasenotes/notes/bug-2004630-e94616509a51258c.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
PowerFlex driver `bug #2004630
|
||||
<https://bugs.launchpad.net/cinder/+bug/2004630>`_:
|
||||
Fixed regression which caused the PowerFlex (ScaleIO) connector to
|
||||
login multiple times, even with an existing valid token. The ScaleIO
|
||||
connector now caches and reuses the token.
|
||||
Reference in New Issue
Block a user