Bug #24270
closedEnabled repo report saves cache even if remote server error occurs, resulting in invalid errata
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1594948
Description of problem:
The enabled-repos-report, which is run on every yum transaction, will save the report in a cache file so to not re-submit the same information multiple times. It appears that this cache gets saved regardless of whether the report upload was successful or not.
If an error occurs, the cache would be saved, and it would never re-attempt to upload the report unless something actually changed.
Version-Release number of selected component (if applicable):
3.4.z
How reproducible:
intermittent (with some difficulty).
Steps to Reproduce:
1. Enable/disable a repo on a client with sub-man repos
2. Cause the enabled-repos-report to fail somehow
Actual results:
Note that the cache file is updated: /var/cache/katello-agent/enabled_repos.json
Expected results:
Cache is not updated, report is resubmitted with next yum command.
Additional info:
Updated by Andrew Kofink over 6 years ago
- Subject changed from Enabled repo report saves cache even if remote server error occurs, resulting in invalid errata to Enabled repo report saves cache even if remote server error occurs, resulting in invalid errata
This should go on 3.7, not necessarily GA.
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Andrew Kofink
- Pull request https://github.com/Katello/katello-host-tools/pull/68 added
Updated by Andrew Kofink over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-host-tools|95a7de9c6f7165b024cf2c38cf0b1824dd002e64.