VMware: Handle concurrent registrations of the VC extension
During initialization, the Nova compute driver checks whether a
vCenter extension with key 'org.openstack.compute' exists and if
not, it registers one. This is a race condition. If multiple
services try to register the same extension, only one of them
will succeed. The fix is to catch InvalidArgument fault from
vSphere API and ignore the exception.
Reviewed: https:/ /review. openstack. org/484667 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=46c7fa492ff bef35f7292775ea a50fc62f290e54
Committed: https:/
Submitter: Zuul
Branch: master
commit 46c7fa492ffbef3 5f7292775eaa50f c62f290e54
Author: Radoslav Gerganov <email address hidden>
Date: Tue Jul 18 11:18:42 2017 +0300
VMware: Handle concurrent registrations of the VC extension
During initialization, the Nova compute driver checks whether a compute' exists and if
vCenter extension with key 'org.openstack.
not, it registers one. This is a race condition. If multiple
services try to register the same extension, only one of them
will succeed. The fix is to catch InvalidArgument fault from
vSphere API and ignore the exception.
Change-Id: I92c24709a2f55b 601c31a31b9e748 f19e7e31984
Closes-Bug: #1704952