Bug 1275380 - Error while viewing Cloud tenant summary
Summary: Error while viewing Cloud tenant summary
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.5.0
Assignee: Milan Zázrivec
QA Contact: Nandini Chandra
URL:
Whiteboard:
: 1277793 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-26 17:43 UTC by Nandini Chandra
Modified: 2015-12-08 13:40 UTC (History)
8 users (show)

Fixed In Version: 5.5.0.11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-08 13:40:10 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-10-26 17:43:36 UTC
Description of problem:
------------------------
CFME throws an error while viewing tenant summary.This is the error text seen on the UI:

uninitialized constant ManageIQ::Providers::Openstack::CloudManager::CloudResourceQuota::FloatingIp [cloud_tenant/show]


Snippet fom production.log:
[----] F, [2015-10-26T13:18:35.138860 #2902:7d198c] FATAL -- : Error caught: [NameError] uninitialized constant ManageIQ::Providers::Openstack::CloudManager::CloudResourceQuota::FloatingIp
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb:38:in `floatingip_quota_used'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb:33:in `floating_ips_quota_used'
/var/www/miq/vmdb/app/models/cloud_resource_quota.rb:11:in `used'
/var/www/miq/vmdb/app/helpers/cloud_tenant_helper/textual_summary.rb:54:in `textual_quotas'
/var/www/miq/vmdb/app/helpers/cloud_tenant_helper/textual_summary.rb:15:in `block in textual_group_quotas'
/opt/rh/cfme-gemset/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in `collect'
/opt/rh/cfme-gemset/gems/activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in `collect'
/var/www/miq/vmdb/app/helpers/cloud_tenant_helper/textual_summary.rb:15:in `textual_group_quotas'
/var/www/miq/vmdb/app/views/cloud_tenant/_main.html.haml:5:in `_app_views_cloud_tenant__main_html_haml___506601614636569594_104998100'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/template.rb:145:in `block in render'
/opt/rh/cfme-gemset/gems/activesupport-4.2.4/lib/active_support/notifications.rb:166:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/template.rb:333:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/template.rb:143:in `render'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
/opt/rh/cfme-gemset/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/rh/cfme-gemset/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/renderer/partial_renderer.rb:309:in `render'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/renderer/renderer.rb:47:in `render_partial'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/renderer/renderer.rb:21:in `render'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/helpers/rendering_helper.rb:32:in `render'
/opt/rh/cfme-gemset/bundler/gems/jquery-rjs-33e0fc1c0b25/lib/jquery-rjs/rendering.rb:8:in `render_with_update'
/var/www/miq/vmdb/app/views/cloud_tenant/show.html.haml:22:in `_app_views_cloud_tenant_show_html_haml__2740883569068151091_108192660'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/template.rb:145:in `block in render'
/opt/rh/cfme-gemset/gems/activesupport-4.2.4/lib/active_support/notifications.rb:166:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/template.rb:333:in `instrument'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/template.rb:143:in `render'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
/opt/rh/cfme-gemset/gems/actionview-4.2.4/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'



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


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


Steps to Reproduce:
-------------------
1.Manage an OSP provider
2.Navigate to the summary page of a tenant
3.


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


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


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

Comment 3 Milan Zázrivec 2015-10-30 17:19:54 UTC
https://github.com/ManageIQ/manageiq/pull/5204

Comment 4 Ladislav Smola 2015-11-05 13:47:50 UTC
*** Bug 1277793 has been marked as a duplicate of this bug. ***

Comment 5 CFME Bot 2015-11-13 17:20:17 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/4f42f28fa5cc8377b5fdff43995e02d0d06b195c

commit 4f42f28fa5cc8377b5fdff43995e02d0d06b195c
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Fri Oct 30 18:16:10 2015 +0100
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Fri Nov 6 16:10:06 2015 +0100

    Lookup for FloatingIp model in the top level
    
    This is to fix a model lookup problem, which only shows
    in production mode, when accessing tenant details page:
    
    FATAL -- : Error caught: [NameError] uninitialized constant
    ManageIQ::Providers::Openstack::CloudManager::CloudResourceQuota::FloatingIp
    app/models/manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb:38:in
    `floatingip_quota_used'
    app/models/manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb:33:in
    `floating_ips_quota_used'
    app/models/cloud_resource_quota.rb:11:in `used'
    app/helpers/cloud_tenant_helper/textual_summary.rb:54:in
    `textual_quotas'
    app/helpers/cloud_tenant_helper/textual_summary.rb:15:in `block in
    textual_group_quotas'
    activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in
    `collect'
    activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in
    `collect'
    app/helpers/cloud_tenant_helper/textual_summary.rb:15:in
    `textual_group_quotas'
    app/views/cloud_tenant/_main.html.haml:5
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1275380

 .../manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 7 CFME Bot 2015-11-16 21:20:14 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=246516d3ddb77eb1f3060dc93ec055fa35b808a8

commit 246516d3ddb77eb1f3060dc93ec055fa35b808a8
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Fri Oct 30 13:16:10 2015 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Mon Nov 16 11:12:32 2015 -0500

    Lookup for FloatingIp model in the top level
    
    This is to fix a model lookup problem, which only shows
    in production mode, when accessing tenant details page:
    
    FATAL -- : Error caught: [NameError] uninitialized constant
    ManageIQ::Providers::Openstack::CloudManager::CloudResourceQuota::FloatingIp
    app/models/manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb:38:in
    `floatingip_quota_used'
    app/models/manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb:33:in
    `floating_ips_quota_used'
    app/models/cloud_resource_quota.rb:11:in `used'
    app/helpers/cloud_tenant_helper/textual_summary.rb:54:in
    `textual_quotas'
    app/helpers/cloud_tenant_helper/textual_summary.rb:15:in `block in
    textual_group_quotas'
    activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in
    `collect'
    activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in
    `collect'
    app/helpers/cloud_tenant_helper/textual_summary.rb:15:in
    `textual_group_quotas'
    app/views/cloud_tenant/_main.html.haml:5
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1275380
    (cherry picked from commit 4f42f28)

 .../manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 8 CFME Bot 2015-11-16 21:20:40 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=2ec6e58b74a330767be4f4ed6737e58ceeb2299f

commit 2ec6e58b74a330767be4f4ed6737e58ceeb2299f
Merge: 76842d2 246516d
Author:     Dan Clarizio <dclarizi>
AuthorDate: Mon Nov 16 12:50:20 2015 -0500
Commit:     Dan Clarizio <dclarizi>
CommitDate: Mon Nov 16 12:50:20 2015 -0500

    Merge branch '55z_pr_5204' into '5.5.z'
    
    Lookup for FloatingIp model in the top level
    
    This is to fix a model lookup problem, which only shows
    in production mode, when accessing tenant details page:
    
    FATAL -- : Error caught: [NameError] uninitialized constant
    ManageIQ::Providers::Openstack::CloudManager::CloudResourceQuota::FloatingIp
    app/models/manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb:38:in
    `floatingip_quota_used'
    app/models/manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb:33:in
    `floating_ips_quota_used'
    app/models/cloud_resource_quota.rb:11:in `used'
    app/helpers/cloud_tenant_helper/textual_summary.rb:54:in
    `textual_quotas'
    app/helpers/cloud_tenant_helper/textual_summary.rb:15:in `block in
    textual_group_quotas'
    activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in
    `collect'
    activerecord-4.2.4/lib/active_record/relation/delegation.rb:46:in
    `collect'
    app/helpers/cloud_tenant_helper/textual_summary.rb:15:in
    `textual_group_quotas'
    app/views/cloud_tenant/_main.html.haml:5
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1275380
    (cherry picked from commit 4f42f28)
    
    @dclarizi please merge, this is clean cherry-pick for https://github.com/ManageIQ/manageiq/pull/5204
    
    See merge request !468

 .../manageiq/providers/openstack/cloud_manager/cloud_resource_quota.rb  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 9 Nandini Chandra 2015-11-19 16:42:40 UTC
Verified in 5.5.0.11

Comment 11 errata-xmlrpc 2015-12-08 13:40:10 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.