Fix cold reboot error
Cold reboot will check the host status by referring to the
server_state property in the dataService instead of making
API requests to check host/chassis status.
TODO: Refactor other power control options to follow a
similar pattern.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I74b1b78fa39caee514fbaea8492c8a5ad6f8145b
diff --git a/app/common/services/constants.js b/app/common/services/constants.js
index e1839f5..dd1012c 100644
--- a/app/common/services/constants.js
+++ b/app/common/services/constants.js
@@ -91,11 +91,12 @@
POWER_OP: 5000,
},
TIMEOUT: {
- ACTIVATION: 1000 * 60 * 10, // 10 mins
- DOWNLOAD_IMAGE: 1000 * 60 * 2, // 2 mins
- CHASSIS_OFF: 1000 * 60 * 5, // 5 mins
- HOST_ON: 1000 * 60 * 5, // 5 mins
- HOST_OFF: 1000 * 60 * 5, // 5 mins
+ ACTIVATION: 1000 * 60 * 10, // 10 mins
+ DOWNLOAD_IMAGE: 1000 * 60 * 2, // 2 mins
+ CHASSIS_OFF: 1000 * 60 * 5, // 5 mins
+ HOST_ON: 1000 * 60 * 5, // 5 mins
+ HOST_OFF: 1000 * 60 * 5, // 5 mins
+ HOST_OFF_IMMEDIATE: 1000 * 60 * 2 // 2 mins
},
MESSAGES: {
POLL: {