History log of /openbmc/phosphor-state-manager/test/ (Results 1 – 20 of 20)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
1b2c3c0316-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda forma

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.

See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.

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

show more ...

a1c0e5c721-Jun-2024 Pavithra Barithaya <pavithrabarithaya07@gmail.com>

clang-tidy: Enable readability-convert-member-functions-to-static

This check finds non-static member functions that can be made
static because the functions don’t use this.
This check also triggers

clang-tidy: Enable readability-convert-member-functions-to-static

This check finds non-static member functions that can be made
static because the functions don’t use this.
This check also triggers readability-static-accessed-through
-instance check as we are trying to access a static member
function through an instance.

Change-Id: I887b514a8478abedc24d5495d057b9d3e7dc9bdf
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>

show more ...

437f0b2721-Jun-2024 Pavithra Barithaya <pavithrabarithaya07@gmail.com>

clang-tidy: Enable modernize-use-emplace check

The check flags insertions to an STL-style container done by
calling the push_back, push, or push_front methods with an
explicitly-constructed temporar

clang-tidy: Enable modernize-use-emplace check

The check flags insertions to an STL-style container done by
calling the push_back, push, or push_front methods with an
explicitly-constructed temporary of the container element type.
In this case, the corresponding emplace equivalent methods result
in less verbose and potentially more efficient code.

Change-Id: I1e7ae19ef1400c83717b2df48f3314ba4e96423e
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>

show more ...

66a93fc821-Jun-2024 Pavithra Barithaya <pavithrabarithaya07@gmail.com>

clang-tidy: Enable modernize-raw-string-literal check

This check selectively replaces string literals containing
escaped characters with raw string literals.

Change-Id: I76fd4cde664f10390e368170441

clang-tidy: Enable modernize-raw-string-literal check

This check selectively replaces string literals containing
escaped characters with raw string literals.

Change-Id: I76fd4cde664f10390e36817044153d62380278bf
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>

show more ...


/openbmc/phosphor-state-manager/.clang-format
/openbmc/phosphor-state-manager/.clang-tidy
/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/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/discover_system_state.cpp
/openbmc/phosphor-state-manager/host_check.cpp
/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.hpp
/openbmc/phosphor-state-manager/meson.build
/openbmc/phosphor-state-manager/meson.options
/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/secure_boot_check.cpp
/openbmc/phosphor-state-manager/service_files/meson.build
/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-set-chassis-transition-to-off@.service
/openbmc/phosphor-state-manager/service_files/phosphor-set-chassis-transition-to-on@.service
/openbmc/phosphor-state-manager/service_files/xyz.openbmc_project.State.Chassis@.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/gpioplus.wrap
/openbmc/phosphor-state-manager/subprojects/nlohmann_json.wrap
/openbmc/phosphor-state-manager/systemd_target_monitor.cpp
/openbmc/phosphor-state-manager/systemd_target_signal.cpp
/openbmc/phosphor-state-manager/target_files/obmc-chassis-poweron@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-reboot@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-shutdown@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-start@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-startmin@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-stop@.target
systemd_parser.cpp
/openbmc/phosphor-state-manager/utils.cpp
/openbmc/phosphor-state-manager/utils.hpp
7e969cb923-Aug-2023 Patrick Williams <patrick@stwcx.xyz>

sdbus++: use non-deprecated namespaces

The sdbusplus repository has deprecated some namespaces and they are
currently only enabled with the SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
guard. Switch to the

sdbus++: use non-deprecated namespaces

The sdbusplus repository has deprecated some namespaces and they are
currently only enabled with the SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
guard. Switch to the new namespace names.

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

show more ...

57c0a89303-May-2023 Andrew Geissler <geissonator@yahoo.com>

hypervisor: remove OSStart from state association

Turns out the hypervisor never utilized the OSStart BootProgress.
Remove it from our mapping to hypervisor state.

Our hostboot BIOS team is actuall

hypervisor: remove OSStart from state association

Turns out the hypervisor never utilized the OSStart BootProgress.
Remove it from our mapping to hypervisor state.

Our hostboot BIOS team is actually looking to utilize this
BootProgress to indicate when they start the hypervisor. This would just
be a standard BootProgress that PSM needs no special handling of.

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

show more ...


/openbmc/phosphor-state-manager/.clang-format
/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/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/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_state_manager.cpp
/openbmc/phosphor-state-manager/host_state_manager.hpp
/openbmc/phosphor-state-manager/hypervisor_state_manager.cpp
/openbmc/phosphor-state-manager/hypervisor_state_manager.hpp
/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.hpp
/openbmc/phosphor-state-manager/scheduled_host_transition_main.cpp
/openbmc/phosphor-state-manager/scripts/host-reboot
/openbmc/phosphor-state-manager/secure_boot_check.cpp
/openbmc/phosphor-state-manager/service_files/meson.build
/openbmc/phosphor-state-manager/service_files/obmc-power-start@.service
/openbmc/phosphor-state-manager/service_files/obmc-power-stop@.service
/openbmc/phosphor-state-manager/service_files/obmc-powered-off@.service
/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-create-chassis-poweron-log@.service
/openbmc/phosphor-state-manager/service_files/phosphor-discover-system-state@.service
/openbmc/phosphor-state-manager/service_files/phosphor-reset-chassis-on@.service
/openbmc/phosphor-state-manager/service_files/phosphor-reset-chassis-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/systemd_target_parser.cpp
/openbmc/phosphor-state-manager/systemd_target_signal.hpp
/openbmc/phosphor-state-manager/target_files/meson.build
/openbmc/phosphor-state-manager/target_files/obmc-chassis-powercycle@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-graceful-quiesce@.target
hypervisor_state.cpp
/openbmc/phosphor-state-manager/utils.cpp
/openbmc/phosphor-state-manager/utils.hpp
f053e6fe22-Jul-2022 Patrick Williams <patrick@stwcx.xyz>

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t

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

show more ...


/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_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
/openbmc/phosphor-state-manager/scripts/host-reboot
/openbmc/phosphor-state-manager/secure_boot_check.cpp
/openbmc/phosphor-state-manager/service_files/phosphor-reboot-host@.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/target_files/meson.build
/openbmc/phosphor-state-manager/target_files/obmc-chassis-blackout@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-quiesce@.target
test_scheduled_host_transition.cpp
/openbmc/phosphor-state-manager/utils.cpp
/openbmc/phosphor-state-manager/utils.hpp
e4bdc7c625-May-2022 Andrew Geissler <andrewg@us.ibm.com>

update to latest openbmc clang format standards

Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Change-Id: Ibb0e97e8850bbd3c1eff82f4630328e2b5d15220

211d972d07-Apr-2022 Patrick Williams <patrick@stwcx.xyz>

sched-host-tran: support multi-host

The State.Host objects are now templated, so the ScheduledHostTransition
similarly needs to be templated.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Cha

sched-host-tran: support multi-host

The State.Host objects are now templated, so the ScheduledHostTransition
similarly needs to be templated.

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

show more ...


/openbmc/phosphor-state-manager/.gitignore
/openbmc/phosphor-state-manager/bmc_state_manager.cpp
/openbmc/phosphor-state-manager/bmc_state_manager.hpp
/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/discover_system_state.cpp
/openbmc/phosphor-state-manager/host_check.cpp
/openbmc/phosphor-state-manager/host_check.hpp
/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.hpp
/openbmc/phosphor-state-manager/meson.build
/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
/openbmc/phosphor-state-manager/service_files/meson.build
/openbmc/phosphor-state-manager/service_files/phosphor-discover-system-state@.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.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_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-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-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-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
test_scheduled_host_transition.cpp
f3870c6210-Feb-2022 Andrew Geissler <geissonator@yahoo.com>

crit-service: create error on failed service

This enhances the existing code to support logging an error when a
monitored service fails. The same systemd event is triggered for a
target failure and

crit-service: create error on failed service

This enhances the existing code to support logging an error when a
monitored service fails. The same systemd event is triggered for a
target failure and a service failure so no new logic is needed in
that area.

Tested:
- Repeatedly killed the host-state service until its unit went into the
failed state. Verified this was detected and the expected log was
created.

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

show more ...


/openbmc/phosphor-state-manager/.clang-format
/openbmc/phosphor-state-manager/.shellcheck
/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/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/data/phosphor-service-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/hypervisor_state_manager.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/service_files/meson.build
/openbmc/phosphor-state-manager/service_files/phosphor-chassis-check-power-status@.service
/openbmc/phosphor-state-manager/service_files/phosphor-discover-system-state@.service
/openbmc/phosphor-state-manager/service_files/phosphor-reset-host-recovery@.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/xyz.openbmc_project.State.Host.service
/openbmc/phosphor-state-manager/settings.cpp
/openbmc/phosphor-state-manager/settings.hpp
/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_signal.cpp
/openbmc/phosphor-state-manager/systemd_target_signal.hpp
/openbmc/phosphor-state-manager/target_files/meson.build
systemd_signal.cpp
/openbmc/phosphor-state-manager/utils.cpp
/openbmc/phosphor-state-manager/utils.hpp
75f38ee410-Feb-2021 Andrew Geissler <geissonator@yahoo.com>

hypervisor: reset requested host state on power off

The hypervisor only supports a one-shot Standby->Running transition
request. To make things more user friendly, reset the requested
transition on

hypervisor: reset requested host state on power off

The hypervisor only supports a one-shot Standby->Running transition
request. To make things more user friendly, reset the requested
transition on server power off's since there's no reason to keep around
the previous requests.

Tested:
- Built image with all related changes and verified hypervisor state
correctly tracked with BootProgress and that requesting an On
transition successfully made it to the hypervisor.

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

show more ...

c74716e509-Feb-2021 Andrew Geissler <geissonator@yahoo.com>

hypervisor: monitor boot progress

The BootProgress property will be tracked to set the hypervisor state as
appropriate

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

hypervisor: monitor boot progress

The BootProgress property will be tracked to set the hypervisor state as
appropriate

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

show more ...


/openbmc/phosphor-state-manager/bmc_state_manager.cpp
/openbmc/phosphor-state-manager/chassis_state_manager.cpp
/openbmc/phosphor-state-manager/host_state_manager.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/service_files/meson.build
/openbmc/phosphor-state-manager/service_files/phosphor-clear-one-time@.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/xyz.openbmc_project.State.Hypervisor.service
/openbmc/phosphor-state-manager/settings.cpp
/openbmc/phosphor-state-manager/settings.hpp
/openbmc/phosphor-state-manager/target_files/obmc-chassis-hard-poweroff@.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-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-stopping@.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-start-pre@.target
/openbmc/phosphor-state-manager/target_files/obmc-power-start@.target
/openbmc/phosphor-state-manager/target_files/obmc-power-stop@.target
hypervisor_state.cpp
e426b58928-May-2020 Andrew Geissler <geissonator@yahoo.com>

clang-format: update to latest from docs repo

This is from openbmc/docs/style/cpp/.clang-format

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

clang-format: update to latest from docs repo

This is from openbmc/docs/style/cpp/.clang-format

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

show more ...


/openbmc/phosphor-state-manager/.clang-format
/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_main.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/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
/openbmc/phosphor-state-manager/service_files/meson.build
/openbmc/phosphor-state-manager/service_files/phosphor-discover-system-state@.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/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/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-host-diagnostic-mode@.target
/openbmc/phosphor-state-manager/target_files/obmc-host-force-warm-reboot@.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-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-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-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
systemd_parser.cpp
systemd_signal.cpp
test_scheduled_host_transition.cpp
/openbmc/phosphor-state-manager/utils.cpp
/openbmc/phosphor-state-manager/utils.hpp
ef7abe1925-Feb-2020 Carol Wang <wangkair@cn.ibm.com>

sched-host-tran: handle with BMC time changing

Handle with different processes when BMC time is changed after scheduled time
is set.

Tested:
Case1: BMC time is changed to be later than current time

sched-host-tran: handle with BMC time changing

Handle with different processes when BMC time is changed after scheduled time
is set.

Tested:
Case1: BMC time is changed to be later than current time but still earlier than
scheduled time
1. Get current time
# date
Tue Feb 25 07:07:44 UTC 2020
# date +%s
1582614271
2. Schedule time, do host transition after at 07:20:00 around
# busctl get-property xyz.openbmc_project.State.ScheduledHostTransition \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime
t 1582615256
3. Change BMC time to 07:19:00 around
# busctl set-property xyz.openbmc_project.Time.Manager \
/xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed \
t 1582615136000000
# date
Tue Feb 25 07:19:20 UTC 2020
# date +%s
1582615187
4. Host transition is done after 1 minute around,
instead of waiting 13 mins around.

Case2: BMC time is changed after scheduled time is reached
Following Case1, the scheduled time is reached already,
1. Change BMC time to 07:10:00 around
# busctl set-property xyz.openbmc_project.Time.Manager \
/xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed \
t 1582614600000000
2. APP shows "The function Scheduled Host Transition is disabled", because
the scheduled time is reached already and the scheduled time has been set
to 0 after host transition is triggered.

Case3: BMC time is changed to be bigger than scheduled time before scheduled
time is reached
1. Set scheduled time 07:08:00 around
# busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582787314
2. Change BMC time to 07:10:00 around
# busctl set-property xyz.openbmc_project.Time.Manager \
/xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed \
t 1582787434000000
3. It will do host transition as requested.

Case4: BMC time is changed to be earlier than current time
1. Set scheduled time 07:10:00 around
# busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582787434
2. Change BMC time to 07:08:00 around
# busctl set-property xyz.openbmc_project.Time.Manager \
/xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed \
t 1582787314000000
3. App will wait 2 minutes more to do host transition.

Change-Id: I23228be944d1b2f71161317228c8b16d7f5ca4eb
Signed-off-by: Carol Wang <wangkair@cn.ibm.com>

show more ...

6a5db3d320-Feb-2020 Carol Wang <wangkair@cn.ibm.com>

sched-host-tran: implement host transition process

Set the scheduled time and host transition to trigger power on/off.

Tested:
1. Check the state first
$ curl -k -H "X-Auth-Token: $token" https://

sched-host-tran: implement host transition process

Set the scheduled time and host transition to trigger power on/off.

Tested:
1. Check the state first
$ curl -k -H "X-Auth-Token: $token" https://$bmc/xyz/openbmc_project/state/host0
{
"data": {
"AttemptsLeft": 3,
"BootProgress": "xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified",
"CurrentHostState": "xyz.openbmc_project.State.Host.HostState.Off",
"OperatingSystemState": "xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive",
"RequestedHostTransition": "xyz.openbmc_project.State.Host.Transition.Off",
"RequestedTransition": "xyz.openbmc_project.State.Host.Transition.On",
"ScheduledTime": 0
},
"message": "200 OK",
"status": "ok"
}
2. Set a time in future
# busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582184830
# busctl get-property xyz.openbmc_project.State.ScheduledHostTransition \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime
t 1582184830
3. Check the state again after scheduled time
Jan 15 06:38:20 WS-Seq-FW-2 phosphor-host-state-manager[442]: Host State transaction request
$ curl -k -H "X-Auth-Token: $token" https://$bmc/xyz/openbmc_project/state/host0
{
"data": {
"AttemptsLeft": 3,
"BootProgress": "xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified",
"CurrentHostState": "xyz.openbmc_project.State.Host.HostState.Running",
"OperatingSystemState": "xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive",
"RequestedHostTransition": "xyz.openbmc_project.State.Host.Transition.On",
"RequestedTransition": "xyz.openbmc_project.State.Host.Transition.On",
"ScheduledTime": 0
},
"message": "200 OK",
"status": "ok"
}
4. Set quested transition to off
# busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.ScheduledHostTransition RequestedTransition \
s "xyz.openbmc_project.State.Host.Transition.Off"
# busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582250580
$ curl -k -H "X-Auth-Token: $token" https://$bmc/xyz/openbmc_project/state/host0
{
"data": {
"AttemptsLeft": 3,
"BootProgress": "xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified",
"CurrentHostState": "xyz.openbmc_project.State.Host.HostState.Off",
"OperatingSystemState": "xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive",
"RequestedHostTransition": "xyz.openbmc_project.State.Host.Transition.Off"
"RequestedTransition": "xyz.openbmc_project.State.Host.Transition.Off",
"ScheduledTime": 0
},
"message": "200 OK",
"status": "ok"
}

Change-Id: Ib9f3a3984005d9187a9b98603ec1598d8992869e
Signed-off-by: Carol Wang <wangkair@cn.ibm.com>

show more ...

4ca6f3f419-Feb-2020 Carol Wang <wangkair@cn.ibm.com>

sched-host-tran: handle with the scheduled time

Add the basic process to handle with the scheduled time

Tested:
1. Scheduled time is 0
# busctl set-property xyz.openbmc_project.State.ScheduledHos

sched-host-tran: handle with the scheduled time

Add the basic process to handle with the scheduled time

Tested:
1. Scheduled time is 0
# busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1
------
Feb 19 08:09:47 witherspoon phosphor-scheduled-host-transition[28263]: \
The function Scheduled Host Transition is disabled.
2. Scheduled time is the past
# busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \
/xyz/openbmc_project/state/host0 \
xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582100042
------
Failed to set property ScheduledTime on interface xyz.openbmc_project.State.\
ScheduledHostTransition: Scheduled time is in the past
Feb 19 08:14:42 witherspoon phosphor-scheduled-host-transition[28263]: \
Scheduled time is earlier than current time. Fail to do host transition.
Feb 19 08:14:42 witherspoon phosphor-scheduled-host-transition[28263]: \
Scheduled time is in the past

Change-Id: I0b6a98dcb6d0e70336bf42fc88a633abf3e64633
Signed-off-by: Carol Wang <wangkair@cn.ibm.com>

show more ...


/openbmc/phosphor-state-manager/README.md
/openbmc/phosphor-state-manager/host_state_manager.cpp
/openbmc/phosphor-state-manager/host_state_manager.hpp
/openbmc/phosphor-state-manager/meson.build
/openbmc/phosphor-state-manager/meson_options.txt
/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
/openbmc/phosphor-state-manager/service_files/meson.build
/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-check@.service
/openbmc/phosphor-state-manager/service_files/phosphor-reset-host-reboot-attempts@.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/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/target_files/meson.build
/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-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-mapper.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
test_scheduled_host_transition.cpp
4640d48e10-Dec-2019 Andrew Geissler <geissonator@yahoo.com>

meson: remove automake legacy files

This concludes the move to meson

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

234a317909-Aug-2019 Andrew Geissler <geissonator@yahoo.com>

sysd_monitor: Monitor and log errors

Note some aspects of the code are non-optimal to allow better unit
testing.

Tested:
- Verified failure detected and correct error created in qemu

Change-Id: I1

sysd_monitor: Monitor and log errors

Note some aspects of the code are non-optimal to allow better unit
testing.

Tested:
- Verified failure detected and correct error created in qemu

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

show more ...

75a2614f09-Aug-2019 Andrew Geissler <geissonator@yahoo.com>

sysd_monitor: Handle default for errors to monitor

If default is input, replace it with the three default errors to monitor
for

Tested:
- Relied on unit test

Change-Id: Ife92e74242d72b322f46f7f08d

sysd_monitor: Handle default for errors to monitor

If default is input, replace it with the three default errors to monitor
for

Tested:
- Relied on unit test

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

show more ...

693eaed002-Aug-2019 Andrew Geissler <geissonator@yahoo.com>

sysd_monitor: Parse json file(s)

Parse the json file(s) into a c++ data object that can be used in later
commits to easily check for monitored targets and log appropriate
errors.

Accept a command l

sysd_monitor: Parse json file(s)

Parse the json file(s) into a c++ data object that can be used in later
commits to easily check for monitored targets and log appropriate
errors.

Accept a command line parameter to input file and call parsing function

Tested:
- Verified 100% code coverage of new parser cpp

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

show more ...