Bug 1229104 - undefined method `description' for #<EmsOpenstack:0x000000109620e8> [ems_cloud/show] while clicking on openstack provider
Summary: undefined method `description' for #<EmsOpenstack:0x000000109620e8> [ems_clou...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: GA
: 5.5.0
Assignee: Harpreet Kataria
QA Contact: Nandini Chandra
URL:
Whiteboard:
Depends On:
Blocks: 1229781
TreeView+ depends on / blocked
 
Reported: 2015-06-08 05:25 UTC by Nandini Chandra
Modified: 2015-12-08 13:16 UTC (History)
6 users (show)

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


Attachments (Terms of Use)


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 Nandini Chandra 2015-06-08 05:25:02 UTC
Description of problem:
--------------------------


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


How reproducible:
----------------
Always


Steps to Reproduce:
-------------------
1.Navigate to Cloud->Providers page.
2.Click any openstack provider.
3.

Actual results:
---------------
Error occurs


Expected results:
-----------------
No error


Additional info:
----------------

Comment 2 Nandini Chandra 2015-06-08 05:33:28 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'

Comment 3 Nandini Chandra 2015-06-08 08:04:28 UTC
This issue seems to be happening on just one of my appliances.Additionally,it happens when one particular Openstack provider is clicked.

Comment 8 CFME Bot 2015-06-11 13:40:16 UTC
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(+)

Comment 9 CFME Bot 2015-07-14 22:00:08 UTC
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(+)

Comment 10 CFME Bot 2015-07-14 22:00:55 UTC
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(+)

Comment 11 Nandini Chandra 2015-10-30 18:59:56 UTC
Verified in 5.5.0.7

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