Bug 1640304 - [OCP] Cannot Validate Metrics Endpoint for OCP Provider
Summary: [OCP] Cannot Validate Metrics Endpoint for OCP Provider
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.10.0
Assignee: Aparna Karve
QA Contact: juwatts
Red Hat CloudForms Documentation
URL:
Whiteboard:
: 1643401 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-17 20:03 UTC by juwatts
Modified: 2019-02-12 16:51 UTC (History)
13 users (show)

Fixed In Version: 5.10.0.22
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-12 16:51:47 UTC
Category: ---
Cloudforms Team: Container Management
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description juwatts 2018-10-17 20:03:19 UTC
Description of problem:
Unable to validate the metrics endpoint for an OCP provider. 


Version-Release number of selected component (if applicable):
5.10.0.20.20181016163900_fe677b4

How reproducible:
Always

Steps to Reproduce:
1. Navigate to Compute->Containers->Providers
2. Click the Configuration drop down and select "Add a new Containers Provider"
3. Fill out the form, selecting Hawkular for the metrics type. 
4. Fill out the Default endpoint and click validate, validation should be successfull
5. Fill out the Metrics endpoint and click validate

Actual results:
No validation successful message is displayed and the "Add" button is displayed

Expected results:
Validation message is displayed, validation is successful. 

Additional info:
I have also seen in our automation that the success message is not appearing when validating the default endpoint as well.

Comment 2 Dave Johnson 2018-10-17 20:05:05 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 4 Adam Grare 2018-10-18 19:02:59 UTC
Dan it looks like the credential validation is successful and it tries to render a flash message but it doesn't show up on the UI and still says that validation is required:

   103:     def render_validation_result(result, details)
   104:       if result
=> 105:         msg = _("Credential validation was successful")
(byebug) n
=> 111:       render_flash_json(msg, level, :long_alert => true)

Comment 8 Aparna Karve 2018-10-26 19:15:11 UTC
*** Bug 1643401 has been marked as a duplicate of this bug. ***

Comment 9 CFME Bot 2018-10-26 22:09:12 UTC
New commit detected on ManageIQ/manageiq-ui-classic/hammer:

https://github.com/ManageIQ/manageiq-ui-classic/commit/e931e5c6d1926ccdc2330383121fd173b7fdbaa6
commit e931e5c6d1926ccdc2330383121fd173b7fdbaa6
Author:     Harpreet Kataria <hkataria>
AuthorDate: Fri Oct 26 10:04:28 2018 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Fri Oct 26 10:04:28 2018 -0400

    Merge pull request #4836 from AparnaKarve/rename_tab_to_match_current_tab

    Rename tabs in the haml to match current tab in the controller scope

    (cherry picked from commit 020f33c9fc202507c7f66d20bff80714f40e913a)

    https://bugzilla.redhat.com/show_bug.cgi?id=1609735
    https://bugzilla.redhat.com/show_bug.cgi?id=1640304

 app/assets/javascripts/controllers/ems_common/ems_common_form_controller.js | 10 +-
 app/controllers/mixins/ems_common_angular.rb | 1 +
 app/views/layouts/angular/_multi_auth_credentials.html.haml | 12 +-
 spec/javascripts/controllers/ems_common/ems_common_form_controller_spec.js | 45 +
 4 files changed, 58 insertions(+), 10 deletions(-)

Comment 10 juwatts 2018-10-31 20:19:02 UTC
Verified in:
5.10.0.22.20181030184024_26956a0

Successfully added an Openshift container provider with hawkluar metrics to cloudforms/


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