Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5455,7 +5455,41 @@
&& vm.getHypervisorType() != HypervisorType.Hyperv) {
logger.info("Detected out-of-band stop of a HA enabled VM {}, will schedule restart.", vm);
if (!_haMgr.hasPendingHaWork(vm.getId())) {
_haMgr.scheduleRestart(vm, true);
// The power state report already confirmed the VM is off
// (e.g. OOM-killed QEMU process). We cannot use _haMgr.scheduleRestart() because it
// calls advanceStop(), which submits a VM work job and blocks waiting for completion.
// This code runs on the AgentManager-Handler thread, and the VM job queue does not
// dispatch jobs from this context — causing an indefinite block that leaves the VM
// stuck in Running. Instead we release resources, transition to Stopped, and insert
// an HA work item directly into op_ha_work (Step.Scheduled) for the HA worker to pick up.
final VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm);
releaseVmResources(profile, true);

// Save lastHostId before transition (stateTransitTo sets hostId=null)
final Long lastHostId = vm.getHostId();
try {
stateTransitTo(vm, VirtualMachine.Event.FollowAgentPowerOffReport, null);
} catch (final NoTransitionException e) {
logger.warn("Failed to transition VM {} to Stopped state: {}", vm, e.getMessage());
return;
}

_alertMgr.sendAlert(AlertManager.AlertType.ALERT_TYPE_SYNC, vm.getDataCenterId(), vm.getPodIdToDeployIn(),
VM_SYNC_ALERT_SUBJECT, String.format("VM %s(%s) stopped out-of-band (OOM-killed or crashed). HA restart scheduled.",
vm.getHostName(), vm.getInstanceName()));

// Insert HA work item directly — bypasses advanceStop/job queue entirely
final VMInstanceVO refreshedVm = _vmDao.findByUuid(vm.getUuid());
final Long haHostId = lastHostId != null ? lastHostId : refreshedVm.getLastHostId();
if (haHostId == null || haHostId == 0L) {
logger.warn("Cannot schedule HA for VM {} — no valid host_id available (would violate FK constraint).", vm);
} else {
final HaWorkVO work = new HaWorkVO(refreshedVm.getId(), refreshedVm.getType(),

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_egress_fw_rules component/test_invalid_gw_nm component/test_ip_reservation)

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_egress_fw_rules component/test_invalid_gw_nm component/test_ip_reservation)

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_egress_fw_rules component/test_invalid_gw_nm component/test_ip_reservation)

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_egress_fw_rules component/test_invalid_gw_nm component/test_ip_reservation)

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_lb_secondary_ip component/test_list_nics component/test_list_pod component/...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_lb_secondary_ip component/test_list_nics component/test_list_pod component/...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_lb_secondary_ip component/test_list_nics component/test_list_pod component/...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_lb_secondary_ip component/test_list_nics component/test_list_pod component/...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_sharednetwork component/test_acl_sharednetwork_deployVM-impersonation c...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_sharednetwork component/test_acl_sharednetwork_deployVM-impersonation c...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_sharednetwork component/test_acl_sharednetwork_deployVM-impersonation c...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_sharednetwork component/test_acl_sharednetwork_deployVM-impersonation c...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_cluster_drs smoke/test_dynamicroles smoke/test_enable_account_settings_for_doma...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_cluster_drs smoke/test_dynamicroles smoke/test_enable_account_settings_for_doma...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_cluster_drs smoke/test_dynamicroles smoke/test_enable_account_settings_for_doma...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_cluster_drs smoke/test_dynamicroles smoke/test_enable_account_settings_for_doma...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_mm_domain_limits component/test_mm_max_limits component/test_mm_project_lim...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_mm_domain_limits component/test_mm_max_limits component/test_mm_project_lim...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_mm_domain_limits component/test_mm_max_limits component/test_mm_project_lim...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_mm_domain_limits component/test_mm_max_limits component/test_mm_project_lim...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_router_dhcphosts smoke/test_router_dns smoke/test_router_dnsservice smoke/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_router_dhcphosts smoke/test_router_dns smoke/test_router_dnsservice smoke/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_router_dhcphosts smoke/test_router_dns smoke/test_router_dnsservice smoke/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_router_dhcphosts smoke/test_router_dns smoke/test_router_dnsservice smoke/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_regions_accounts component/test_routers component/test_snapshots component/...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_regions_accounts component/test_routers component/test_snapshots component/...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_regions_accounts component/test_routers component/test_snapshots component/...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_regions_accounts component/test_routers component/test_snapshots component/...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_listvm component/test_acl_listvolume)

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_listvm component/test_acl_listvolume)

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_listvm component/test_acl_listvolume)

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_listvm component/test_acl_listvolume)

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_network smoke/test_network_acl smoke/test_network_ipv6 smoke/test_network_permi...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_network smoke/test_network_acl smoke/test_network_ipv6 smoke/test_network_permi...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_network smoke/test_network_acl smoke/test_network_ipv6 smoke/test_network_permi...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_network smoke/test_network_acl smoke/test_network_ipv6 smoke/test_network_permi...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_accounts smoke/test_account_access smoke/test_affinity_groups smoke/test_affini...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_accounts smoke/test_account_access smoke/test_affinity_groups smoke/test_affini...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_accounts smoke/test_account_access smoke/test_affinity_groups smoke/test_affini...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_accounts smoke/test_account_access smoke/test_affinity_groups smoke/test_affini...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_list_accounts smoke/test_list_disk_offerings smoke/test_list_domains smoke/test...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_list_accounts smoke/test_list_disk_offerings smoke/test_list_domains smoke/test...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_list_accounts smoke/test_list_disk_offerings smoke/test_list_domains smoke/test...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_list_accounts smoke/test_list_disk_offerings smoke/test_list_domains smoke/test...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_project_usage component/test_protocol_number_security_group component/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_project_usage component/test_protocol_number_security_group component/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_project_usage component/test_protocol_number_security_group component/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_project_usage component/test_protocol_number_security_group component/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_volumes component/test_vpc component/test_vpc_distributed_routing_offering ...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_volumes component/test_vpc component/test_vpc_distributed_routing_offering ...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_volumes component/test_vpc component/test_vpc_distributed_routing_offering ...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_volumes component/test_vpc component/test_vpc_distributed_routing_offering ...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/find_hosts_for_migration component/test_acl_isolatednetwork component/test_acl_i...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/find_hosts_for_migration component/test_acl_isolatednetwork component/test_acl_i...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/find_hosts_for_migration component/test_acl_isolatednetwork component/test_acl_i...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/find_hosts_for_migration component/test_acl_isolatednetwork component/test_acl_i...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_persistent_networks component/test_project_configs component/test_project_l...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_persistent_networks component/test_project_configs component/test_project_l...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_persistent_networks component/test_project_configs component/test_project_l...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_persistent_networks component/test_project_configs component/test_project_l...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_concurrent_snapshots_limit component/test_cpu_domain_limits component/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_concurrent_snapshots_limit component/test_cpu_domain_limits component/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_concurrent_snapshots_limit component/test_cpu_domain_limits component/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_concurrent_snapshots_limit component/test_cpu_domain_limits component/test_...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_affinity_groups_projects component/test_allocation_states component/test_as...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_affinity_groups_projects component/test_allocation_states component/test_as...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_affinity_groups_projects component/test_allocation_states component/test_as...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_affinity_groups_projects component/test_allocation_states component/test_as...

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / codecov

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / codecov

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / codecov

error: cannot find symbol

Check failure on line 5487 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / codecov

error: cannot find symbol
WorkType.HA, HighAvailabilityManager.Step.Scheduled, haHostId,
refreshedVm.getState(), 0, refreshedVm.getUpdated(), null);
_haDao.persist(work);

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_egress_fw_rules component/test_invalid_gw_nm component/test_ip_reservation)

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_egress_fw_rules component/test_invalid_gw_nm component/test_ip_reservation)

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_lb_secondary_ip component/test_list_nics component/test_list_pod component/...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_lb_secondary_ip component/test_list_nics component/test_list_pod component/...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_sharednetwork component/test_acl_sharednetwork_deployVM-impersonation c...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_sharednetwork component/test_acl_sharednetwork_deployVM-impersonation c...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_cluster_drs smoke/test_dynamicroles smoke/test_enable_account_settings_for_doma...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_cluster_drs smoke/test_dynamicroles smoke/test_enable_account_settings_for_doma...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_mm_domain_limits component/test_mm_max_limits component/test_mm_project_lim...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_mm_domain_limits component/test_mm_max_limits component/test_mm_project_lim...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_router_dhcphosts smoke/test_router_dns smoke/test_router_dnsservice smoke/test_...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_router_dhcphosts smoke/test_router_dns smoke/test_router_dnsservice smoke/test_...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_regions_accounts component/test_routers component/test_snapshots component/...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_regions_accounts component/test_routers component/test_snapshots component/...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_listvm component/test_acl_listvolume)

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_acl_listvm component/test_acl_listvolume)

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_network smoke/test_network_acl smoke/test_network_ipv6 smoke/test_network_permi...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_network smoke/test_network_acl smoke/test_network_ipv6 smoke/test_network_permi...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_accounts smoke/test_account_access smoke/test_affinity_groups smoke/test_affini...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_accounts smoke/test_account_access smoke/test_affinity_groups smoke/test_affini...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_list_accounts smoke/test_list_disk_offerings smoke/test_list_domains smoke/test...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (smoke/test_list_accounts smoke/test_list_disk_offerings smoke/test_list_domains smoke/test...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_project_usage component/test_protocol_number_security_group component/test_...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_project_usage component/test_protocol_number_security_group component/test_...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_volumes component/test_vpc component/test_vpc_distributed_routing_offering ...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_volumes component/test_vpc component/test_vpc_distributed_routing_offering ...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/find_hosts_for_migration component/test_acl_isolatednetwork component/test_acl_i...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/find_hosts_for_migration component/test_acl_isolatednetwork component/test_acl_i...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_persistent_networks component/test_project_configs component/test_project_l...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_persistent_networks component/test_project_configs component/test_project_l...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_concurrent_snapshots_limit component/test_cpu_domain_limits component/test_...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_concurrent_snapshots_limit component/test_cpu_domain_limits component/test_...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_affinity_groups_projects component/test_allocation_states component/test_as...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build (component/test_affinity_groups_projects component/test_allocation_states component/test_as...

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / build

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / codecov

error: cannot find symbol

Check failure on line 5490 in engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

View workflow job for this annotation

GitHub Actions / codecov

error: cannot find symbol
logger.info("Scheduled VM for HA: {}", refreshedVm);
}
} else {
logger.info("VM {} already has a pending HA task working on it.", vm);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,9 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
POWER_STATES_TABLE.put(DomainState.VIR_DOMAIN_BLOCKED, PowerState.PowerOn);
POWER_STATES_TABLE.put(DomainState.VIR_DOMAIN_NOSTATE, PowerState.PowerUnknown);
POWER_STATES_TABLE.put(DomainState.VIR_DOMAIN_SHUTDOWN, PowerState.PowerOff);
// Report crashed domains as PowerOff immediately instead of omitting them
// from the report (which delays detection via the "missing VM" threshold).
POWER_STATES_TABLE.put(DomainState.VIR_DOMAIN_CRASHED, PowerState.PowerOff);
}

public VirtualRoutingResource virtRouterResource;
Expand Down
Loading