PBM APIs break the API contract in vSphere 6.5 by raising
NotAuthenticated fault instead of SecurityError when session
is expired. We do catch NotAuthenticated faults (raised by
VIM APIs), but PBM APIs use the 'vim25' namespace which
result in not identifying the session expiry case. Therefore,
the session is not re-established. Fixing it by matching the
fault name suffix with 'NotAuthenticated' in the suds WebFault
exception handler
Reviewed: https:/ /review. openstack. org/566746 /git.openstack. org/cgit/ openstack/ oslo.vmware/ commit/ ?id=d249fe1156d 95abf3319d2d638 9e096e161c3ad0
Committed: https:/
Submitter: Zuul
Branch: master
commit d249fe1156d95ab f3319d2d6389e09 6e161c3ad0
Author: Vipin Balachandran <email address hidden>
Date: Mon May 7 14:42:49 2018 -0700
Fix session re-establish failure with PBM APIs
PBM APIs break the API contract in vSphere 6.5 by raising cated fault instead of SecurityError when session
NotAuthenti
is expired. We do catch NotAuthenticated faults (raised by
VIM APIs), but PBM APIs use the 'vim25' namespace which
result in not identifying the session expiry case. Therefore,
the session is not re-established. Fixing it by matching the
fault name suffix with 'NotAuthenticated' in the suds WebFault
exception handler
Closes-bug: #1769755 fe94a10b56b1ab0 6c34446de28
Change-Id: I35d48c12a5b1d5