Andrew Geissler | 2477d9a | 2016-11-22 12:09:21 -0600 | [diff] [blame] | 1 | description: > |
| 2 | Implement to provide host state management |
| 3 | |
| 4 | properties: |
| 5 | - name: RequestedHostTransition |
| 6 | type: enum[self.Transition] |
| 7 | default: 'Off' |
| 8 | description: > |
| 9 | The desired host transition. This will be preserved across AC |
| 10 | power cycles of the BMC. |
| 11 | |
| 12 | - name: CurrentHostState |
| 13 | type: enum[self.HostState] |
| 14 | description: > |
| 15 | A read-only property describing the current state of the host |
| 16 | firmware. A user can determine if a system is in transition by |
| 17 | comparing the CurrentHostState and the RequestedHostTransition |
| 18 | properties. |
| 19 | |
Vijay Khemka | 6bcf4ff | 2020-03-03 15:20:08 -0800 | [diff] [blame] | 20 | - name: RestartCause |
| 21 | type: enum[self.RestartCause] |
| 22 | default: 'Unknown' |
| 23 | description: > |
| 24 | A property to define restart cause of a host. |
| 25 | |
Andrew Geissler | 2477d9a | 2016-11-22 12:09:21 -0600 | [diff] [blame] | 26 | enumerations: |
| 27 | - name: Transition |
| 28 | description: > |
| 29 | The desired transition for host firmware |
| 30 | values: |
| 31 | - name: 'Off' |
| 32 | description: > |
| 33 | Host firmware should be off |
| 34 | - name: 'On' |
| 35 | description: > |
| 36 | Host firmware should be on |
| 37 | - name: 'Reboot' |
| 38 | description: > |
Andrew Geissler | 7adacdc | 2020-01-29 10:38:09 -0600 | [diff] [blame] | 39 | Host firmware should be rebooted. Chassis power will be cycled from |
| 40 | off to on during this reboot |
| 41 | - name: 'GracefulWarmReboot' |
| 42 | description: > |
| 43 | Host firmware be will notified to shutdown and once complete, the |
| 44 | host firmware will be rebooted. Chassis power will remain on |
| 45 | throughout the reboot |
| 46 | - name: 'ForceWarmReboot' |
| 47 | description: > |
| 48 | Host firmware will be rebooted without notification and chassis |
| 49 | power will remain on throughout the reboot |
Andrew Geissler | 2477d9a | 2016-11-22 12:09:21 -0600 | [diff] [blame] | 50 | |
| 51 | - name: HostState |
| 52 | description: > |
| 53 | The current state of the host firmware |
| 54 | values: |
| 55 | - name: 'Off' |
| 56 | description: > |
| 57 | Host firmware is not running |
| 58 | - name: 'Running' |
| 59 | description: > |
| 60 | Host firmware is running |
Saqib Khan | b0360fa | 2017-02-16 13:56:51 -0600 | [diff] [blame] | 61 | - name: 'Quiesced' |
| 62 | description: > |
| 63 | Host firmware is quiesced |
Andrew Geissler | 688ed12 | 2019-12-04 11:14:41 -0600 | [diff] [blame] | 64 | - name: 'DiagnosticMode' |
| 65 | description: > |
| 66 | Host firmware is capturing debug information. Powering off your |
| 67 | system while the host is in this state will prevent the debug data |
| 68 | from being properly collected. The host will move to one of the |
| 69 | other states once complete. |
Vijay Khemka | 6bcf4ff | 2020-03-03 15:20:08 -0800 | [diff] [blame] | 70 | |
| 71 | - name: RestartCause |
| 72 | description: > |
| 73 | The reason for host restart. |
| 74 | values: |
| 75 | - name: 'Unknown' |
| 76 | description: > |
| 77 | Reason Unknown |
| 78 | - name: 'RemoteCommand' |
| 79 | description: > |
| 80 | Remote command issued |
| 81 | - name: 'ResetButton' |
| 82 | description: > |
| 83 | Reset button pressed |
| 84 | - name: 'PowerButton' |
| 85 | description: > |
| 86 | Power button pressed |
| 87 | - name: 'WatchdogTimer' |
| 88 | description: > |
| 89 | Watchdog Timer expired |
| 90 | - name: 'PowerPolicyAlwaysOn' |
| 91 | description: > |
| 92 | Power Policy Host Always on |
| 93 | - name: 'PowerPolicyPreviousState' |
| 94 | description: > |
| 95 | Power Policy Previous State of Host |
| 96 | - name: 'SoftReset' |
| 97 | description: > |
| 98 | Soft reset of Host |