Touch .sysinv_reported file at end of inventory audit
Currently, the /var/run/sysinv/.sysinv_reported file is touched on
report_to_conductor method, which is called during agent_audit
periodic task.
However, this will only take effect at the second execution of audit,
since the _inventory_reported set is empty when report_to_conductor
method is called at the first time.
This change includes a touch to .sysinv_reported file at the end of
agent_audit.
TEST PLAN:
PASS: AIO-SX: Manually change the source code with this change,
restart sysinv services and verify that .sysinv_reported
file is created at the end of first agent audit.
PASS: AIO-SX: Bootstrap and host-unlock
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/878936 /opendev. org/starlingx/ config/ commit/ 3e5d259d569b8a1 ab9df230301eb7a 0554b85b42
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 3e5d259d569b8a1 ab9df230301eb7a 0554b85b42
Author: Alyson Deives Pereira <email address hidden>
Date: Wed Mar 29 15:47:05 2023 -0300
Touch .sysinv_reported file at end of inventory audit
Currently, the /var/run/ sysinv/ .sysinv_ reported file is touched on to_conductor method, which is called during agent_audit
report_
periodic task.
However, this will only take effect at the second execution of audit,
since the _inventory_reported set is empty when report_to_conductor
method is called at the first time.
This change includes a touch to .sysinv_reported file at the end of
agent_audit.
TEST PLAN:
PASS: AIO-SX: Manually change the source code with this change,
restart sysinv services and verify that .sysinv_reported
file is created at the end of first agent audit.
PASS: AIO-SX: Bootstrap and host-unlock
Closes-Bug: 2013234
Signed-off-by: Alyson Deives Pereira <email address hidden> d1132e768d589da c1965cb6c84
Change-Id: Id9b3eb4bed1963