Bug 1241972 - Clicking on Host/Services returns exception: undefined method `num_cpu' for nil:NilClass
Summary: Clicking on Host/Services returns exception: undefined method `num_cpu' for n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.5.0
Assignee: Shveta
QA Contact: Kyrylo Zvyagintsev
URL:
Whiteboard:
Depends On:
Blocks: 1241987
TreeView+ depends on / blocked
 
Reported: 2015-07-10 14:15 UTC by Dan Clarizio
Modified: 2015-12-08 13:22 UTC (History)
6 users (show)

Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1241987 (view as bug list)
Environment:
Last Closed: 2015-12-08 13:22:19 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Host/service (107.28 KB, image/png)
2015-08-20 14:34 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 0 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 17:58:09 UTC

Description Dan Clarizio 2015-07-10 14:15:23 UTC
Description of problem:
Clicking on a Host's Services raises nil error exception:

[----] I, [2015-07-10T06:56:36.925329 #8086:679990]  INFO -- : Started GET "/host/host_services/1000000000001?db=host" for 127.0.0.1 at 2015-07-10 06:56:36 -0700
[----] I, [2015-07-10T06:56:36.982263 #8086:679990]  INFO -- : Processing by HostController#host_services as HTML
[----] I, [2015-07-10T06:56:36.982472 #8086:679990]  INFO -- :   Parameters: {"db"=>"host", "id"=>"1000000000001"}
[----] F, [2015-07-10T06:56:37.106173 #8086:679990] FATAL -- : Error caught: [NoMethodError] undefined method `num_cpu' for nil:NilClass
/home/dclarizio/dev/manageiq/app/controllers/application_controller.rb:1528:in `set_config'
/home/dclarizio/dev/manageiq/app/controllers/host_controller.rb:14:in `show_association'
/home/dclarizio/dev/manageiq/app/controllers/host_controller.rb:208:in `host_services'

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

How reproducible:
Click on the Services link for a Host

Actual results:
Exception raised

Expected results:
Show the Host's services

Additional info:

Comment 2 CFME Bot 2015-07-10 16:46:44 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/0d14e223c91c681e1343319a5802f3236104754a

commit 0d14e223c91c681e1343319a5802f3236104754a
Author:     Harpreet Kataria <hkataria>
AuthorDate: Fri Jul 10 11:27:50 2015 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Fri Jul 10 11:46:46 2015 -0400

    Fixed code to use local variable instead of @record.
    
    - Added spec test to verify fix.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1241972
    https://bugzilla.redhat.com/show_bug.cgi?id=1241987

 app/controllers/application_controller.rb       |  2 +-
 spec/controllers/application_controller_spec.rb | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

Comment 3 CFME Bot 2015-07-10 18:11:06 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=d8f143cdfc4cb104829998b5220cf94ba703b346

commit d8f143cdfc4cb104829998b5220cf94ba703b346
Author:     Harpreet Kataria <hkataria>
AuthorDate: Fri Jul 10 13:02:38 2015 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Fri Jul 10 13:02:38 2015 -0400

    Fixed code to use local variable instead of @record.
    
    - Added spec test to verify fix.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1241972
    https://bugzilla.redhat.com/show_bug.cgi?id=1241987

 vmdb/app/controllers/application_controller.rb       |  2 +-
 vmdb/spec/controllers/application_controller_spec.rb | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

Comment 4 CFME Bot 2015-07-10 18:11:13 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=5e08de36fea012740e4153dbff41eade9007a463

commit 5e08de36fea012740e4153dbff41eade9007a463
Merge: 0d44f0b d8f143c
Author:     Dan Clarizio <dclarizi>
AuthorDate: Fri Jul 10 14:07:28 2015 -0400
Commit:     Dan Clarizio <dclarizi>
CommitDate: Fri Jul 10 14:07:28 2015 -0400

    Merge branch 'host_services_fix_cherry_pick' into '5.4.z'
    
    Fixed code to use local variable instead of @record.
    
    - Added spec test to verify fix.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1241972
    https://bugzilla.redhat.com/show_bug.cgi?id=1241987
    
    @dclarizio please review, successfully applied patches from upstream cleanly onto 5.4.z
    
    See merge request !172

 vmdb/app/controllers/application_controller.rb       |  2 +-
 vmdb/spec/controllers/application_controller_spec.rb | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

Comment 5 Shveta 2015-08-20 14:34:15 UTC
Created attachment 1065288 [details]
Host/service

upstream_verified on master.20150820103403_01c1acf

Comment 8 errata-xmlrpc 2015-12-08 13:22:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2551


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