update/cgcs-patch/cgcs-patch
Don Penney 62a66370ca 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 <don.penney@windriver.com>
2020-11-25 14:47:47 -05:00
..
cgcs_make_patch Fix UNREMOVABLE parsing in make_patch_functions.py 2020-08-17 10:30:07 -04:00
cgcs_patch Add protection against duplicate RPMs 2020-11-25 14:47:47 -05:00
cgcs_patch_id Enable Python3 Compatibility 2019-06-06 10:17:52 -04:00
.coveragerc Add initial unit testing to cgcs-patch 2019-06-27 15:46:43 -04:00
.stestr.conf Add initial unit testing to cgcs-patch 2019-06-27 15:46:43 -04:00
LICENSE StarlingX open source release updates 2018-05-31 07:37:12 -07:00
pylint.rc Ignore pylint W0707 warnings in cgcs-patch 2020-11-04 12:11:41 -05:00
pylint_make_patch.rc Ignore pylint W0707 warnings in cgcs-patch 2020-11-04 12:11:41 -05:00
requirements.txt Add test framework for patch alarm manager 2019-06-28 17:03:00 -04:00
setup.cfg Add initial unit testing to cgcs-patch 2019-06-27 15:46:43 -04:00
setup.py Resolve bashate and pep8 warnings 2018-08-08 19:36:58 -05:00
test-requirements.txt Migrate patch-agent to use DNF for swmgmt 2020-01-13 09:20:06 -05:00
tox.ini Update flake8 to verify patch scripts 2020-01-31 09:40:27 -06:00