Bug 1431642 - Middleware - Add Provider: IPv6 address fails
Summary: Middleware - Add Provider: IPv6 address fails
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: GA
: cfme-future
Assignee: Cainã Costa
QA Contact: Hayk Hovsepyan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-13 14:03 UTC by Hayk Hovsepyan
Modified: 2017-12-05 15:05 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-12 10:49:55 UTC
Category: ---
Cloudforms Team: Middleware
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
validate provider (90.03 KB, image/png)
2017-03-13 14:05 UTC, Hayk Hovsepyan
no flags Details
hawkular services running (64.08 KB, image/png)
2017-03-13 14:06 UTC, Hayk Hovsepyan
no flags Details

Description Hayk Hovsepyan 2017-03-13 14:03:17 UTC
Description of problem:
When adding new Middleware Provider by specifying it's IPv6 address and trying to validate the credentials, it fails with message:
"Credential validation was not successful: Unable to connect to 2620:52:0:1017:21a:4aff:fe10:1767:8080"

Version-Release number of selected component (if applicable):
5.8.0.4.20170307183144_745a3d9 

How reproducible:
always

Steps to Reproduce:
1. Configure and Run Cassandra on IPv6 address.
2. Configure and run Hawkular Services on IPv6 address and connected to C*
3. Verify that Hawkular Services is running on IPv6 address and accepts connections on 8080 port. Checked connection by nmap, curl or telnet tools from CFME machine.
4. Add new Middleware Provider by specifying IPv6 address of Hawkular Services, verify the credentials.
It fails with error message:
"Credential validation was not successful: Unable to connect to 2620:52:0:1017:21a:4aff:fe10:1767:8080"

Actual results:
Fails to connect to Hawkular Services by IPv6 address.

Expected results:
It should be able to connect via IPv6 address.

Additional info:
When specifying hostname of Hawkular Services instead of IPv6 address it works.

Comment 2 Hayk Hovsepyan 2017-03-13 14:05:42 UTC
Created attachment 1262458 [details]
validate provider

Comment 3 Hayk Hovsepyan 2017-03-13 14:06:11 UTC
Created attachment 1262459 [details]
hawkular services running

Comment 5 Heiko W. Rupp 2017-03-14 13:40:32 UTC
Can you retry by putting the IP address into [] as in [::1] ?

Otherwise the parser can't distinguish between IP-address component and port in 2620:52:0:1017:21a:4aff:fe10:1767:8080 as the separator between address components are also colons.

http://[2620:52:0:1017:21a:4aff:fe10:1767]:8080  is valid
http://2620:52:0:1017:21a:4aff:fe10:1767:8080 is invalid

Comment 6 Hayk Hovsepyan 2017-03-14 13:59:24 UTC
It did not work in either ways.
Unable to connect to [2620:52:0:1017:21a:4aff:fe10:1767]:8080

Comment 7 Cainã Costa 2017-03-23 04:43:42 UTC
Tested adding an provider both using "::1", "[::1]" with a Hawkular exposed on ipv6 only, and it worked correctly, on latest upstream master. Can you check again if that's still the case?

Comment 8 Hayk Hovsepyan 2017-03-23 16:48:10 UTC
In fact I am testing MiQ and HawkularServices on different machines, so using IPv6 address [2620:52:0:1017:21a:4aff:fe10:1775]. 
Probably that is the reason that I still get the issue.

Can you try to reproduce on separate machines?

Comment 12 Hayk Hovsepyan 2017-04-12 10:49:55 UTC
Thank you Caina for your work.
The problem was in network configuration, closing this BZ.


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