CLOUDSTACK-4017:

try to remove VDI host lock before start the VM which is using this VDI
This commit is contained in:
Anthony Xu 2013-08-01 15:31:26 -07:00
parent 5ed3749cd9
commit 7bf37c1202

View File

@ -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) {