Bug 1084985
| Summary: | confusing error message on --addrepo failure | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Ondřej Pták <optak> | |
| Component: | redhat-upgrade-tool | Assignee: | Michal Bocek <mbocek> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Michal Kovarik <mkovarik> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.6 | CC: | mkovarik, ovasik, phracek, ttomecek | |
| Target Milestone: | rc | Keywords: | 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
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. |