Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1084985 - confusing error message on --addrepo failure
confusing error message on --addrepo failure
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: redhat-upgrade-tool (Show other bugs)
6.6
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Michal Bocek
Michal Kovarik
: Extras
Depends On:
Blocks: 1085023
  Show dependency treegraph
 
Reported: 2014-04-07 09:08 EDT by Ondřej Pták
Modified: 2016-07-28 12:17 EDT (History)
4 users (show)

See Also:
Fixed In Version: redhat-upgrade-tool-0.7.31-1
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
: 1085023 (view as bug list)
Environment:
Last Closed: 2016-07-28 12:17:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1396 normal SHIPPED_LIVE redhat-upgrade-tool bug fix update 2014-10-14 10:18:35 EDT

  None (edit)
Description Ondřej Pták 2014-04-07 09:08:53 EDT
Description of problem:
When any rhscl package is installed on system, preupgrade-assistant suggest to add a repo as argument for the redhat-upgrade-tool-cli, which doesn't work:

#redhat-upgrade-tool-cli --network 7.0 --instrepo http://download.eng.brq.redhat.com/rel-eng/latest-RHEL-7/compose/Server/x86_64/os/ --addrepo optional=http://download.eng.brq.redhat.com/rel-eng/latest-RHEL-7/compose/Server-optional/x86_64/os/ --addrepo rhsclupg=http://download.lab.bos.redhat.com/rel-eng/RHSCL-1.1-RHEL-7-RC-1.0/
setting up repos... No upgrade available for the following repos: rhsclupg .treeinfo
Comment 2 Ondrej Vasik 2014-04-07 10:05:35 EDT
One of the issues here is the fact that the provided address is not repository - although I think the error message from redhat-upgrade-tool could be more clear...
Comment 3 Ondřej Pták 2014-04-08 06:26:45 EDT
adding argument "--addrepo rhsclupg=http://download.lab.bos.redhat.com/rel-eng/RHSCL-1.1-RHEL-7-RC-1.0/compose/Server/x86_64/os" works for me
Comment 4 Ondrej Vasik 2014-04-08 06:28:59 EDT
So the issue is with the error messages when provided repo is not a repo file and/or if there is a "conflicting name" used for the additional repository. And traceback when wrong number of arguments is provided.
Comment 5 David Shea 2014-09-18 14:38:46 EDT
Copying a commit from fedup to validate --addrepo so that an argument like --addrepo URL will print:

redhat-upgrade-tool: error: value should be REPOID=[@]URL

and exit, and adding a message "Check that the repo URLs are correct." after the "No upgrade available for..." line.
Comment 7 Michal Kovarik 2014-09-23 04:08:14 EDT
Verified on redhat-upgrade-tool-0.7.32-1.el6. 

~]# redhat-upgrade-tool-cli --network 7.0 --instrepo http://download.eng.brq.redhat.com/rel-eng/latest-RHEL-7/compose/Server/x86_64/os/ --addrepo optional=http://download.eng.brq.redhat.com/rel-eng/latest-RHEL-7/compose/Server-optional/x86_64/os/ --addrepo rhsclupg=http://download.lab.bos.redhat.com/rel-eng/RHSCL-1.1-RHEL-7-RC-1.0/
setting up repos...
No upgrade available for the following repos: rhsclupg
Check that the repo URLs are correct.
Comment 10 Michal Bocek 2016-07-28 12:17:30 EDT
The bug was fixed in redhat-upgrade-tool-0.7.31-1. Closing as CURRENTRELEASE.

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