Comment 3 for bug 1904928

Revision history for this message
Don Penney (dpenney) wrote :

Reviewed: https://review.opendev.org/763435
Committed: https://opendev.org/starlingx/update/commit/62a66370cac70a62f827fedfc8b76284fde006d3
Submitter: Zuul
Branch: master

commit 62a66370cac70a62f827fedfc8b76284fde006d3
Author: Don Penney <email address hidden>
Date: Thu Nov 19 10:41:27 2020 -0500

    Add protection against duplicate RPMs

    If a cold reboot occurs in the middle of patch installation, the
    system can be left in a state where the patch-agent is unable to
    perform its operations properly. The RPM database can be left with
    duplicate RPMs due to the incomplete transaction, which can in turn
    lead to DNF update installation issues.

    This update adds detection of duplicate RPMs to the patch-agent to
    avoid attempting installation until the system is recovered.

    Additionally, protection is added to the sw-patch init to treat
    multiple reboot patch installations as an error, to avoid boot loops.

    Closes-Bug: 1904928
    Change-Id: Ia06a6f669c45398d7956f2ac2caa76c447bc1b16
    Signed-off-by: Don Penney <email address hidden>