Bug 1238485 - undefined method error raised when viewing hosts
Summary: undefined method error raised when viewing hosts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.3.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.5.0
Assignee: Jason Frey
QA Contact: Kyrylo Zvyagintsev
URL:
Whiteboard:
Depends On:
Blocks: 1240384 1240387
TreeView+ depends on / blocked
 
Reported: 2015-07-02 00:28 UTC by Sean Myers
Modified: 2015-12-08 13:21 UTC (History)
11 users (show)

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


Attachments (Terms of Use)
production.log traceback (11.34 KB, text/plain)
2015-07-02 00:28 UTC, Sean Myers
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 Sean Myers 2015-07-02 00:28:05 UTC
Created attachment 1045271 [details]
production.log traceback

Description of problem:

undefined method `num_cpu' for #<HostVmwareEsx:0x000000deadbeef> [host/show]

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

How reproducible:
Assuming 100%

Steps to Reproduce:
1. Add a vsphere provider
2. Try to view one of it's hosts
3. Explode

Actual results:
undefined method error


Expected results:
view the host details page

Additional info:
- Regression from 5.3.4
- relevant snippet of production.log attached
- apologies if the sev/prio is high

Comment 2 Nandini Chandra 2015-07-02 05:58:52 UTC
I see the same error while viewing RHEV hosts as well.

Comment 3 Jason Frey 2015-07-02 21:26:46 UTC
Upstream PR fix in https://github.com/ManageIQ/manageiq/pull/3346

Comment 4 CFME Bot 2015-07-06 14:26:14 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3f9437600fe3dcfaddee5b1266845818269176aa

commit 3f9437600fe3dcfaddee5b1266845818269176aa
Author:     Jason Frey <jfrey>
AuthorDate: Thu Jul 2 17:11:06 2015 -0400
Commit:     Jason Frey <jfrey>
CommitDate: Thu Jul 2 17:11:32 2015 -0400

    Fix issue where UI expects cpu methods on a Host.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1238485

 vmdb/app/models/host.rb                       | 12 ++++++++++++
 vmdb/spec/controllers/host_controller_spec.rb | 16 ++++++++++++++++
 2 files changed, 28 insertions(+)

Comment 5 CFME Bot 2015-07-06 16:12:36 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=3bb43ef1e7c11de8bb21384950fd1aa70ae2a7ae

commit 3bb43ef1e7c11de8bb21384950fd1aa70ae2a7ae
Author:     Jason Frey <jfrey>
AuthorDate: Thu Jul 2 17:11:06 2015 -0400
Commit:     Jason Frey <jfrey>
CommitDate: Mon Jul 6 11:23:17 2015 -0400

    Fix issue where UI expects cpu methods on a Host.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1238485

 vmdb/app/models/host.rb                       | 12 ++++++++++++
 vmdb/spec/controllers/host_controller_spec.rb | 16 ++++++++++++++++
 2 files changed, 28 insertions(+)

Comment 6 CFME Bot 2015-07-06 16:12:40 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=dc8228bb07e1b3fc650488d8207c3e1221955182

commit dc8228bb07e1b3fc650488d8207c3e1221955182
Merge: 205282c 3bb43ef
Author:     Dan Clarizio <dclarizi>
AuthorDate: Mon Jul 6 12:08:25 2015 -0400
Commit:     Dan Clarizio <dclarizi>
CommitDate: Mon Jul 6 12:08:25 2015 -0400

    Merge branch '5.4.z_fix_host_num_cpu' into '5.4.z'
    
    5.4.z: Fix issue where UI expects cpu methods on a Host.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1238485
    
    Clean cherry pick of only the [second commit](https://github.com/Fryguy/manageiq/commit/3f9437600fe3dcfaddee5b1266845818269176aa) from upstream PR https://github.com/ManageIQ/manageiq/pull/3346
    
    @dclarizi Please review.
    
    See merge request !154

 vmdb/app/models/host.rb                       | 12 ++++++++++++
 vmdb/spec/controllers/host_controller_spec.rb | 16 ++++++++++++++++
 2 files changed, 28 insertions(+)

Comment 7 CFME Bot 2015-07-06 16:12:44 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=302f37d9ab0a1f969158c9c2b16b7c6fb3752e4b

commit 302f37d9ab0a1f969158c9c2b16b7c6fb3752e4b
Author:     Jason Frey <jfrey>
AuthorDate: Thu Jul 2 17:11:06 2015 -0400
Commit:     Jason Frey <jfrey>
CommitDate: Mon Jul 6 11:59:21 2015 -0400

    Fix issue where UI expects cpu methods on a Host.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1238485
    
    Conflicts:
    	vmdb/spec/controllers/host_controller_spec.rb

 vmdb/app/models/host.rb                       | 12 ++++++++++++
 vmdb/spec/controllers/host_controller_spec.rb | 16 ++++++++++++++++
 2 files changed, 28 insertions(+)

Comment 8 CFME Bot 2015-07-06 16:12:48 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=2ba67db0aedecc484cc235ab6a855981d7b05e34

commit 2ba67db0aedecc484cc235ab6a855981d7b05e34
Merge: f2d466f 302f37d
Author:     Dan Clarizio <dclarizi>
AuthorDate: Mon Jul 6 12:10:27 2015 -0400
Commit:     Dan Clarizio <dclarizi>
CommitDate: Mon Jul 6 12:10:27 2015 -0400

    Merge branch '5.3.z_fix_host_num_cpu' into '5.3.z'
    
    5.3.z: Fix issue where UI expects cpu methods on a Host.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1238485
    
    Conflicts:
    	vmdb/spec/controllers/host_controller_spec.rb
    
    Cherry pick of only the [second commit](https://github.com/Fryguy/manageiq/commit/3f9437600fe3dcfaddee5b1266845818269176aa) from upstream PR https://github.com/ManageIQ/manageiq/pull/3346.
    
    The conflict was because the nearby spec didn't exist, so easy to fix.
    
    @dclarizi Please review.
    
    See merge request !155

 vmdb/app/models/host.rb                       | 12 ++++++++++++
 vmdb/spec/controllers/host_controller_spec.rb | 16 ++++++++++++++++
 2 files changed, 28 insertions(+)

Comment 9 CFME Bot 2015-07-06 21:45:52 UTC
New commit detected on cfme/5.3.5:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=6951c56143ccbdd52e10f581e2d107f46378c43c

commit 6951c56143ccbdd52e10f581e2d107f46378c43c
Author:     Jason Frey <jfrey>
AuthorDate: Thu Jul 2 17:11:06 2015 -0400
Commit:     Jason Frey <jfrey>
CommitDate: Mon Jul 6 14:36:06 2015 -0400

    Fix issue where UI expects cpu methods on a Host.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1238485
    
    Conflicts:
    	vmdb/spec/controllers/host_controller_spec.rb

 vmdb/app/models/host.rb                       | 12 ++++++++++++
 vmdb/spec/controllers/host_controller_spec.rb | 16 ++++++++++++++++
 2 files changed, 28 insertions(+)

Comment 10 CFME Bot 2015-07-06 21:46:01 UTC
New commit detected on cfme/5.3.5:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=e8bf359754d7753ba92e376c84df408ca1931a7f

commit e8bf359754d7753ba92e376c84df408ca1931a7f
Merge: 5515226 6951c56
Author:     Dan Clarizio <dclarizi>
AuthorDate: Mon Jul 6 15:46:16 2015 -0400
Commit:     Dan Clarizio <dclarizi>
CommitDate: Mon Jul 6 15:46:16 2015 -0400

    Merge branch '5.3.5_fix_host_num_cpu' into '5.3.5'
    
    5.3.5: Fix issue where UI expects cpu methods on a Host.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1238485
    
    Cherry pick of only the second commit from upstream PR https://github.com/ManageIQ/manageiq/pull/3346.
    
    @dclarizi Please review.  I forgot we were mid release on 5.3, so have to cherry-pick here as well since it's a blocker.
    
    See merge request !157

 vmdb/app/models/host.rb                       | 12 ++++++++++++
 vmdb/spec/controllers/host_controller_spec.rb | 16 ++++++++++++++++
 2 files changed, 28 insertions(+)

Comment 13 errata-xmlrpc 2015-12-08 13:21:15 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.