Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1084985

Summary: confusing error message on --addrepo failure
Product: Red Hat Enterprise Linux 6 Reporter: Ondřej Pták <optak>
Component: redhat-upgrade-toolAssignee: Michal Bocek <mbocek>
Status: CLOSED CURRENTRELEASE QA Contact: Michal Kovarik <mkovarik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: mkovarik, ovasik, phracek, ttomecek
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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 16:17:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1085023    

Description Ondřej Pták 2014-04-07 13:08:53 UTC
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 14:05:35 UTC
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 10:26:45 UTC
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 10:28:59 UTC
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 18:38:46 UTC
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 08:08:14 UTC
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 16:17:30 UTC
The bug was fixed in redhat-upgrade-tool-0.7.31-1. Closing as CURRENTRELEASE.