mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-4017:
try to remove VDI host lock before start the VM which is using this VDI
This commit is contained in:
parent
5ed3749cd9
commit
7bf37c1202
@ -1199,7 +1199,15 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
||||
Volume.Type type = volume.getType();
|
||||
|
||||
VDI vdi = mount(conn, vmName, volume);
|
||||
|
||||
if ( vdi != null ) {
|
||||
Map<String, String> smConfig = vdi.getSmConfig(conn);
|
||||
for (String key : smConfig.keySet()) {
|
||||
if (key.startsWith("host_")) {
|
||||
vdi.removeFromSmConfig(conn, key);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
VBD.Record vbdr = new VBD.Record();
|
||||
vbdr.VM = vm;
|
||||
if (vdi != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user