Bug 1231029 - An error appeared in the UI when set ISO/OVA url include multiple colon.
Summary: An error appeared in the UI when set ISO/OVA url include multiple colon.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node-plugin-hosted-engine
Version: 3.5.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Ryan Barry
QA Contact: cshao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-12 03:43 UTC by cshao
Modified: 2016-03-09 14:30 UTC (History)
7 users (show)

Fixed In Version: ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-09 14:30:07 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
HE-error.png (69.05 KB, image/png)
2015-06-12 03:43 UTC, cshao
no flags Details
ovirt-node.log (38.22 KB, text/plain)
2015-06-12 03:44 UTC, cshao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0378 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update for RHEV 3.6 2016-03-09 19:06:36 UTC
oVirt gerrit 42394 0 master MERGED Use a better URL validator. RegexValidator adds flags Never

Description cshao 2015-06-12 03:43:44 UTC
Created attachment 1037891 [details]
HE-error.png

Description of problem:
An error appeared in the UI when set ISO/OVA url include multiple colon.


ConnectionError: [Errno -2] Name or service not known
2015-06-11 09:59:13,989    WARNING No widget for path action.setupengine
2015-06-11 09:59:13,990    WARNING No widget for path action.setupengine
2015-06-11 09:59:14,005       INFO Changes were merged successfully
2015-06-11 09:59:14,504      ERROR Downloader thread failed: 
(LocationParseError(...), 'Failed to parse: Failed to parse: test11::')
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/site-packages/ovirt/node/setup/hostedengine/hosted_engine_page.py", 
line 377, in run
   File 
"/usr/lib/python2.7/site-packages/ovirt/node/setup/hostedengine/hosted_engine_page.py", 
line 398, in __run
   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 
319, in get
   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 
288, in request
   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 
383, in send
   File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 
155, in send
   File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 
125, in get_connection
   File "/usr/lib/python2.7/site-packages/urllib3/poolmanager.py", line 
99, in connection_from_url
   File "/usr/lib/python2.7/site-packages/urllib3/util.py", line 145, in 
parse_url
LocationParseError: (LocationParseError(...), 'Failed to parse: Failed 
to parse: test11::')


Version-Release number of selected component (if applicable):
rhev-hypervisor6-6.7-20150609.0
ovirt-node-plugin-hosted-engine-0.2.0-15.0.el6ev.noarch
rhev-hypervisor7-7.1-20150609.0
ovirt-node-plugin-hosted-engine-0.2.0-15.0.el7ev.noarch


How reproducible:
100%


Steps to Reproduce:
1. Install RHEV-H
2. Switch to HE menu
3. File the ISO/OVA URL with multiple colon(e.g. http://cshao::)

Actual results:
An error appeared in the UI when set OVA url include multiple colon

Expected results:
1. It should give more friendly way to provide the info.

Additional info:

Comment 1 cshao 2015-06-12 03:44:32 UTC
Created attachment 1037892 [details]
ovirt-node.log

Comment 3 cshao 2015-10-26 08:00:08 UTC
Test version:
rhev-hypervisor7-7.2-20151025.0.el7ev
ovirt-node-3.3.0-0.18.20151022git82dc52c.el7ev.noarch
ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev.noarch
ovirt-hosted-engine-setup-1.3.0-1.el7ev.noarch
ovirt-hosted-engine-ha-1.3.1-1.el7ev.noarch

Test steps:
1. Install RHEV-H
2. Switch to HE menu
3. File the ISO/OVA URL with multiple colon(e.g. http://cshao::)

Test results:
No error appear in the UI, and pop-up info: "The field must contain an empty string or a valid URL".

So the bug is fixed, change bug status to VERIFIED.

Comment 5 errata-xmlrpc 2016-03-09 14:30:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0378.html


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