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