/** * Set host into ErrorInMaintenance state, as errors occurred during VM migrations. Do the following: * - Cancel scheduled migrations for those which have already failed * - Configure VNC access for VMs (KVM hosts only) */ protected boolean setHostIntoErrorInMaintenance(HostVO host, List<VMInstanceVO> failedMigrations) throws NoTransitionException { s_logger.debug("Unable to migrate " + failedMigrations.size() + " VM(s) from host " + host.getUuid()); _haMgr.cancelScheduledMigrations(host); configureVncAccessForKVMHostFailedMigrations(host, failedMigrations); resourceStateTransitTo(host, ResourceState.Event.UnableToMigrate, _nodeId); return false; }