oslo.vmware/oslo_vmware
Vipin Balachandran a229faf8ba 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
2015-01-20 15:15:14 +05:30
..
common Move files out of the namespace package 2015-01-12 13:22:13 -05:00
objects Move files out of the namespace package 2015-01-12 13:22:13 -05:00
tests Fix race during session creation 2015-01-20 15:15:14 +05:30
wsdl/5.5 Move files out of the namespace package 2015-01-12 13:22:13 -05:00
__init__.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
_i18n.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
api.py Fix race during session creation 2015-01-20 15:15:14 +05:30
constants.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
exceptions.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
image_transfer.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
pbm.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
rw_handles.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
service.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
vim.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00
vim_util.py Move files out of the namespace package 2015-01-12 13:22:13 -05:00