Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Concurrent VIM API invocations after session expiration would result in concurrent login attempts. In such cases, if a login attempt is made after a successful one, it would result in InvalidLogin. This is because vCenter server won't allow login within an active session. On the other hand, if two or more login attempts reach vCenter at the same, it would result in session leak-- the last one returned overwrite any of the previous sessions. This patch prevents the race condition by making session creation synchronized and checking for an active session before login attempt. We can also remove the call to terminate previous session after login since a login is attempted only if there is no active session. Change-Id: Ib4ca3553ce14c80ab722092907d797767072741c Closes-Bug: #1409014
- Loading branch information
1 parent
2df3a62
commit a229faf
Showing
4 changed files
with
55 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ suds>=0.4 | |
eventlet>=0.15.2 | ||
requests>=2.2.0,!=2.4.0 | ||
urllib3>=1.8.3 | ||
oslo.concurrency>=0.3.0,!=0.4.0 # Apache-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters