Project

General

Profile

Actions

Bug #24270

closed

Enabled repo report saves cache even if remote server error occurs, resulting in invalid errata

Added by Andrew Kofink almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Errata Management
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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:

Actions

Also available in: Atom PDF