summaryrefslogtreecommitdiff
path: root/requirements.txt
diff options
context:
space:
mode:
authorVipin Balachandran <vbala@vmware.com>2015-01-09 19:20:41 +0530
committerVipin Balachandran <vbala@vmware.com>2015-01-20 15:15:14 +0530
commita229faf8ba59724a4fda3f37d5a7473376f93d9c (patch)
tree3b616e1cd7b8ec04427b3b4fe1df916077dd4a7f /requirements.txt
parent2df3a6200ab5f87dc01a809ae31329087ff87b4d (diff)
downloadoslo-vmware-a229faf8ba59724a4fda3f37d5a7473376f93d9c.tar.gz
Fix race during session creation
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
Diffstat (limited to 'requirements.txt')
-rw-r--r--requirements.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt
index 2e8b6f3..21baf78 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -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