From 856ba310d825b52fe749bc61ae2f9427b0e4f3d1 Mon Sep 17 00:00:00 2001 From: vichansson Date: Thu, 1 Feb 2024 18:18:29 +0200 Subject: [PATCH] B OpenNebula/one#6448: Add SHUTDOWN state (#2911) to POWEROFF_HARD actions Signed-off-by: Victor Hansson --- src/fireedge/src/client/constants/vm.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fireedge/src/client/constants/vm.js b/src/fireedge/src/client/constants/vm.js index cdfea67284..d168803617 100644 --- a/src/fireedge/src/client/constants/vm.js +++ b/src/fireedge/src/client/constants/vm.js @@ -937,7 +937,7 @@ export const DUMMY_VM_ACTIONS_BY_STATE = { STATES.RUNNING, STATES.UNKNOWN, ], - [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.UNKNOWN], + [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.SHUTDOWN, STATES.UNKNOWN], [VM_ACTIONS.POWEROFF]: [STATES.RUNNING, STATES.UNKNOWN], [VM_ACTIONS.REBOOT_HARD]: [STATES.RUNNING], [VM_ACTIONS.REBOOT]: [STATES.RUNNING], @@ -1164,7 +1164,7 @@ export const KVM_VM_ACTIONS_BY_STATE = { STATES.RUNNING, STATES.UNKNOWN, ], - [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.UNKNOWN], + [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.SHUTDOWN, STATES.UNKNOWN], [VM_ACTIONS.POWEROFF]: [STATES.RUNNING, STATES.UNKNOWN], [VM_ACTIONS.REBOOT_HARD]: [STATES.RUNNING], [VM_ACTIONS.REBOOT]: [STATES.RUNNING], @@ -1390,7 +1390,7 @@ export const VCENTER_VM_ACTIONS_BY_STATE = { STATES.RUNNING, STATES.UNKNOWN, ], - [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.UNKNOWN], + [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.SHUTDOWN, STATES.UNKNOWN], [VM_ACTIONS.POWEROFF]: [STATES.RUNNING, STATES.UNKNOWN], [VM_ACTIONS.REBOOT_HARD]: [STATES.RUNNING], [VM_ACTIONS.REBOOT]: [STATES.RUNNING], @@ -1605,7 +1605,7 @@ export const FIRECRACKER_VM_ACTIONS_BY_STATE = { STATES.RUNNING, STATES.UNKNOWN, ], - [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.UNKNOWN], + [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.SHUTDOWN, STATES.UNKNOWN], [VM_ACTIONS.POWEROFF]: [STATES.RUNNING, STATES.UNKNOWN], [VM_ACTIONS.REBOOT_HARD]: [STATES.RUNNING], [VM_ACTIONS.REBOOT]: [STATES.RUNNING], @@ -1820,7 +1820,7 @@ export const LXC_VM_ACTIONS_BY_STATE = { STATES.RUNNING, STATES.UNKNOWN, ], - [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.UNKNOWN], + [VM_ACTIONS.POWEROFF_HARD]: [STATES.RUNNING, STATES.SHUTDOWN, STATES.UNKNOWN], [VM_ACTIONS.POWEROFF]: [STATES.RUNNING, STATES.UNKNOWN], [VM_ACTIONS.REBOOT_HARD]: [STATES.RUNNING], [VM_ACTIONS.REBOOT]: [STATES.RUNNING],