Red Hat Bugzilla – Bug 864034
Grinder fails to report back to pulp about failed sync of a package out of entire repository
Last modified: 2013-09-09 12:34:14 EDT
+++ This bug was initially created as a clone of Bug #861513 +++
Description of problem:
While verifying https://bugzilla.redhat.com/show_bug.cgi?id=791252, I followed the steps mentioned in the linked BZ (https://bugzilla.redhat.com/show_bug.cgi?id=767281) and moved a package from the custom repository as my sync was taking place. Grinder log shows a WARNING when it could not get to the package that got removed, but otherwise, the repository was synced and the web ui displayed a successful message. Katello seems to listen to pulp errors only, and as grinder does not pass this warning back to pulp, Katello cannot report that even though the sync process completed, there were missing packages.
The solution may be to make pulp aware of this case so that Katello can handle it properly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a repository with a good number of packages
2. Sync it and during the process, remove one or more packages from the repository
3. See more details in the following BZ: https://bugzilla.redhat.com/show_bug.cgi?id=767281
--- Additional comment from firstname.lastname@example.org on 2012-09-28 17:54:12 EDT ---
Since this issue was entered in bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
hmm reading through the referenced bug(767281), I assume we're talking about the retry warning from comment https://bugzilla.redhat.com/show_bug.cgi?id=767281#c1 . The retry warning is legitimate as the job of that thread to download the removed package is done and there are no more retries left. If you notice, after the retry warning, we show a 404 warning. Even though its logged as a warning in the grinder.log, the fetch call returns an error here
LOG.warn("ERROR: Response = %s fetching %s." % (status, fetchURL))
return (BaseFetch.STATUS_ERROR, "HTTP status code of %s received for %s" % (status, fetchURL))
Did you guys look at the sync report? So from what i see the error should be in the sync report. Katello should look at the report and determine how they like to present this to the end user.
After some investigation, this issue is a bug in the way Katello is handling pulp responses after a sync and is therefore not a pulp issue. See https://bugzilla.redhat.com/show_bug.cgi?id=861513 for further information and resolution.