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 - confusing error message on --addrepo failure
Summary: confusing error message on --addrepo failure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: redhat-upgrade-tool
Version: 6.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Bocek
QA Contact: Michal Kovarik
URL:
Whiteboard:
Depends On:
Blocks: 1085023
TreeView+ depends on / blocked
 
Reported: 2014-04-07 13:08 UTC by Ondřej Pták
Modified: 2016-07-28 16:17 UTC (History)
4 users (show)

Fixed In Version: redhat-upgrade-tool-0.7.31-1
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
: 1085023 (view as bug list)
Environment:
Last Closed: 2016-07-28 16:17:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1396 0 normal SHIPPED_LIVE redhat-upgrade-tool bug fix update 2014-10-14 14:18:35 UTC

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.


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