Bug 1443529 - Amazon Availability Zone Timelines page is broken
Summary: Amazon Availability Zone Timelines page is broken
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.9.0
Assignee: Martin Povolny
QA Contact: Ievgen Zapolskyi
URL:
Whiteboard: ui:timeline:ec2
Depends On:
Blocks: 1392391 1444510
TreeView+ depends on / blocked
 
Reported: 2017-04-19 12:32 UTC by Ievgen Zapolskyi
Modified: 2018-03-06 15:33 UTC (History)
6 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1444510 (view as bug list)
Environment:
Last Closed: 2018-03-06 15:33:43 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (111.25 KB, image/png)
2017-04-19 12:32 UTC, Ievgen Zapolskyi
no flags Details

Description Ievgen Zapolskyi 2017-04-19 12:32:16 UTC
Created attachment 1272595 [details]
screenshot

Description of problem:
When I open Timelines page for any EC2 availability zone, I get error page with
 "User 'admin' is not authorized to access 'Availability Zone' record id '423' [availability_zone/show]" error. See screenshot.
cfme logs don't contain any errors.
javascript console contains only NS_ERROR_UNEXPECTED: error.

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

How reproducible:
100%

Steps to Reproduce:
1. Provision instance in EC2 and stop/start it to generate some events.
2. Go to Availability Zone this instance belongs to
3. Try to open Timelines for this Availability Zone


Actual results:
Error page

Expected results:
Timelines page should be displayed


Additional info: BreadCrumb contains typo - "Availability Zones >> Availabilty Zones". maybe it is related somehow.

Comment 2 Martin Povolny 2017-04-19 13:37:58 UTC
Can you, please, export a DB for me with the Timeline data? Or can you let me see this on your system?

Comment 3 Ievgen Zapolskyi 2017-04-19 13:45:55 UTC
appliance's ip - 10.8.197.185

Comment 4 Martin Povolny 2017-04-19 13:49:20 UTC
I found the backtrace on the appliance, Ievgen provided:

[----] F, [2017-04-19T09:50:51.548505 #2938:134d734] FATAL -- : Error caught: [RuntimeError] Invalid input
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/controllers/mixins/checked_id_mixin.rb:60:in `find_record_with_rbac'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/controllers/availability_zone_controller.rb:59:in `show'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/abstract_controller/base.rb:188:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/rescue.rb:20:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/opt/rh/cfme-gemset/gems/activerecord-5.0.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/abstract_controller/base.rb:126:in `process'
/opt/rh/cfme-gemset/gems/actionview-5.0.2/lib/action_view/rendering.rb:30:in `process'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal.rb:190:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal.rb:262:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/journey/router.rb:26:in `each'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/journey/router.rb:26:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/routing/route_set.rb:725:in `call'
/opt/rh/cfme-gemset/gems/secure_headers-3.0.3/lib/secure_headers/middleware.rb:10:in `call'


This is a regression caused by recend RBAC fixes

Comment 5 Martin Povolny 2017-04-19 14:06:48 UTC
actually it's a regression of the GenericMixins works

https://github.com/ManageIQ/manageiq-ui-classic/pull/1080

Comment 6 Martin Povolny 2017-04-19 14:08:22 UTC
Ievgen: Fixed manually on the apliance, can you, please, confirm?

Comment 7 Ievgen Zapolskyi 2017-04-19 14:17:33 UTC
Martin, yes, I confirm that your patch fixes the issue. Thnx.

Comment 8 CFME Bot 2017-04-19 14:38:38 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/32671c9950512d31c70a62a6e95f8875526f6a8f

commit 32671c9950512d31c70a62a6e95f8875526f6a8f
Author:     Martin Povolny <mpovolny>
AuthorDate: Wed Apr 19 16:04:22 2017 +0200
Commit:     Martin Povolny <mpovolny>
CommitDate: Wed Apr 19 16:04:22 2017 +0200

    Fix AvailabilityZone broken by GenericShow refactoring.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1443529

 app/controllers/availability_zone_controller.rb | 1 -
 1 file changed, 1 deletion(-)

Comment 10 Ievgen Zapolskyi 2017-10-17 15:11:23 UTC
verified in 5.9.0.2.20171010190026_0413a06


Note You need to log in before you can comment on or make changes to this bug.