Bug 1375699

Summary: provider fails to validate with IPv6 interface
Product: Red Hat CloudForms Management Engine Reporter: Dave Johnson <dajohnso>
Component: UI - OPSAssignee: Aparna Karve <akarve>
Status: CLOSED CURRENTRELEASE QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: cpelland, dajohnso, gblomqui, hkataria, jfrey, jhardy, mpovolny, mshriver, obarenbo, psavage, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ipv6
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1380107 1382774 (view as bug list) Environment:
Last Closed: 2017-06-12 17:45:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1380107, 1382774    
Attachments:
Description Flags
add provider success none

Description Dave Johnson 2016-09-13 18:34:59 UTC
Description of problem:
===========================
Running through some ipv6 scenarios, we found that the provider validate button fails to ungrey when trying to validate a ipv6 defined provider (hostname/ip is set to IPv6).

Currently this was tested against a vmware vcenter provider running on IPv6.

It should also be noted that in order for this to work, we have to have a multi-homed appliance straddling both IPv4 and IPv6 networks.

Comment 2 Dave Johnson 2016-09-13 21:25:50 UTC
Created attachment 1200633 [details]
add provider success

validate seemed to work for both add and edit, we need to retest this

Comment 3 Dave Johnson 2016-09-13 21:28:21 UTC
Pete, see the screenshot, validate worked for me for both and and edit provider credentials so I am not sure we have this one right.  There was some question around if this was related to an appliance with only an ipv6 interface, can you confirm if this issue is valid and potentially add a new issue if evmserverd fails to start when an appliance tries with ipv6 only interface.

Comment 4 Pete Savage 2016-09-14 07:18:36 UTC
But you are accessing the appliance via IPv4, that is the situation where it works, if you access it via it's IPv6 address, you can't validate then.

Comment 6 Adam Grare 2016-09-15 15:26:25 UTC
Dave/Pete, just to clarify; validating credentials to a vCenter with an ipv6 address works if you connect to the cfme appliance with an ipv4 address?

Comment 7 Dave Johnson 2016-09-15 23:17:58 UTC
Adam, yeah, that is right, when logged into the ui with ipv4, you can validate the ipv6 address of the provider, if you use the ipv6 address of the cfme appliance for the web login, clicking validate doesn't seem to do anything.

And yes, we do have the environment if you want to access it, ping me (dajo) or psav

Comment 8 Adam Grare 2016-09-16 14:25:55 UTC
Using the 'Authentication/Recheck Authentication Status' button from the provider summary page works and auth check succeeds.  Inventory refresh also completes successfully.

Since it is just the 'Validate' button from the edit/new provider page this sounds like it could be a UI issue.

Comment 15 CFME Bot 2016-09-27 21:30:56 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/41b9d4417e29a1da1ed07e85216d2700c69c1d18

commit 41b9d4417e29a1da1ed07e85216d2700c69c1d18
Author:     Aparna Karve <akarve>
AuthorDate: Fri Sep 23 16:34:02 2016 -0700
Commit:     Aparna Karve <akarve>
CommitDate: Fri Sep 23 16:34:02 2016 -0700

    Use url instead of form.action
    
    form.action returns a url with protocol and domain name/ip address
    In case of an ipv6 address like [fc00:beef::7], miqJqueryRequest
    fails to execute
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1375699

 app/assets/javascripts/miq_application.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 17 CFME Bot 2016-09-29 17:31:00 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/97087561a0ef7cb2f7280b634ca6a31cad762553

commit 97087561a0ef7cb2f7280b634ca6a31cad762553
Author:     Aparna Karve <akarve>
AuthorDate: Thu Sep 29 06:54:20 2016 -0700
Commit:     Aparna Karve <akarve>
CommitDate: Thu Sep 29 06:55:55 2016 -0700

    spec for actionUrl
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1375699

 .../controllers/ems_common/ems_common_form_controller_spec.js     | 8 ++++++++
 1 file changed, 8 insertions(+)

Comment 19 Mike Shriver 2017-04-06 12:19:30 UTC
Verified in CFME 5.8.0.8-alpha1 build

An IPv6 appliance, accessed via the IPv6 address, can add and validate providers specified via IPv6 addresses.