Bug 1231029

Summary: An error appeared in the UI when set ISO/OVA url include multiple colon.
Product: Red Hat Enterprise Virtualization Manager Reporter: cshao <cshao>
Component: ovirt-node-plugin-hosted-engineAssignee: Ryan Barry <rbarry>
Status: CLOSED ERRATA QA Contact: cshao <cshao>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.5.3CC: fdeutsch, gklein, huiwa, leiwang, rbarry, yaniwang, ycui
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 14:30:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
HE-error.png
none
ovirt-node.log none

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