Bug 1213225 - beaker-repo-update is too noisy, impossible to notice if an actual error occurs because of WARNINGs about junk OS major names
Summary: beaker-repo-update is too noisy, impossible to notice if an actual error occu...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: general
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 21.0
Assignee: matt jia
QA Contact: tools-bugs
URL:
Whiteboard:
: 1027517 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-20 05:33 UTC by Dan Callaghan
Modified: 2018-02-06 00:41 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-26 06:17:17 UTC
Embargoed:


Attachments (Terms of Use)

Description Dan Callaghan 2015-04-20 05:33:07 UTC
On a large Beaker installation that has been running for many years there is likely to be a lot of rubbish OS major names that do not really exist. As soon as an OS major has been created (even if the tree is later removed, or fixed to have a different OS major name) beaker-repo-update will try to fetch harness packages for it forevermore. The result is that running beaker-repo-update will produce a large number of WARNINGs like this:

2015-04-20 05:18:46,644 bkr.server.tools.repo_update WARNING Cannot retrieve repository metadata (repomd.xml) for repository: http:--download.lab.bos.redhat.com-beakerrepos-harness-help-. Please verify its path and try again

which make it very difficult to notice if there is an *actual* error (for example, when the upstream repos are missing a package that is supposed to be there).

The best option is probably to skip fetching packages for OS majors which have no existing trees. We could also consider turning these errors back into errors (rather than warnings) with a non-zero exit status.

Comment 1 Dan Callaghan 2015-04-20 05:33:39 UTC
*** Bug 1027517 has been marked as a duplicate of this bug. ***

Comment 2 matt jia 2015-05-19 06:44:02 UTC
On Gerrit:

 http://gerrit.beaker-project.org/#/c/4218/

Comment 5 Dan Callaghan 2015-08-26 06:17:17 UTC
Beaker 21.0 has been released.


Note You need to log in before you can comment on or make changes to this bug.