Gustavo Herzmann 86d3e8632d Rework IPMI SEL monitoring to remove delays during enrollment
This commit updates the IPMI SEL monitoring script and the
99-completion-event enrollment script to eliminate the required delays.
The monitoring script now supports a parameter to retrieve the last SEL
event ID and another to specify the initial ID to use during
monitoring.

With these changes, the playbook can determine the initial ID before
mounting the seed ISO and pass it to the monitoring task, removing the
need to sleep between each enrollment stage.

Test Plan:
01. PASS - Run subcloud enrollment and verify that the custom
    cloud-init complete IPMI SEL event is sent and that the enroll-init
    completes successfully.
02. PASS - Add a failing custom script before 99-completion-event,
    verify the completion script does not execute due to
    run-parts --exit-on-error.
03. PASS - Set ipmi_sel_event_monitoring to false inside the install
    values and run the subcloud enrollment. Verify that the
    99-completion-event script is not created.
04. PASS - Run subcloud enrollment and verify that the last event is
    successfully obtained, and the consequent events are received
    correctly.

Story: 2011455
Task: 52656

Change-Id: I14917188623dc93ceefa3a77cdd1ee4f8b17ca9d
Signed-off-by: Gustavo Herzmann <gustavo.herzmann@windriver.com>
2025-08-20 17:48:28 -03:00
2019-04-19 19:52:44 +00:00
2018-08-07 11:51:21 -04:00
2022-11-21 16:58:49 +00:00
2019-03-15 10:56:03 -05:00
2024-06-25 14:49:42 -03:00
Description
StarlingX Distributed Cloud
38 MiB
Languages
Python 95.1%
Shell 4.7%
Makefile 0.2%