Bug 598170
| Summary: | virt-install: unfriendly errors for install url in interactive mode | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Michael S. Tsirkin <mst> |
| Component: | python-virtinst | Assignee: | Cole Robinson <crobinso> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.0 | CC: | dallan, kxiong, mhideo, xen-maint, zpeng |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
virt-install would give the user an unclear error message and exit when given an invalid location to the installation tree. This forced the user to re-enter the installation command. This fix gives the user the appropriate error message and then prompts them for the valid location so the user does not have to re-enter the entire command.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-19 13:45:29 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Michael S. Tsirkin
2010-05-31 16:20:58 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. This issue has been proposed when we are only considering blocker issues in the current Red Hat Enterprise Linux release. It has been denied for the current Red Hat Enterprise Linux release. ** If you would still like this issue considered for the current release, ask your support representative to file as a blocker on your behalf. Otherwise ask that it be considered for the next Red Hat Enterprise Linux release. ** Thanks for the report, we no longer show a traceback for most error messages: http://hg.fedorahosted.org/hg/python-virtinst/rev/1ce01e8c1ea4 Also, improve the URL error: http://hg.fedorahosted.org/hg/python-virtinst/rev/720c89205e84 the problem was that we expect the location to be a directory, so the error was odd. Now you'll get a message like 'the location must be the root directory of an install tree' --prompt still doesn't validate the URL up front though, so that's still a TODO. Fixed upstream: http://hg.fedorahosted.org/hg/python-virtinst/rev/9ef709fe07e2 $ ./virt-install --connect test:///default --prompt --name foo --ram 64 --hvm --nodisks What is the install CD-ROM/ISO or URL? http://ajjdjajdj.com ERROR Invalid install location: Opening URL http://ajjdjajdj.com failed. What is the install CD-ROM/ISO or URL? Fix built in python-virtinst-0.500.5-1.el6 Verified with python-virtinst-0.500.5-1.el6 1.virt-install --connect test:///default --prompt --name foo --ram 64 --hvm --nodisks What is the install CD-ROM/ISO or URL? http://addd.com ERROR Invalid install location: Opening URL http://addd.com failed. 2.virt-install --prompt What is the name of your virtual machine? da How much RAM should be allocated (in megabytes)? 1024 What would you like to use as the disk (file path)? /var/lib/libvirt/images/test.img How large would you like the disk (/var/lib/libvirt/images/test.img) to be (in gigabytes)? 1 What is the install CD-ROM/ISO or URL? http://ddddfdfdfd ERROR Invalid install location: Opening URL http://ddddfdfdfd failed. What is the install CD-ROM/ISO or URL? 3.http://download.devel.redhat.com/rel-eng/latest-RHEL6.0/6/Server/x86_64/os/images/boot.iso ERROR Could not find an installable distribution at 'http://download.devel.redhat.com/rel-eng/latest-RHEL6.0/6/Server/x86_64/os/images/boot.iso' The location must be the root directory of an install tree. Verification is passed. verified this bug with: Linux localhost.localdomain 2.6.32-130.el6.x86_64 #1 SMP Tue Apr 5 19:58:31 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux python-virtinst-0.500.5-3.el6.noarch libvirt-0.8.7-17.el6.x86_64 passed.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
* virt-install would give the user an unclear error message and exit when given an invalid location to the installation tree. This forced the user to re-enter the installation command. This fix gives the user the appropriate error message and then prompts them for the valid location so the user does not have to re-enter the entire command. (BZ#598170)
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1 +1 @@
-* virt-install would give the user an unclear error message and exit when given an invalid location to the installation tree. This forced the user to re-enter the installation command. This fix gives the user the appropriate error message and then prompts them for the valid location so the user does not have to re-enter the entire command. (BZ#598170)+virt-install would give the user an unclear error message and exit when given an invalid location to the installation tree. This forced the user to re-enter the installation command. This fix gives the user the appropriate error message and then prompts them for the valid location so the user does not have to re-enter the entire command.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0636.html |