Skip to content

Commit 1aa6a72

Browse files
committed
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
1 parent ed2f573 commit 1aa6a72

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
@@ -99,7 +99,7 @@ protected SR createFileSR(final Connection conn, final String path) {
9999
PBD pbd = null;
100100

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

0 commit comments

Comments
 (0)