Bug 1519382

Summary: From the dashboard of a container provider, selecting "Containers" causes a 500 error and the page fails to load.
Product: Red Hat CloudForms Management Engine Reporter: Robb Manes <rmanes>
Component: UI - OPSAssignee: Nimrod Shneor <nshneor>
Status: CLOSED CURRENTRELEASE QA Contact: Tony Khamis <tkhamis>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, epacific, erjones, hkataria, jhardy, mhradil, mpovolny, obarenbo, rmanes
Target Milestone: GAKeywords: TestOnly
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1520618 (view as bug list) Environment:
Last Closed: 2018-06-21 20:33:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1520618    

Description Robb Manes 2017-11-30 16:32:03 UTC
Description of problem:
Using CFME 4.6, navigating to a container provider and selecting "Containers" produces a 500 error in the UI.

The URL that reproduces this issue is https://example-cfme-appliance/ems_container/1?display=containers

And the 500 reported is:

Server Error ($http)
URL /ems_container/report_data
Status 500 Internal Server Error
Content-Type text/html; charset=utf-8
Data undefined method `titleize&#39; for nil:NilClass [ems_container/report_data]

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

How reproducible:
Every time, verified with multiple container providers and two appliances on 5.9.0.11

Steps to Reproduce:
1. Add a container provider
2. Navigate to Compute=>Containers=>Providers
3. Select a container provider
4. Select "Containers" from the dashboard view
5. Experience a 500 error

Actual results:
UI fails to load the page with a 500 error

Expected results:
UI should not fail, should not return 500 error.

Comment 2 Robb Manes 2017-11-30 16:37:27 UTC
This error continues, actually, if you also navigate to https://example-cfme/container/show_list via Compute=>Containers=>Containers with the same error:

URL /container/report_data
Status 500 Internal Server Error
Content-Type text/html; charset=utf-8
Data undefined method `titleize&#39; for nil:NilClass [container/report_data]

Comment 3 Nimrod Shneor 2017-12-04 11:29:53 UTC
Just for me to be able to reproduce - how many containers do you have running in those environments?

Comment 4 Nimrod Shneor 2017-12-04 14:20:32 UTC
Please provide a full backtrace of the error..

Comment 6 Nimrod Shneor 2017-12-04 15:55:34 UTC
PR: https://github.com/ManageIQ/manageiq-ui-classic/pull/2919

Comment 8 Robb Manes 2018-01-08 13:14:26 UTC
(In reply to Nimrod Shneor from comment #3)
> Just for me to be able to reproduce - how many containers do you have
> running in those environments?

I had only one pod running in my openshift environment at the time.(In reply to Nimrod Shneor from comment #4)
> Please provide a full backtrace of the error..

I strangely had no backtrace unfortunately - not in evm.log or production.log.  I've since torn down the environment but can stand it back up and try to reproduce if you would like.  Thanks!

Comment 9 Nimrod Shneor 2018-01-08 13:28:11 UTC
I have been able to find the bug (see Comment #6) - Thanks anyways!

Comment 11 Tony Khamis 2018-07-03 14:03:15 UTC
Verified on version : 5.10.0.2.20180626170006_40dc459