blob: 006a501894c88faae6f23f0f55be0dbe92ba28b5 [file] [log] [blame]
Andrew Geissler2477d9a2016-11-22 12:09:21 -06001description: >
2 Implement to provide host state management
3
4properties:
5 - name: RequestedHostTransition
6 type: enum[self.Transition]
Patrick Williams8da396c2022-03-14 14:21:02 -05007 default: "Off"
Andrew Geissler2477d9a2016-11-22 12:09:21 -06008 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06009 The desired host transition. This will be preserved across AC power
10 cycles of the BMC.
Andrew Geisslerabb61a02023-05-25 12:47:56 -050011 errors:
12 - xyz.openbmc_project.State.Host.Error.BMCNotReady
Andrew Geissler2477d9a2016-11-22 12:09:21 -060013
14 - name: CurrentHostState
15 type: enum[self.HostState]
16 description: >
17 A read-only property describing the current state of the host
18 firmware. A user can determine if a system is in transition by
19 comparing the CurrentHostState and the RequestedHostTransition
20 properties.
21
Vijay Khemka6bcf4ff2020-03-03 15:20:08 -080022 - name: RestartCause
23 type: enum[self.RestartCause]
Patrick Williams8da396c2022-03-14 14:21:02 -050024 default: "Unknown"
Vijay Khemka6bcf4ff2020-03-03 15:20:08 -080025 description: >
26 A property to define restart cause of a host.
27
Andrew Geissler2477d9a2016-11-22 12:09:21 -060028enumerations:
29 - name: Transition
30 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050031 The desired transition for host firmware
Andrew Geissler2477d9a2016-11-22 12:09:21 -060032 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050033 - name: "Off"
34 description: >
35 Host firmware should be off
36 - name: "On"
37 description: >
38 Host firmware should be on
39 - name: "Reboot"
40 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060041 Host firmware should be rebooted. Chassis power will be cycled
42 from off to on during this reboot
Patrick Williams8da396c2022-03-14 14:21:02 -050043 - name: "GracefulWarmReboot"
44 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060045 Host firmware be will notified to shutdown and once complete,
46 the host firmware will be rebooted. Chassis power will remain on
Patrick Williams8da396c2022-03-14 14:21:02 -050047 throughout the reboot
48 - name: "ForceWarmReboot"
49 description: >
50 Host firmware will be rebooted without notification and chassis
51 power will remain on throughout the reboot
Andrew Geissler2477d9a2016-11-22 12:09:21 -060052
53 - name: HostState
54 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050055 The current state of the host firmware
Andrew Geissler2477d9a2016-11-22 12:09:21 -060056 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050057 - name: "Off"
58 description: >
59 Host firmware is not running
60 - name: "TransitioningToOff"
61 description: >
62 Host firmware is transitioning to an Off state
63 - name: "Standby"
64 description: >
65 Host firmware is in a standby state. It is awaiting a Transition
66 request to On to move to Running. This is an intermediate state
67 that some implementations of this object may move to between Off
68 and Running.
69 - name: "Running"
70 description: >
71 Host firmware is running
72 - name: "TransitioningToRunning"
73 description: >
74 Host firmware is transitioning to a Running state
75 - name: "Quiesced"
76 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060077 Host firmware is quiesced. The host firmware is enabled but
78 either unresponsive or only processing a restricted set of
79 commands. This state can be a result of the host entering an
80 error state or booting into a BIOS setup environment. The
81 BootProgress property will provide details on which it is.
Patrick Williams8da396c2022-03-14 14:21:02 -050082 - name: "DiagnosticMode"
83 description: >
84 Host firmware is capturing debug information. Powering off your
Patrick Williamsa1347412022-12-06 10:56:22 -060085 system while the host is in this state will prevent the debug
86 data from being properly collected. The host will move to one of
87 the other states once complete.
Vijay Khemka6bcf4ff2020-03-03 15:20:08 -080088
89 - name: RestartCause
90 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050091 The reason for host restart.
Vijay Khemka6bcf4ff2020-03-03 15:20:08 -080092 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050093 - name: "Unknown"
94 description: >
95 Reason Unknown
96 - name: "RemoteCommand"
97 description: >
98 Remote command issued
99 - name: "ResetButton"
100 description: >
101 Reset button pressed
102 - name: "PowerButton"
103 description: >
104 Power button pressed
105 - name: "WatchdogTimer"
106 description: >
107 Watchdog Timer expired
108 - name: "PowerPolicyAlwaysOn"
109 description: >
110 Power Policy Host Always on
111 - name: "PowerPolicyPreviousState"
112 description: >
113 Power Policy Previous State of Host
114 - name: "SoftReset"
115 description: >
116 Soft reset of Host
117 - name: "ScheduledPowerOn"
118 description: >
119 The restart was scheduled via the
120 xyz.openbmc_project.State.ScheduledHostTransition interface
121 - name: "HostCrash"
122 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -0600123 The host firmware crashed and the BMC has automatically
124 initiated a restart of the host firmware