summaryrefslogtreecommitdiffstats
path: root/app/common/services/constants.js
diff options
context:
space:
mode:
authorIftekharul Islam <iffy.ryan@ibm.com>2018-02-26 12:29:45 -0600
committerGunnar Mills <gmills@us.ibm.com>2018-04-19 21:17:38 +0000
commita1d238f3a53db2ec3cc4c2fd52fe78738b37968b (patch)
tree7edb75db5e8a06967665924d5f0d9c61ff08df08 /app/common/services/constants.js
parent5dbcfb173ef5d08a481a44218573a2bfbbb2b7d5 (diff)
downloadphosphor-webui-a1d238f3a53db2ec3cc4c2fd52fe78738b37968b.tar.gz
phosphor-webui-a1d238f3a53db2ec3cc4c2fd52fe78738b37968b.zip
Add fixes for cold reboot
This fixes the cold reboot issue with the following steps - It applies the command to shut off the chassis. - Then verify the chassis is off. It checks for every 5 seconds. During this time the spinner displays. A 5min timeout has been added. - Once the chassis is off, it turns on the host. fixes openbmc/openbmc#2795 Change-Id: I119a1c95e57c10ccee27be1512a1fc38cde307fa Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com> Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
Diffstat (limited to 'app/common/services/constants.js')
-rw-r--r--app/common/services/constants.js38
1 files changed, 26 insertions, 12 deletions
diff --git a/app/common/services/constants.js b/app/common/services/constants.js
index 0bb2123..21241da 100644
--- a/app/common/services/constants.js
+++ b/app/common/services/constants.js
@@ -27,11 +27,15 @@ window.angular && (function (angular) {
},
CHASSIS_POWER_STATE: {
on: 'On',
- off: 'Off'
+ on_code: 'xyz.openbmc_project.State.Chassis.PowerState.On',
+ off: 'Off',
+ off_code: 'xyz.openbmc_project.State.Chassis.PowerState.Off'
},
HOST_STATE_TEXT: {
on: 'Running',
+ on_code: 'xyz.openbmc_project.State.Host.HostState.Running',
off: 'Off',
+ off_code: 'xyz.openbmc_project.State.Host.HostState.Off',
booting: 'Quiesced',
unreachable: 'Unreachable'
},
@@ -107,21 +111,31 @@ window.angular && (function (angular) {
],
SENSOR_SORT_ORDER_DEFAULT: 8,
FIRMWARE: {
- ACTIVATE_FIRMWARE: 'xyz.openbmc_project.Software.Activation.RequestedActivations.Active',
- FUNCTIONAL_OBJPATH: '/xyz/openbmc_project/software/functional'
+ ACTIVATE_FIRMWARE: 'xyz.openbmc_project.Software.Activation.RequestedActivations.Active',
+ FUNCTIONAL_OBJPATH: '/xyz/openbmc_project/software/functional'
},
- POLL_INTERVALS: {
- ACTIVATION: 5000
+ POLL_INTERVALS: {
+ ACTIVATION: 5000,
+ POWER_OP: 5000,
},
- TIMEOUT: {
- ACTIVATION: 1000 * 60 * 10, // 10 mins
+ TIMEOUT: {
+ ACTIVATION: 1000 * 60 * 10, // 10 mins
+ CHASSIS_OFF: 1000 * 60 * 5, // 5 mins
+ HOST_ON: 1000 * 60 * 5, // 5 mins
},
MESSAGES: {
- SENSOR: {
- NO_SENSOR_DATA: 'There are no sensors found.',
- CRITICAL_NO_SENSOR_DATA: 'There are no sensors in Critical state.',
- WARNING_NO_SENSOR_DATA: 'There are no sensors in Warning state.'
- }
+ POLL: {
+ TIMEOUT: 'Time out. Did not reach power state in allotted time.',
+ },
+ SENSOR: {
+ NO_SENSOR_DATA: 'There are no sensors found.',
+ CRITICAL_NO_SENSOR_DATA: 'There are no sensors in Critical state.',
+ WARNING_NO_SENSOR_DATA: 'There are no sensors in Warning state.'
+ },
+ ERROR_MODAL: {
+ TITLE: 'Unexpected error',
+ DESCRIPTION: 'Oops! An unexpected error occurred. Record specific details of the issue, then contact your company support services.'
+ }
},
POWER_CAP_TEXT: {
unit: 'W',
OpenPOWER on IntegriCloud