History log of /openbmc/phosphor-state-manager/scripts/ (Results 1 – 4 of 4)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
d182bff508-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

beautysh: re-format

beautysh is enabled in the openbmc-build-scripts on Bash/Zsh/POSIX-sh
files to have a consistent formatting. Re-run the formatter on the
whole repository.

Signed-off-by: Patric

beautysh: re-format

beautysh is enabled in the openbmc-build-scripts on Bash/Zsh/POSIX-sh
files to have a consistent formatting. Re-run the formatter on the
whole repository.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I8c4f46426087652161d7cbeab489bfe32d25f17e

show more ...

55324b4927-Oct-2022 Andrew Geissler <geissonator@yahoo.com>

only quiesce in reboot on host crash

This script was introduced to ensure a system properly halted in
scenarios where the host has crashed (obmc-host-crash@.target). There
was a loophole where the s

only quiesce in reboot on host crash

This script was introduced to ensure a system properly halted in
scenarios where the host has crashed (obmc-host-crash@.target). There
was a loophole where the standard reboot attempt logic check was not
running in this specific path.

Unfortunately, that original change was not done quite right. This
script is actually called on all host reboots so we have run into
situations where the host is being put into quiesce before being given
one last try to boot. That last try in non-host crash scenarios is where
certain recovery actions (like trying alternate boot sources for some
devices) is done.

This commit modifies the script to ensure it only moves the host to the
quiesce state when the cause of the host reboot was a host crash.

Tested:
- Verified in normal reboot path, even if AttemptsLeft is 0, the reboot
is still done
- Verified that if AttemptsLeft is 0 and reboot reason is HostCrash that
host was put in quiesce

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I18e21cc33b3c38334ad760148a0754e2bd7d0780

show more ...

2685461719-Aug-2022 Potin Lai <potin.lai@quantatw.com>

host-reboot: add host instance in get_reboot_count()

Add multi-host support to get_reboot_count()

Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I77c00273bfcf4a45a6e24ac8e1a8540f2d609

host-reboot: add host instance in get_reboot_count()

Add multi-host support to get_reboot_count()

Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I77c00273bfcf4a45a6e24ac8e1a8540f2d609e04

show more ...


/openbmc/phosphor-state-manager/OWNERS
/openbmc/phosphor-state-manager/bmc_state_manager.cpp
/openbmc/phosphor-state-manager/bmc_state_manager.hpp
/openbmc/phosphor-state-manager/bmc_state_manager_main.cpp
/openbmc/phosphor-state-manager/chassis_state_manager.cpp
/openbmc/phosphor-state-manager/chassis_state_manager.hpp
/openbmc/phosphor-state-manager/chassis_state_manager_main.cpp
/openbmc/phosphor-state-manager/discover_system_state.cpp
/openbmc/phosphor-state-manager/host_check.cpp
/openbmc/phosphor-state-manager/host_condition_gpio/host_condition.hpp
/openbmc/phosphor-state-manager/host_condition_gpio/host_condition_main.cpp
/openbmc/phosphor-state-manager/host_reset_recovery.cpp
/openbmc/phosphor-state-manager/host_state_manager.cpp
/openbmc/phosphor-state-manager/host_state_manager.hpp
/openbmc/phosphor-state-manager/host_state_manager_main.cpp
/openbmc/phosphor-state-manager/hypervisor_state_manager.cpp
/openbmc/phosphor-state-manager/hypervisor_state_manager.hpp
/openbmc/phosphor-state-manager/hypervisor_state_manager_main.cpp
/openbmc/phosphor-state-manager/meson.build
/openbmc/phosphor-state-manager/meson_options.txt
/openbmc/phosphor-state-manager/scheduled_host_transition.hpp
/openbmc/phosphor-state-manager/scheduled_host_transition_main.cpp
host-reboot
/openbmc/phosphor-state-manager/secure_boot_check.cpp
/openbmc/phosphor-state-manager/service_files/xyz.openbmc_project.State.BMC.service
/openbmc/phosphor-state-manager/settings.cpp
/openbmc/phosphor-state-manager/settings.hpp
/openbmc/phosphor-state-manager/systemd_target_signal.cpp
/openbmc/phosphor-state-manager/systemd_target_signal.hpp
/openbmc/phosphor-state-manager/test/test_scheduled_host_transition.cpp
/openbmc/phosphor-state-manager/utils.cpp
/openbmc/phosphor-state-manager/utils.hpp
128ea8e322-Jun-2022 Andrew Geissler <geissonator@yahoo.com>

host-reboot: enforce host boot count on host crash

The host reboot path can be triggered via paths outside of the normal
RequestedHostTransition property set. For example, if the host crashes,
it ju

host-reboot: enforce host boot count on host crash

The host reboot path can be triggered via paths outside of the normal
RequestedHostTransition property set. For example, if the host crashes,
it just triggers an automatic reboot using the systemd targets, which
means the check to prevent continuous host reboots is not run.

This commit ensures we decrement the reboot counter when a host crash
occurs, and it also ensures we check that count when deciding if a
reboot should occur.

While testing, it was found when we end in the host Quiesce state (after
all reboot attempts have expired), the host stayed in Quiesce, even
after issuing a power off. The fix for that was to ensure the
obmc-host-quiesce@.target conflicted with obmc-host-stop@.target to
ensure it would properly run on the power off request and update the
host state to Off.

Tested:
- Verified that AttemptsLeft was properly decremented on host crashes
- Verified that when AttempsLeft reached 0, the reboot was halted
and the host state was moved to Quiesced
- Verified that once in Quiesced, system could be powered off, and a
boot worked fine (and AttempsLeft was back to 3)

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I8d101b987517e160becc712ed70950f1d3204397

show more ...


/openbmc/phosphor-state-manager/.clang-format
/openbmc/phosphor-state-manager/.gitignore
/openbmc/phosphor-state-manager/.shellcheck
/openbmc/phosphor-state-manager/LICENSE
/openbmc/phosphor-state-manager/MAINTAINERS
/openbmc/phosphor-state-manager/OWNERS
/openbmc/phosphor-state-manager/README.md
/openbmc/phosphor-state-manager/bmc_state_manager.cpp
/openbmc/phosphor-state-manager/bmc_state_manager.hpp
/openbmc/phosphor-state-manager/bmc_state_manager_main.cpp
/openbmc/phosphor-state-manager/chassis_check_power_status.cpp
/openbmc/phosphor-state-manager/chassis_state_manager.cpp
/openbmc/phosphor-state-manager/chassis_state_manager.hpp
/openbmc/phosphor-state-manager/chassis_state_manager_main.cpp
/openbmc/phosphor-state-manager/data/meson.build
/openbmc/phosphor-state-manager/data/phosphor-service-monitor-default.json
/openbmc/phosphor-state-manager/data/phosphor-target-monitor-default.json
/openbmc/phosphor-state-manager/discover_system_state.cpp
/openbmc/phosphor-state-manager/host_check.cpp
/openbmc/phosphor-state-manager/host_check.hpp
/openbmc/phosphor-state-manager/host_condition_gpio/host_condition.cpp
/openbmc/phosphor-state-manager/host_condition_gpio/host_condition.hpp
/openbmc/phosphor-state-manager/host_condition_gpio/host_condition_main.cpp
/openbmc/phosphor-state-manager/host_condition_gpio/meson.build
/openbmc/phosphor-state-manager/host_condition_gpio/phosphor-host-condition-gpio@.service
/openbmc/phosphor-state-manager/host_reset_recovery.cpp
/openbmc/phosphor-state-manager/host_state_manager.cpp
/openbmc/phosphor-state-manager/host_state_manager.hpp
/openbmc/phosphor-state-manager/host_state_manager_main.cpp
/openbmc/phosphor-state-manager/hypervisor_state_manager.cpp
/openbmc/phosphor-state-manager/hypervisor_state_manager.hpp
/openbmc/phosphor-state-manager/hypervisor_state_manager_main.cpp
/openbmc/phosphor-state-manager/meson.build
/openbmc/phosphor-state-manager/meson_options.txt
/openbmc/phosphor-state-manager/obmcutil
/openbmc/phosphor-state-manager/scheduled_host_transition.cpp
/openbmc/phosphor-state-manager/scheduled_host_transition.hpp
/openbmc/phosphor-state-manager/scheduled_host_transition_main.cpp
host-reboot
/openbmc/phosphor-state-manager/secure_boot_check.cpp
/openbmc/phosphor-state-manager/service_files/meson.build
/openbmc/phosphor-state-manager/service_files/phosphor-bmc-security-check.service
/openbmc/phosphor-state-manager/service_files/phosphor-chassis-check-power-status@.service
/openbmc/phosphor-state-manager/service_files/phosphor-clear-one-time@.service
/openbmc/phosphor-state-manager/service_files/phosphor-discover-system-state@.service
/openbmc/phosphor-state-manager/service_files/phosphor-reboot-host@.service
/openbmc/phosphor-state-manager/service_files/phosphor-reset-host-reboot-attempts@.service
/openbmc/phosphor-state-manager/service_files/phosphor-reset-host-recovery@.service
/openbmc/phosphor-state-manager/service_files/phosphor-reset-host-running@.service
/openbmc/phosphor-state-manager/service_files/phosphor-reset-sensor-states@.service
/openbmc/phosphor-state-manager/service_files/phosphor-set-host-transition-to-off@.service
/openbmc/phosphor-state-manager/service_files/phosphor-set-host-transition-to-running@.service
/openbmc/phosphor-state-manager/service_files/phosphor-systemd-target-monitor.service
/openbmc/phosphor-state-manager/service_files/xyz.openbmc_project.State.BMC.service
/openbmc/phosphor-state-manager/service_files/xyz.openbmc_project.State.Chassis@.service
/openbmc/phosphor-state-manager/service_files/xyz.openbmc_project.State.Host@.service
/openbmc/phosphor-state-manager/service_files/xyz.openbmc_project.State.Hypervisor.service
/openbmc/phosphor-state-manager/service_files/xyz.openbmc_project.State.ScheduledHostTransition@.service
/openbmc/phosphor-state-manager/settings.cpp
/openbmc/phosphor-state-manager/settings.hpp
/openbmc/phosphor-state-manager/subprojects/CLI11.wrap
/openbmc/phosphor-state-manager/subprojects/cereal.wrap
/openbmc/phosphor-state-manager/subprojects/libgpiod.wrap
/openbmc/phosphor-state-manager/subprojects/nlohmann-json.wrap
/openbmc/phosphor-state-manager/subprojects/phosphor-dbus-interfaces.wrap
/openbmc/phosphor-state-manager/subprojects/phosphor-logging.wrap
/openbmc/phosphor-state-manager/subprojects/sdbusplus.wrap
/openbmc/phosphor-state-manager/subprojects/sdeventplus.wrap
/openbmc/phosphor-state-manager/systemd_service_parser.cpp
/openbmc/phosphor-state-manager/systemd_service_parser.hpp
/openbmc/phosphor-state-manager/systemd_target_monitor.cpp
/openbmc/phosphor-state-manager/systemd_target_parser.cpp
/openbmc/phosphor-state-manager/systemd_target_parser.hpp
/openbmc/phosphor-state-manager/systemd_target_signal.cpp
/openbmc/phosphor-state-manager/systemd_target_signal.hpp
/openbmc/phosphor-state-manager/target_files/meson.build
/openbmc/phosphor-state-manager/target_files/obmc-bmc-service-quiesce@.target
/openbmc/phosphor-state-manager/target_files/obmc-chassis-blackout@.target
/openbmc/phosphor-state-manager/target_files/obmc-chassis-hard-poweroff@.target
/openbmc/phosphor-state-manager/target_files/obmc-chassis-powered-off@.target
/openbmc/phosphor-state-manager/target_files/obmc-chassis-poweroff@.target
/openbmc/phosphor-state-manager/target_files/obmc-chassis-poweron@.target
/openbmc/phosphor-state-manager/target_files/obmc-chassis-powerreset@.target
/openbmc/phosphor-state-manager/target_files/obmc-fan-control-ready@.target
/openbmc/phosphor-state-manager/target_files/obmc-fan-control.target
/openbmc/phosphor-state-manager/target_files/obmc-fan-watchdog-takeover.target
/openbmc/phosphor-state-manager/target_files/obmc-fans-ready.target
/openbmc/phosphor-state-manager/target_files/obmc-host-crash@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-diagnostic-mode@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-force-warm-reboot@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-graceful-quiesce@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-quiesce@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-reboot@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-reset-running@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-reset@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-shutdown@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-start-pre@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-start@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-started@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-starting@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-startmin@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-stop-pre@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-stop@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-stopped@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-stopping@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-timeout@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-warm-reboot@.target
/openbmc/phosphor-state-manager/target_files/obmc-power-off@.target
/openbmc/phosphor-state-manager/target_files/obmc-power-on@.target
/openbmc/phosphor-state-manager/target_files/obmc-power-reset-on@.target
/openbmc/phosphor-state-manager/target_files/obmc-power-start-pre@.target
/openbmc/phosphor-state-manager/target_files/obmc-power-start@.target
/openbmc/phosphor-state-manager/target_files/obmc-power-stop-pre@.target
/openbmc/phosphor-state-manager/target_files/obmc-power-stop@.target
/openbmc/phosphor-state-manager/test/hypervisor_state.cpp
/openbmc/phosphor-state-manager/test/systemd_parser.cpp
/openbmc/phosphor-state-manager/test/systemd_signal.cpp
/openbmc/phosphor-state-manager/test/test_scheduled_host_transition.cpp
/openbmc/phosphor-state-manager/utils.cpp
/openbmc/phosphor-state-manager/utils.hpp