mirror of https://github.com/apache/cloudstack.git
Fix the hanging issue in deleting ISO referenced by some user vms.
This commit is contained in:
parent
03c255068b
commit
95e7e270d4
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue