CLOUDSTACK-5216. delete volume failed due to Exception: java.lang.Exception" while destroying Vms

This commit is contained in:
Likitha Shetty 2013-12-06 11:46:29 +05:30
parent cafd820e3e
commit e6127a7c00

View File

@ -1474,7 +1474,9 @@ public class VmwareStorageProcessor implements StorageProcessor {
vmMo.destroy(); vmMo.destroy();
// this.hostService.handleDatastoreAndVmdkDetach(iScsiName, storageHost, storagePort); // this.hostService.handleDatastoreAndVmdkDetach(iScsiName, storageHost, storagePort);
this.hostService.removeManagedTargetsFromCluster(managedIqns); if (managedIqns != null && !managedIqns.isEmpty()) {
this.hostService.removeManagedTargetsFromCluster(managedIqns);
}
for (NetworkDetails netDetails : networks) { for (NetworkDetails netDetails : networks) {
if (netDetails.getGCTag() != null && netDetails.getGCTag().equalsIgnoreCase("true")) { if (netDetails.getGCTag() != null && netDetails.getGCTag().equalsIgnoreCase("true")) {