Skip to content

Commit 9ce2dde

Browse files
karuturiRohit Yadav
authored andcommitted
CLOUDSTACK-9834: prepareTemplate API call doesn't work well
with XenServer & Local SR (Db_exn.Uniqueness_constraint_violation) removed the host uuid from SR label so that any host which has access to the SR(all the hosts in the same pool) can reuse the same SR (cherry picked from commit 1aa6a72) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 9ddbd9e commit 9ce2dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/Xenserver625StorageProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected SR createFileSR(final Connection conn, final String path) {
100100
PBD pbd = null;
101101

102102
try {
103-
final String srname = hypervisorResource.getHost().getUuid() + path.trim();
103+
final String srname = path.trim();
104104
synchronized (srname.intern()) {
105105
final Set<SR> srs = SR.getByNameLabel(conn, srname);
106106
if (srs != null && !srs.isEmpty()) {

0 commit comments

Comments
 (0)