commit | 1517f5f6781b1e6b258747d4ccb3eb803919f289 | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Mon Oct 14 16:44:42 2019 +0800 |
committer | Lei YU <mine260309@gmail.com> | Tue Nov 05 10:45:04 2019 +0800 |
tree | 38b0da34c041a04ec19575328d1dce86e307756c | |
parent | ffb3653954d9adcb4b871b7c10eedada0ca73c6e [diff] |
Check and sync PSU image when PSU is plugged in When a PSU is plugged out and in, the service shall check the version and do update if it is with an old software. When the PSU is plugged in, the model is not available for a while, so the service subscribe the model property as well, and only create the software object when both present and model properties are set. Tested: With dummy update service, verify on Witherspoon that when PSU is plugged out (by setting "Present" property in inventory), the software object is removed, and when it's pluggd int (by setting "Present" property), the software object is created after the model is got, and is upgraded by a newer image stored in BMC filesystem. Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: Ia7516e5bc9c642158b216036bcddf404157f9204
phosphor-psu-code-mgmt is a service to provide management for PSU code, including:
meson build/ && ninja -C build
meson -Doe-sdk=enabled -Dtests=enabled build/ ninja -C build/ test # Meson skips running the case due to it thinks it's cross compiling # Manually run the tests for t in `find build/test/ -maxdepth 1 -name "test_*"`; do ./$t || break ; done