GitHub user sateesh-chodapuneedi opened a pull request:
https://github.com/apache/cloudstack/pull/1872
CLOUDSTACK-3223 Exception observed while creating CPVM in VMware Setup with
DVS
Jira
===
CLOUDSTACK-3223 Exception observed while creating CPVM in VMware Setup with
DVS
Issue
=====
Exception observed while creating CPVM in VMware Setup with DVS.
Observed error "StartCommand failed due to Exception:
com.vmware.vim25.AlreadyExists."
This is due to concurrent attempts to create same dv portgroup on same
dvSwitch by
manager threads of CPVM and SSVM when both are started at same time.
Fix
===
Synchronize api calls to create/update dvportgroup.
Also maintaing local cache to avoid multiple fetch api calls to vCenter
when multiple threads try to create same object.
Signed-off-by: Sateesh Chodapuneedi <[email protected]>
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sateesh-chodapuneedi/cloudstack
pr-cloudstack-3223
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/1872.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1872
----
commit a3d9cfa05616f2fb3362a313d74079a317a78d11
Author: Sateesh Chodapuneedi <[email protected]>
Date: 2016-12-27T04:33:27Z
CLOUDSTACK-3223 Exception observed while creating CPVM in VMware Setup with
DVS
Issue
=====
Exception observed while creating CPVM in VMware Setup with DVS.
Observed error "StartCommand failed due to Exception:
com.vmware.vim25.AlreadyExists."
This is due to concurrent attempts to create same dv portgroup on same
dvSwitch by
manager threads of CPVM and SSVM when both are started at same time.
Fix
===
Synchronize api calls to create/update dvportgroup.
Also maintaing local cache to avoid multiple fetch api calls to vCenter
when multiple threads try to create same object.
Signed-off-by: Sateesh Chodapuneedi <[email protected]>
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---