update/cgcs-patch/cgcs-patch
Don Penney d3f8af4f4c Protect against stale repo data in DNF cache
When the patch-agent is notified by the patch-controller of a new
patching operation (patch_op_counter in HELLO is incremented), it will
run a new software query consisting first of running "dnf makecache",
then checking the software repositories for changes. In rare cases,
the metadata returned to dnf when it makes the query could be stale,
resulting in the patch-agent believing the current software is
up-to-date.

In order to protect against this, the patch-agent will now verify the
repository revision id for the updates repo. If the revision id has
not changed when it is reasonable to expect it could have (ie. the
patch_op_counter has increased, indicating the repository may have
been updated), the patch-agent will retry once to allow for any
potential caching to have cleared.

Change-Id: I3a44ed86e16cd9fe67f0b0e763c95a5a7e126cf8
Closes-Bug: 1884094
Signed-off-by: Don Penney <don.penney@windriver.com>
2020-06-22 21:16:35 -04:00
..
cgcs_make_patch Add flake8-bugbear and address warnings 2020-01-16 13:24:24 -05:00
cgcs_patch Protect against stale repo data in DNF cache 2020-06-22 21:16:35 -04: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 Migrate patch-agent to use DNF for swmgmt 2020-01-13 09:20:06 -05:00
pylint_make_patch.rc Cleaning up pylint settings for cgcs patch 2019-12-04 13:58:14 -06: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