GitHub user abhinandanprateek opened a pull request:
https://github.com/apache/cloudstack/pull/1765
Cloudstack 9586: When using local storage with Xenserver prepareTemplate
does not work with multiple primary store
The race condition will happen whenever there are multiple primary storages
and the CS tries to mount the secondary store to xenserver host simultaneously.
Due to synchronised block one mount will be successful and other thread
will get the already mounted SR. Without the fix the two thread will try to
mount it parallely and one will fail on Xenserver.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shapeblue/cloudstack CLOUDSTACK-9586
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/1765.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 #1765
----
commit 615e87496c3f80964cc09faf9e8085eb25f1aaf0
Author: Abhinandan Prateek <[email protected]>
Date: 2016-11-16T10:15:19Z
CLOUDSTACK-9586: If there are multiple primary storages in use, then the
race condition to create SR is fixed by this patch
commit 42cd40976240135e2d9001cb293b44d522ddfe3e
Author: Abhinandan Prateek <[email protected]>
Date: 2016-11-16T10:17:24Z
CLOUDSTACK-9586: marvin test to run prepare template that will copy the
template to multiple primaries in parallel
----
---
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.
---