mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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
This commit is contained in:
parent
ed2f573160
commit
1aa6a72bc7
@ -99,7 +99,7 @@ public class Xenserver625StorageProcessor extends XenServerStorageProcessor {
|
||||
PBD pbd = null;
|
||||
|
||||
try {
|
||||
final String srname = hypervisorResource.getHost().getUuid() + path.trim();
|
||||
final String srname = path.trim();
|
||||
synchronized (srname.intern()) {
|
||||
final Set<SR> srs = SR.getByNameLabel(conn, srname);
|
||||
if (srs != null && !srs.isEmpty()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user