protected void backoutScheduling(VirtualMachine vm, Reservation reservation, String groupid) {
logger.debug("Problem encountered mid-creation, attempting to remove " +
Lager.oneormanyid(reservation.getIds(), groupid) + " from scheduler.");
try {
final VirtualMachineDeployment dep = vm.getDeployment();
if (dep == null) {
throw new SchedulingException("no deployment request");
}
final int memory = dep.getIndividualPhysicalMemory();
final int cores = dep.getIndividualCPUCount();
final int duration = dep.getMinDuration();
this.scheduler.removeScheduling(reservation, memory, cores,
duration, vm.isPreemptable());
} catch (Throwable t) {
logger.error("Problem with removing " +