update/cgcs-patch/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
..
api Add flake8-bugbear and address warnings 2020-01-16 13:24:24 -05:00
authapi Fix zuul tox flake8 failures from newer version of hacking 2019-12-16 09:56:09 -06:00
templates cgcs-patch: fix permissions 2019-06-19 12:26:16 -07:00
tests Migrate patch-agent to use DNF for swmgmt 2020-01-13 09:20:06 -05:00
__init__.py Resolve bashate and pep8 warnings 2018-08-08 19:36:58 -05:00
app.py Add pylint support 2018-08-24 09:19:44 -05:00
base.py Clean up pylint W1201 logging-not-lazy in cgcs-patch 2019-12-23 14:51:20 -05:00
certificates.py Resolve bashate and pep8 warnings 2018-08-08 19:36:58 -05:00
config.py patching service unicast messaging for loopback interface 2019-05-30 22:51:17 -04:00
constants.py Introduce patch apply/remove semantic support 2019-10-02 16:59:53 -04:00
exceptions.py Introduce patch apply/remove semantic support 2019-10-02 16:59:53 -04:00
messages.py Clean up pylint W1201 logging-not-lazy in cgcs-patch 2019-12-23 14:51:20 -05:00
patch_agent.py Add protection against duplicate RPMs 2020-11-25 14:47:47 -05:00
patch_client.py Merge "Add flake8-bugbear and address warnings" 2020-01-17 18:32:50 +00:00
patch_controller.py Add protection against duplicate RPMs 2020-11-25 14:47:47 -05:00
patch_functions.py Add flake8-bugbear and address warnings 2020-01-16 13:24:24 -05:00
patch_signing.py Cleanup Tox multiple imports per line 2019-02-07 13:27:40 -06:00
patch_verify.py Enable Unused Variable 2019-07-19 10:28:00 -04:00
utils.py Add test coverage for cgcs-patch/utils.py 2019-06-28 00:46:14 -04:00