Bug 1290788 - undefined method `id' for nil:NilClass when trying to display all containers
undefined method `id' for nil:NilClass when trying to display all containers
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
Unspecified Unspecified
high Severity high
: GA
: 5.6.0
Assigned To: Daniel Korn
Avi Tal
Depends On:
Blocks: 1295496
  Show dependency treegraph
Reported: 2015-12-11 08:11 EST by Federico Simoncelli
Modified: 2016-04-22 01:00 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1295496 (view as bug list)
Last Closed: 2016-01-12 14:17:14 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
screenshot.png (119.92 KB, image/png)
2015-12-11 08:11 EST, Federico Simoncelli
no flags Details
production.log (16.56 KB, text/plain)
2015-12-11 08:16 EST, Federico Simoncelli
no flags Details

  None (edit)
Description Federico Simoncelli 2015-12-11 08:11:56 EST
Created attachment 1104649 [details]

Description of problem:
Unknown failure when trying to display all containers.

Logs and screenshot in attachment.

How reproducible:

Steps to Reproduce:
1. Unknown, but it's possible that is related to displaying containers during refreshes (containers removed)

Actual results:
A fatal error happens when trying to display all containers.

Expected results:
It should be possible to list all containers.

Additional info:
From the log it seems that a provider refresh was issued:

[----] I, [2015-12-05T15:22:31.310196 #14031:45798c]  INFO -- : Started POST "/ems_container/button/1?pressed=ems_container_refresh" for at 2015-12-05 15:22:31 -0500

and right after that navigating to the container explorer (GET "/container/explorer"):

[----] I, [2015-12-05T15:22:36.109044 #14031:45798c]  INFO -- : Started GET "/container/explorer" for at 2015-12-05 15:22:36 -0500
[----] I, [2015-12-05T15:22:36.110139 #14031:45798c]  INFO -- : Processing by ContainerController#explorer as HTML
[----] I, [2015-12-05T15:22:36.165944 #14031:45798c]  INFO -- : Rendered layouts/_flash_msg.html.haml (0.0ms)
[----] I, [2015-12-05T15:22:36.169932 #14031:45798c]  INFO -- : Rendered layouts/_perf_options.html.haml (3.8ms)
[----] I, [2015-12-05T15:22:36.170026 #14031:45798c]  INFO -- : Rendered layouts/_performance.html.haml (4.2ms)
[----] I, [2015-12-05T15:22:36.170078 #14031:45798c]  INFO -- : Rendered container/explorer.html.haml within layouts/application (4.4ms)
[----] F, [2015-12-05T15:22:36.170314 #14031:45798c] FATAL -- : Error caught: [NoMethodError] undefined method `id' for nil:NilClass
/var/www/miq/vmdb/app/views/layouts/_perf_options.html.haml:1:in `_app_views_layouts__perf_options_html_haml__1343843333716389368_145820160'

(more logs in attachment)

triggered calling _perf_options.html.haml probably because of bug 1286247, fixed with:


I think that such fix can alleviate this bug but we should make sure that if the @record is nil (current container, or any other entity, is deleted all the possible views are not crashing)
Comment 2 Federico Simoncelli 2015-12-11 08:16 EST
Created attachment 1104650 [details]
Comment 3 Daniel Korn 2016-01-11 07:39:29 EST
I can't reproduce the failure. 
Might caused by the container controller refactor or different change related to containers Timelines/Utilization, if that's the case it should be OK.

Federico, Is there something you want me to do with this bug?
Comment 4 Federico Simoncelli 2016-01-11 10:19:39 EST
(In reply to Daniel Korn from comment #3)
> Federico, Is there something you want me to do with this bug?

Let's wait and see if it reproduces (as we don't have clear steps to trigger this and check if it's fixed or not).
Comment 5 Dave Johnson 2016-01-12 14:17:14 EST
Closing this until we see it again... if so, please reopen

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