Bug 1250669

Summary: Upgraded globaldb to 5.4 error when selecting VM's Error caught: [NoMethodError] undefined method `base_class' for NilClass:Class
Product: Red Hat CloudForms Management Engine Reporter: Jared Deubel <jdeubel>
Component: ApplianceAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Krocil <jkrocil>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: abellott, gtanzill, hkataria, jdeubel, jhardy, jocarter, mfeifer, mpovolny, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-24 14:23:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jared Deubel 2015-08-05 18:01:03 UTC
Description of problem:

In preparation for upgrading to CF 5.4, upgraded our Global DB. All appears to be functioning correctly, but when I go to infrastructure -> Virtual machines. I get the following error: 

 Error text:
======================================================================
undefined method `base_class' for NilClass:Class [vm_infra/explorer]

Hide Section - Tags
======================================================================

[----] I, [2015-08-04T15:09:29.723027 #2591:d01eac]  INFO -- : Started GET "/vm_infra/explorer" for 152.144.161.11 at 2015-08-04 15:09:29 +0100
[----] I, [2015-08-04T15:09:29.734489 #2591:d01eac]  INFO -- : Processing by VmInfraController#explorer as HTML
[----] F, [2015-08-04T15:09:41.128655 #2591:d01eac] FATAL -- : Error caught: [NoMethodError] undefined method `base_class' for NilClass:Class
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:100:in `block in sort_tree'
/var/www/miq/lib/util/extensions/miq-hash.rb:14:in `each'
/var/www/miq/lib/util/extensions/miq-hash.rb:14:in `sort_by'
/var/www/miq/lib/util/extensions/miq-hash.rb:14:in `sort_by!'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:98:in `sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:95:in `block in sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `each'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:95:in `block in sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `each'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:95:in `block in sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `each'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:95:in `block in sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `each'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:95:in `block in sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `each'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:95:in `block in sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `each'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:95:in `block in sort_tree'
/var/www/miq/vmdb/app/presenters/tree_builder_vms_and_templates.rb:94:in `each



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

How reproducible:


Steps to Reproduce:
1. Select Infra-> Virtual Machines
2. 
3.

Actual results:
Get unexpected error

Expected results:
Navigate to VM screen without any problems

Additional info:

Comment 11 Josh Carter 2016-06-21 17:23:47 UTC
*** Bug 1331034 has been marked as a duplicate of this bug. ***