Lines Matching +full:off +full:- +full:state

21     # wait  Indicates that this keyword should wait for host running state.
35 [Documentation] Initiate host power off.
36 # 1. Request soft power off
37 # 2. Hard power off, if failed.
41 # wait Indicates that this keyword should wait for host off state.
52 IF '${status}' == '${False}' Hard Power Off
56 [Documentation] Wait for power off state.
59 Wait Until Keyword Succeeds 6 min 10 sec Is Host Off
62 Hard Power Off
63 [Documentation] Do a hard power off.
67 # wait Indicates that this keyword should wait for host off state.
77 ... 1 min 10 sec Run Keywords Is Chassis Off AND Is Host Off
85 # wait Indicates that this keyword should wait for host reboot state.
98 [Documentation] Check if host state is "Running".
99 # Chassis state should be "On" before we check the host state.
101 ${host_state}= Get Host State
107 Get Host State Attribute
108 [Documentation] Return the state of the host as a string.
118 ${state}=
120 RETURN ${state}
127 # "/xyz/openbmc_project/state/host0": {
129 # "BootProgress": "xyz.openbmc_project.State.Boot.Progress.ProgressStages.OSStart",
130 # "CurrentHostState": "xyz.openbmc_project.State.Host.HostState.Running",
131 # "OperatingSystemState": "xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.BootComplete",
132 # "RequestedHostTransition": "xyz.openbmc_project.State.Host.Transition.On"
135 ${boot_stage}= Get Host State Attribute BootProgress
138 ${os_state}= Get Host State Attribute OperatingSystemState
142 Is Host Off
143 [Documentation] Check if host state is "Off".
145 # Chassis state should be "Off" before we check the host state.
146 Is Chassis Off
147 ${host_state}= Get Host State
148 Should Be Equal Off ${host_state}
154 ${host_trans_state}= Get Host Trans State
160 [Documentation] Check if chassis state is "On".
161 ${power_state}= Get Chassis Power State
165 Is Chassis Off
166 [Documentation] Check if chassis state is "Off".
167 ${power_state}= Get Chassis Power State
168 Should Be Equal Off ${power_state}
171 [Documentation] Check if host state is quiesced.
172 ${host_state}= Get Host State
179 [Documentation] Recover host from quisced state.
184 Log HOST is recovered from quiesced state
188 Get Host State
189 [Documentation] Return the state of the host as a string.
191 # quiet - Suppress REST output logging to console.
192 ${state}=
195 RETURN ${state.rsplit('.', 1)[1]}
197 Get Host Trans State
198 [Documentation] Return the transition state of host as a string.
199 ... e.g. On, Off, Reboot
204 ${state}=
207 RETURN ${state.rsplit('.', 1)[1]}
209 Get Chassis Power State
210 [Documentation] Return the power state of the Chassis
213 # quiet - Suppress REST output logging to console.
214 ${state}=
217 RETURN ${state.rsplit('.', 1)[1]}
220 Get BMC State
221 [Documentation] Return the state of the BMC.
223 # quiet - Suppress REST output logging to console.
224 ${state}=
226 RETURN ${state.rsplit('.', 1)[1]}
229 Put BMC State
230 [Documentation] Put BMC in given state.
232 # expected_state - expected BMC state
234 ${bmc_state}= Get BMC State
236 Log BMC is already in ${expected_state} state
238 OBMC Reboot (off)
246 # wait Indicates that this keyword should wait for ending state..
274 [Documentation] Check if BMC state is Ready.
275 ${bmc_state}= Get BMC State
279 [Documentation] Check if BMC state is Not Ready.
280 ${bmc_state}= Get BMC State
283 Wait for BMC state
284 [Documentation] Wait until given BMC state is reached.
285 [Arguments] ${state}
286 # state - BMC state to wait for
287 IF '${state}' == '${BMC_READY_STATE}'
289 ELSE IF '${state}' == '${BMC_NOT_READY_STATE}'
292 Fail msg=Invalid BMC state
296 Set State Interface Version
308 Power Off Request
311 Initiate Power Off
318 [Documentation] Check BMC state and wait for BMC Ready.
322 Get Host State Via Redfish
323 [Documentation] Return the state of the host Via Redfish as a string.