Comment 2 for bug 2013234

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/878936
Committed: https://opendev.org/starlingx/config/commit/3e5d259d569b8a1ab9df230301eb7a0554b85b42
Submitter: "Zuul (22348)"
Branch: master

commit 3e5d259d569b8a1ab9df230301eb7a0554b85b42
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
    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

    Closes-Bug: 2013234

    Signed-off-by: Alyson Deives Pereira <email address hidden>
    Change-Id: Id9b3eb4bed1963d1132e768d589dac1965cb6c84