Bug 1229104
| Summary: | undefined method `description' for #<EmsOpenstack:0x000000109620e8> [ems_cloud/show] while clicking on openstack provider | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Nandini Chandra <nachandr> | |
| Component: | UI - OPS | Assignee: | Harpreet Kataria <hkataria> | |
| Status: | CLOSED ERRATA | QA Contact: | Nandini Chandra <nachandr> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 5.4.0 | CC: | hkataria, jhardy, mfeifer, mpovolny, nachandr, obarenbo | |
| Target Milestone: | GA | |||
| 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: | ||||
| : | 1229781 (view as bug list) | Environment: | ||
| Last Closed: | 2015-12-08 13:16:23 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: | 1229781 | |||
|
Description
Nandini Chandra
2015-06-08 05:25:02 UTC
Snippet from production.log --------------------------- [----] F, [2015-06-08T01:24:12.135019 #2666:78dea8] FATAL -- : Error caught: [NoMethodError] undefined method `description' for #<EmsOpenstack:0x0000000c824108> /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/activemodel/lib/active_model/attribute_methods.rb:407:in `method_missing' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/activerecord/lib/active_record/attribute_methods.rb:149:in `method_missing' /var/www/miq/vmdb/app/helpers/ems_cloud_helper/textual_summary.rb:31:in `textual_provider_region' /var/www/miq/vmdb/app/helpers/ems_cloud_helper/textual_summary.rb:8:in `block in textual_group_properties' /var/www/miq/vmdb/app/helpers/ems_cloud_helper/textual_summary.rb:8:in `collect' /var/www/miq/vmdb/app/helpers/ems_cloud_helper/textual_summary.rb:8:in `textual_group_properties' /var/www/miq/vmdb/app/views/shared/views/ems_common/_main.html.haml:4:in `_app_views_shared_views_ems_common__main_html_haml__258574547880236950_110449940' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/template.rb:145:in `block in render' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/notifications.rb:125:in `instrument' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/template.rb:143:in `render' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/renderer/partial_renderer.rb:238:in `block in render' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/notifications.rb:123:in `block in instrument' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/notifications.rb:123:in `instrument' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/renderer/partial_renderer.rb:237:in `render' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/renderer/renderer.rb:41:in `render_partial' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/renderer/renderer.rb:15:in `render' /opt/rh/cfme-gemset/bundler/gems/rails-4842a8377644/actionpack/lib/action_view/helpers/rendering_helper.rb:24:in `render' /opt/rh/cfme-gemset/bundler/gems/jquery-rjs-33e0fc1c0b25/lib/jquery-rjs/rendering.rb:8:in `render_with_update' /opt/rh/cfme-gemset/gems/haml-4.0.6/lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' /opt/rh/cfme-gemset/gems/haml-4.0.6/lib/haml/helpers.rb:89:in `non_haml' /opt/rh/cfme-gemset/gems/haml-4.0.6/lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' /var/www/miq/vmdb/app/views/shared/views/ems_common/_show.html.haml:14:in `_app_views_shared_views_ems_common__show_html_haml___2686320826751755106_109754440' This issue seems to be happening on just one of my appliances.Additionally,it happens when one particular Openstack provider is clicked. New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/1f1dd086ff9f09a2ab8d407a0a0248c857b1772d commit 1f1dd086ff9f09a2ab8d407a0a0248c857b1772d Author: Harpreet Kataria <hkataria> AuthorDate: Tue Jun 9 11:38:12 2015 -0400 Commit: Harpreet Kataria <hkataria> CommitDate: Tue Jun 9 13:29:42 2015 -0400 Added changes to reset provider region after user changes provider type - Added changes to reset provider region value in case user changed provider type after selecting provider region for a different type and then changed type to "Openstack". Added spec test to verify. - Added a description method to EmsOpenstack, to prevent from blowing up in UI incase somehow user's db has provider_region column populated for Openstack Provider. https://bugzilla.redhat.com/show_bug.cgi?id=1229104 https://bugzilla.redhat.com/show_bug.cgi?id=1229781 vmdb/app/controllers/ems_common.rb | 1 + vmdb/app/models/mixins/ems_openstack_mixin.rb | 4 ++++ vmdb/spec/controllers/ems_common_controller_spec.rb | 15 +++++++++++++++ 3 files changed, 20 insertions(+) New commit detected on cfme/5.4.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=4979bdc21d8392e39b78e1f4afbe0ea7314fb781 commit 4979bdc21d8392e39b78e1f4afbe0ea7314fb781 Author: Harpreet Kataria <hkataria> AuthorDate: Tue Jun 9 11:38:12 2015 -0400 Commit: Harpreet Kataria <hkataria> CommitDate: Fri Jun 12 17:39:52 2015 -0400 Added changes to reset provider region after user changes provider type - Added changes to reset provider region value in case user changed provider type after selecting provider region for a different type and then changed type to "Openstack". Added spec test to verify. - Added a description method to EmsOpenstack, to prevent from blowing up in UI incase somehow user's db has provider_region column populated for Openstack Provider. https://bugzilla.redhat.com/show_bug.cgi?id=1229104 https://bugzilla.redhat.com/show_bug.cgi?id=1229781 (cherry picked from commit 1f1dd08) vmdb/app/controllers/ems_common.rb | 1 + vmdb/app/models/mixins/ems_openstack_mixin.rb | 4 ++++ vmdb/spec/controllers/ems_common_controller_spec.rb | 15 +++++++++++++++ 3 files changed, 20 insertions(+) New commit detected on cfme/5.4.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=2881a2b5b380e2371143cac7b417285b3fbde19e commit 2881a2b5b380e2371143cac7b417285b3fbde19e Merge: 9dad98d 4979bdc Author: Dan Clarizio <dclarizi> AuthorDate: Tue Jul 14 17:57:53 2015 -0400 Commit: Dan Clarizio <dclarizi> CommitDate: Tue Jul 14 17:57:53 2015 -0400 Merge branch '54z_bz_1229781' into '5.4.z' Added changes to reset provider region after user changes provider type - Added changes to reset provider region value in case user changed provider type after selecting provider region for a different type and then changed type to "Openstack". Added spec test to verify. - Added a description method to EmsOpenstack, to prevent from blowing up in UI incase somehow user's db has provider_region column populated for Openstack Provider. https://bugzilla.redhat.com/show_bug.cgi?id=1229104 https://bugzilla.redhat.com/show_bug.cgi?id=1229781 (cherry picked from commit 1f1dd08) @jfrey @dclarizio this is clean cherry-pick, please review PR: https://github.com/ManageIQ/manageiq/pull/3105 See merge request !127 vmdb/app/controllers/ems_common.rb | 1 + vmdb/app/models/mixins/ems_openstack_mixin.rb | 4 ++++ vmdb/spec/controllers/ems_common_controller_spec.rb | 15 +++++++++++++++ 3 files changed, 20 insertions(+) Verified in 5.5.0.7 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 |