Bug 1241987

Summary: Clicking on Host/Services returns exception: undefined method `num_cpu' for nil:NilClass
Product: Red Hat CloudForms Management Engine Reporter: Chris Pelland <cpelland>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: cpelland, dajohnso, dclarizi, hkataria, jhardy, jprause, mpovolny, nachandr, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.4.1.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1241972 Environment:
Last Closed: 2015-07-30 13:12:33 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:
Bug Depends On: 1241972    
Bug Blocks:    

Comment 1 CFME Bot 2015-07-10 16:46:47 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 2 CFME Bot 2015-07-10 18:11:09 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 3 CFME Bot 2015-07-10 18:11:16 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 Nandini Chandra 2015-07-20 06:11:57 UTC
Verified in 5.4.1.0

Comment 7 errata-xmlrpc 2015-07-30 13:12:33 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://rhn.redhat.com/errata/RHBA-2015-1511.html