Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1241972 - Clicking on Host/Services returns exception: undefined method `num_cpu' for nil:NilClass
Clicking on Host/Services returns exception: undefined method `num_cpu' for n...
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
5.4.0
Unspecified Unspecified
high Severity high
: GA
: 5.5.0
Assigned To: Shveta
Kyrylo Zvyagintsev
: ZStream
Depends On:
Blocks: 1241987
  Show dependency treegraph
 
Reported: 2015-07-10 10:15 EDT by Dan Clarizio
Modified: 2015-12-08 08:22 EST (History)
6 users (show)

See Also:
Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1241987 (view as bug list)
Environment:
Last Closed: 2015-12-08 08:22:19 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 12:58:09 EST

  None (edit)
Description Dan Clarizio 2015-07-10 10:15:23 EDT
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 12:46:44 EDT
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/0d14e223c91c681e1343319a5802f3236104754a

commit 0d14e223c91c681e1343319a5802f3236104754a
Author:     Harpreet Kataria <hkataria@redhat.com>
AuthorDate: Fri Jul 10 11:27:50 2015 -0400
Commit:     Harpreet Kataria <hkataria@redhat.com>
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 14:11:06 EDT
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@redhat.com>
AuthorDate: Fri Jul 10 13:02:38 2015 -0400
Commit:     Harpreet Kataria <hkataria@redhat.com>
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 14:11:13 EDT
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@redhat.com>
AuthorDate: Fri Jul 10 14:07:28 2015 -0400
Commit:     Dan Clarizio <dclarizi@redhat.com>
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 10:34:15 EDT
Created attachment 1065288 [details]
Host/service

upstream_verified on master.20150820103403_01c1acf
Comment 8 errata-xmlrpc 2015-12-08 08:22:19 EST
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.