Josh King | d7d237b | 2016-11-24 14:54:35 -0600 | [diff] [blame] | 1 | description: > |
| 2 | Implementation of BMC state management. When rebooting we are in |
| 3 | transition. When Ready all services required are running |
| 4 | successfully. When we are Not Ready this implies not all services |
| 5 | have started that are required to be. |
| 6 | |
| 7 | properties: |
| 8 | - name: RequestedBMCTransition |
| 9 | type: enum[self.Transition] |
| 10 | default: 'None' |
| 11 | description: > |
| 12 | The desired BMC transition |
| 13 | |
| 14 | - name: CurrentBMCState |
| 15 | type: enum[self.BMCState] |
| 16 | description: > |
| 17 | The current state of the BMC and is a read-only property. |
| 18 | |
Matt Spinler | 7b1c221 | 2018-07-11 10:27:47 -0500 | [diff] [blame] | 19 | - name: LastRebootTime |
| 20 | type: uint64 |
| 21 | description: > |
| 22 | The last time at which the BMC came out of a reboot as |
| 23 | determined by its uptime, in epoch time, in milliseconds. |
Matt Spinler | 7b1c221 | 2018-07-11 10:27:47 -0500 | [diff] [blame] | 24 | |
Tim Lee | 2a4da80 | 2021-08-04 09:52:47 +0800 | [diff] [blame] | 25 | - name: LastRebootCause |
| 26 | type: enum[self.RebootCause] |
| 27 | default: 'Unknown' |
| 28 | description: > |
| 29 | The last BMC reboot cause |
| 30 | |
Josh King | d7d237b | 2016-11-24 14:54:35 -0600 | [diff] [blame] | 31 | enumerations: |
| 32 | - name: Transition |
| 33 | description: > |
| 34 | The desired transition for the BMC firmware |
| 35 | values: |
| 36 | - name: 'Reboot' |
| 37 | description: > |
| 38 | BMC system should be rebooted |
Jayaprakash Mutyala | e77b423 | 2020-08-13 22:19:13 +0000 | [diff] [blame] | 39 | - name: 'HardReboot' |
| 40 | description: > |
| 41 | BMC system should be non-gracefully rebooted. |
Josh King | d7d237b | 2016-11-24 14:54:35 -0600 | [diff] [blame] | 42 | - name: 'None' |
| 43 | description: > |
| 44 | No transition is in progress |
| 45 | |
| 46 | - name: BMCState |
| 47 | description: > |
| 48 | The current state of the BMC firmware |
| 49 | values: |
| 50 | - name: 'Ready' |
| 51 | description: > |
| 52 | Ready implies all services started and are running successfully |
| 53 | - name: 'NotReady' |
| 54 | description: > |
| 55 | Not ready implies not all services have started or are not running successfully |
AppaRao Puli | 4610bac | 2019-11-05 00:26:07 +0530 | [diff] [blame] | 56 | - name: 'UpdateInProgress' |
| 57 | description: > |
| 58 | UpdateInProgress implies BMC is in firmware update mode. CurrentBMCState |
| 59 | will be set to "UpdateInProgress" while starting image download and |
| 60 | reset to Ready, once activation is done or error case during update process. |
Andrew Geissler | a9c704e | 2021-09-23 14:36:37 -0500 | [diff] [blame] | 61 | - name: 'Quiesced' |
| 62 | description: > |
| 63 | BMC firmware is quiesced. The BMC firmware is enabled but either |
| 64 | unresponsive or only processing a restricted set of commands. This |
| 65 | state may be the result of a service within the BMC going into a |
| 66 | failed state. |
Tim Lee | 2a4da80 | 2021-08-04 09:52:47 +0800 | [diff] [blame] | 67 | |
| 68 | - name: RebootCause |
| 69 | description: > |
| 70 | The recorded reboot cause of the BMC |
| 71 | values: |
| 72 | - name: 'POR' |
| 73 | description: > |
| 74 | Last reboot is caused by Power-On-Reset |
Andrew Geissler | 615e4f9 | 2021-10-28 09:27:44 -0500 | [diff] [blame] | 75 | - name: 'PinholeReset' |
| 76 | description: > |
| 77 | Last reboot is caused by pinhole reset |
Tim Lee | 2a4da80 | 2021-08-04 09:52:47 +0800 | [diff] [blame] | 78 | - name: 'Watchdog' |
| 79 | description: > |
| 80 | Last reboot is caused by Watchdog |
| 81 | - name: 'Unknown' |
| 82 | description: > |
| 83 | Last reboot is caused by Unknown |