Red Hat Bugzilla – Bug 1084985
confusing error message on --addrepo failure
Last modified: 2016-07-28 12:17:30 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
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...
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
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.
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.
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.
The bug was fixed in redhat-upgrade-tool-0.7.31-1. Closing as CURRENTRELEASE.