Lines Matching +full:wait +full:- +full:state

79     [Documentation]  Wait for Host to be online. Checks every X seconds
86 # max_timeout Maximum time to wait.
89 # interval Interval to wait between status checks.
93 Wait Until Keyword Succeeds
113 ... data=xyz.openbmc_project.State.Watchdog.Action.PowerCycle
171 ... echo ${os_password} | sudo -S reboot
192 ... echo ${os_password} | sudo -S shutdown${time_string}
198 Set System LED State
203 # led_state LED state to be set (e.g. On, Off).
207 Write Attribute ${LED_PHYSICAL_URI}${led_name} State data=${args}
209 Verify LED State ${led_name} ${led_state}
220 ${state}= Read Attribute ${OPENBMC_BASE_URI}sensors/host/BootProgress
223 RETURN ${state}
233 # prior call to this function or via a -v parm), this keyword will simply
241 # -v boot_prog_method:Old to force old behavior on such builds.
261 ... keyword returns that the power state has switched to on.
262 [Arguments] ${wait}=${1}
265 # wait Indicates whether to wait for a powered on state after issuing
274 # Does caller want to wait for power on status?
275 IF '${wait}' == '${0}' Return From Keyword
276 Wait Until Keyword Succeeds 3 min 10 sec Is Power On
281 ... keyword returns that the power state has switched to off.
288 Wait Until Keyword Succeeds 1 min 10 sec Is Power Off
301 ${state}= New Get Boot Progress quiet=${quiet}
303 ${state}= Old Get Boot Progress quiet=${quiet}
306 RETURN ${state}
317 ${state}= Read Attribute ${HOST_STATE_URI} BootProgress quiet=${quiet}
319 RETURN ${state.rsplit('.', 1)[1]}
353 ${resp}= Wait Until Keyword Succeeds 1 min 20 sec
373 Get Power State
374 [Documentation] Returns the power state as an integer. Either 0 or 1.
414 Wait Until Keyword Succeeds 2 min 10 sec Is PNOR Flashing
466 ... cpu -
485 …${resp}= Get Matches ${list} regexp=^.*[0-9a-z_].${endpoint}\[_0-9a-z]*$ case_insensitive=${Tr…
550 # 0 - indicates chip select is current side.
551 # 32 - indicates chip select is alternate side.
567 Get System LED State
568 [Documentation] Return the state of given system LED.
574 ${state}= Read Attribute ${LED_PHYSICAL_URI}${led_name} State
575 RETURN ${state.rsplit('.', 1)[1]}
578 Verify LED State
579 [Documentation] Checks if LED is in given state.
583 # led_state LED state to be verified (e.g. On, Off).
585 ${state}= Get System LED State ${led_name}
586 Should Be Equal ${state} ${led_state}
589 Get LED State XYZ
590 [Documentation] Returns state of given LED.
596 ${state}= Read Attribute ${LED_GROUPS_URI}${led_name} Asserted
597 # Returns the state of the LED, either On or Off.
598 RETURN ${state}
601 Verify Identify LED State
602 [Documentation] Verify that the identify state of the LED group matches caller's expectations.
606 # expected_state The expected LED asserted state (1 = asserted, 0 = not asserted).
608 ${led_state}= Get LED State XYZ enclosure_identify
609 Should Be Equal ${led_state} ${expected_state} msg=Unexpected LED state.
662 [Arguments] ${power_restore_policy}=always-off
666 # always-on : turn on when power is restored
667 # previous : return to previous state when power is restored
668 # always-off : stay off after power is restored
671 # Example: Set chassis power restore policy to always-off
740 [Documentation] Verify that the BMC chassis state is on.
741 ${state}= Get Power State
742 Should be equal ${state} ${1}
746 [Documentation] Verify that the BMC chassis state is off.
747 ${state}= Get Power State
748 Should be equal ${state} ${0}
754 …${bmc_time_via_date} ${stderr} ${rc}= BMC Execute Command date +"%Y-%m-%dT%H:%M:%S" print_err…
768 ${headers}= Create Dictionary Content-Type=application/json X-Auth-Token=${XAUTH_TOKEN}
782 # Immediate: Wait For Reboot start_boot_seconds=${state['epoch_seconds']}
786 # Immediate: Wait State os_running_match_state 10 mins
798 Get Task State From File
799 [Documentation] Get task states from pre-define data/task_state.json file.
801 # Example: Task state JSON format.
859 # Redfish state keywords.
861 Redfish Get BMC State
862 [Documentation] Return BMC health state.
864 # "Enabled" -> BMC Ready, "Starting" -> BMC NotReady
870 # "State": "Enabled"
873 ${status}= Wait Until Keyword Succeeds 1 min 20 sec
875 RETURN ${status["State"]}
878 Redfish Verify BMC State
879 [Documentation] Verify BMC state is enabled.
883 # match_state Expected match state (e.g. Enabled, Starting, Error)
885 ${Status}= Wait Until Keyword Succeeds 1 min 20 sec
888 Should Be Equal As Strings ${match_state} ${Status['State']}
891 Redfish Get Host State
892 [Documentation] Return host power and health state.
901 # "State": "StandbyOffline"
904 ${chassis}= Wait Until Keyword Succeeds 1 min 20 sec
906 RETURN ${chassis["PowerState"]} ${chassis["Status"]["State"]}
910 [Documentation] Return boot progress state.
917 ${boot_progress}= Wait Until Keyword Succeeds 1 min 20 sec
921 ... NA ${boot_progress["Status"]["State"]}
923 RETURN ${boot_progress["BootProgress"]["LastState"]} ${boot_progress["Status"]["State"]}
930 # Refer: openbmc/docs/designs/boot-progress.md
934 ${bmc_state}= Redfish Get BMC State
935 ${chassis_state} ${chassis_status}= Redfish Get Host State
944 # Disable loggoing state to prevent huge log.html record when boot
952 [Documentation] Verify BMC state is not quiesced.
956 Log To Console BMC State : ${bmc_state}
974 Wait Until Keyword Succeeds 3 min 10 sec Redfish Get States
976 Wait Until Keyword Succeeds 5 min 10 sec Match State ${standby_states}
979 Match State
990 Wait For Host Boot Progress To Reach Required State
991 [Documentation] Wait till host boot progress reaches required state.
995 # expected_boot_state Expected boot state. E.g. OSRunning, SystemInitComplete etc.
997 Wait Until Keyword Succeeds ${power_on_timeout} 20 sec
998 ... Is Boot Progress At Required State ${expected_boot_state}
1013 Wait Until Keyword Succeeds 2 min 5 sec Is Boot Progress Changed
1020 [Documentation] Get BootProgress state and expect boot state mismatch.
1024 # boot_state Value of the BootProgress state to match against.
1031 Is Boot Progress At Required State
1032 [Documentation] Get BootProgress state and expect boot state to match.
1036 # boot_state Value of the BootProgress state to match.
1043 Is Boot Progress At Any State
1044 [Documentation] Get BootProgress state and expect boot state to match
1055 Is Host At State
1056 [Documentation] Get Host state and check if it matches
1057 ... user input expected state.
1061 # expected_host_state Expected Host State to check.(e.g. Quiesced).
1075 ${cmd}= Catenate busctl set-property xyz.openbmc_project.Watchdog
1077 ... xyz.openbmc_project.State.Watchdog Interval t ${milliseconds}
1081 Stop PLDM Service And Wait
1082 [Documentation] Stop PLDM service and wait for Host to initiate reset.
1114 Wait Until Keyword Succeeds 5 min 5 sec Ping Host ${OPENBMC_HOST}
1119 ${bmc_status}= Redfish Get BMC State
1137 ${resp}= pldmtool bios SetBIOSAttributeCurrentValue -a ${attribute_name} -d ${attribute_value}
1157 ${pldm_output}= pldmtool bios GetBIOSAttributeCurrentValueByHandle -a ${attribute_name}
1161 Verify Host Power State
1162 [Documentation] Get the Host Power state and compare it with the expected state.
1166 # expected_power_state State of Host e.g. Off or On.
1168 ${power_state} ${health_status}= Redfish Get Host State
1175 Wait Until Keyword Succeeds 3 min 30 sec Verify Host Power State On
1177 Wait Until Keyword Succeeds 10 min 30 sec OS Execute Command uptime