Bug 1238485
| Summary: | undefined method error raised when viewing hosts | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Sean Myers <sean.myers> | ||||
| Component: | UI - OPS | Assignee: | Jason Frey <jfrey> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Kyrylo Zvyagintsev <kzvyahin> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 5.3.0 | CC: | cpelland, dajohnso, hkataria, jfrey, jhardy, jkrocil, kzvyahin, mfalesni, mpovolny, nachandr, obarenbo | ||||
| Target Milestone: | GA | Keywords: | ZStream | ||||
| Target Release: | 5.5.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 5.5.0.1 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1240384 1240387 (view as bug list) | Environment: | |||||
| Last Closed: | 2015-12-08 13:21:15 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: | |||||||
| Bug Blocks: | 1240384, 1240387 | ||||||
| Attachments: |
|
||||||
I see the same error while viewing RHEV hosts as well. Upstream PR fix in https://github.com/ManageIQ/manageiq/pull/3346 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(+) 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(+) 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(+) 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(+) 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(+) 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(+) 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(+) 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 |
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