Fix the hanging issue in deleting ISO referenced by some user vms.

This commit is contained in:
Min Chen 2013-05-14 14:48:34 -07:00
parent 03c255068b
commit 95e7e270d4
3 changed files with 18 additions and 0 deletions

View File

@ -309,6 +309,12 @@ public class CloudStackImageStoreDriverImpl implements ImageStoreDriver {
}
}
}
} else{
// cannot delete iso due to some VMs are using this
s_logger.debug("Cannot delete iso since some user vms are referencing it");
CommandResult result = new CommandResult();
result.setResult("Cannot delete iso since some user vms are referencing it");
callback.complete(result);
}
}

View File

@ -323,6 +323,12 @@ public class S3ImageStoreDriverImpl implements ImageStoreDriver {
}
}
}
} else{
// cannot delete iso due to some VMs are using this
s_logger.debug("Cannot delete iso since some user vms are referencing it");
CommandResult result = new CommandResult();
result.setResult("Cannot delete iso since some user vms are referencing it");
callback.complete(result);
}
}

View File

@ -315,6 +315,12 @@ public class SwiftImageStoreDriverImpl implements ImageStoreDriver {
}
}
}
} else{
// cannot delete iso due to some VMs are using this
s_logger.debug("Cannot delete iso since some user vms are referencing it");
CommandResult result = new CommandResult();
result.setResult("Cannot delete iso since some user vms are referencing it");
callback.complete(result);
}
}