Bug 1190584 - RBAC: Unable to reconfigure a VM for user with support role
Summary: RBAC: Unable to reconfigure a VM for user with support role
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.4.0
Assignee: Brian McLaughlin
QA Contact: Aziza Karol
URL:
Whiteboard:
Depends On:
Blocks: 1195316
TreeView+ depends on / blocked
 
Reported: 2015-02-09 08:32 UTC by Aziza Karol
Modified: 2015-06-16 12:49 UTC (History)
3 users (show)

Fixed In Version: 5.4.0.0.11
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1195316 (view as bug list)
Environment:
Last Closed: 2015-06-16 12:49:44 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
err (58.48 KB, image/png)
2015-02-09 08:32 UTC, Aziza Karol
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Description Aziza Karol 2015-02-09 08:32:42 UTC
Created attachment 989566 [details]
err

Description of problem:


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

How reproducible:
100%

Steps to Reproduce:
1.create a new user with support role
2.login and navigate to infrastructure->VM and select a VM
3.reconfigure a VM and click on submit

Actual results:
Action not implemented [miq_request/show_list] displayed on UI. see attached screenshot

Expected results:
should be able to reconfigure

Additional info:
production.log:
[----] I, [2015-02-09T07:24:19.857750 #2327:ec0810]  INFO -- : Processing by VmInfraController#reconfigure_field_changed as JS
[----] I, [2015-02-09T07:24:19.857844 #2327:ec0810]  INFO -- :   Parameters: {"cb_cpu"=>"1", "id"=>"new"}
[----] I, [2015-02-09T07:24:19.880978 #2327:ec0810]  INFO -- : Completed 200 OK in 23.0ms (Views: 0.6ms | ActiveRecord: 1.0ms)
[----] I, [2015-02-09T07:24:22.772171 #2327:ec0810]  INFO -- : Started POST "/vm_infra/reconfigure_field_changed/new" for 127.0.0.1 at 2015-02-09 02:24:22 -0500
[----] I, [2015-02-09T07:24:22.777114 #2327:ec0810]  INFO -- : Processing by VmInfraController#reconfigure_field_changed as JS
[----] I, [2015-02-09T07:24:22.777194 #2327:ec0810]  INFO -- :   Parameters: {"cpu_count"=>"5", "id"=>"new"}
[----] I, [2015-02-09T07:24:22.799444 #2327:ec0810]  INFO -- : Completed 200 OK in 22.1ms (Views: 0.5ms | ActiveRecord: 1.1ms)
[----] I, [2015-02-09T07:24:35.790938 #2327:ec0810]  INFO -- : Started POST "/vm_infra/reconfigure_update?button=submit" for 127.0.0.1 at 2015-02-09 02:24:35 -0500
[----] I, [2015-02-09T07:24:35.795769 #2327:ec0810]  INFO -- : Processing by VmInfraController#reconfigure_update as JS
[----] I, [2015-02-09T07:24:35.795867 #2327:ec0810]  INFO -- :   Parameters: {"button"=>"submit"}
[----] I, [2015-02-09T07:24:35.844108 #2327:ec0810]  INFO -- : Completed 200 OK in 48.1ms (Views: 1.4ms | ActiveRecord: 9.0ms)
[----] I, [2015-02-09T07:24:36.175323 #2327:ec0810]  INFO -- : Started GET "/miq_request/show_list?flash_msg=VM+Reconfigure+Request+was+saved" for 127.0.0.1 at 2015-02-09 02:24:36 -0500
[----] I, [2015-02-09T07:24:36.178233 #2327:ec0810]  INFO -- : Processing by MiqRequestController#show_list as HTML
[----] I, [2015-02-09T07:24:36.178308 #2327:ec0810]  INFO -- :   Parameters: {"flash_msg"=>"VM Reconfigure Request was saved"}
[----] I, [2015-02-09T07:24:36.200843 #2327:ec0810]  INFO -- : Redirected to 
[----] F, [2015-02-09T07:24:36.201069 #2327:ec0810] FATAL -- : Error caught: [ActionController::RoutingError] No route matches {:controller=>"dashboard", :action=>"auth_error"}
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/route_set.rb:540:in `raise_routing_error'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/route_set.rb:536:in `rescue in generate'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/route_set.rb:528:in `generate'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/route_set.rb:569:in `generate'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/route_set.rb:594:in `url_for'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/url_for.rb:148:in `url_for'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/redirecting.rb:105:in `_compute_redirect_to_location'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/redirecting.rb:74:in `redirect_to'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/flash.rb:25:in `redirect_to'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/instrumentation.rb:60:in `block in redirect_to'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/notifications.rb:123:in `block in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/notifications.rb:123:in `instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/instrumentation.rb:59:in `redirect_to'
/var/www/miq/vmdb/app/controllers/application_controller.rb:1443:in `check_generic_rbac'
/var/www/miq/vmdb/app/controllers/application_controller.rb:1474:in `check_privileges'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:495:in `_run__4432807368457925489__process_action__4041486960128812157__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/abstract_controller/callbacks.rb:17:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/rescue.rb:29:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/notifications.rb:123:in `block in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/notifications.rb:123:in `instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.17/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/abstract_controller/base.rb:121:in `process'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/abstract_controller/rendering.rb:45:in `process'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal.rb:203:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_controller/metal.rb:246:in `block in action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/route_set.rb:73:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/route_set.rb:36:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/routing/route_set.rb:608:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/head.rb:14:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/flash.rb:242:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.17/lib/active_record/query_cache.rb:64:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:405:in `_run__2738388280424348034__call__858180222755814925__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.17/lib/rails/rack/logger.rb:32:in `call_app'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.17/lib/rails/rack/logger.rb:18:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.17/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.17/lib/action_dispatch/middleware/static.rb:63:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.17/lib/rails/engine.rb:484:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.17/lib/rails/application.rb:231:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.17/lib/rails/rack/log_tailer.rb:17:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/thin-1.3.1/lib/thin/connection.rb:80:in `block in pre_process'
/opt/rh/ruby193/root/usr/share/gems/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch'
/opt/rh/ruby193/root/usr/share/gems/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process'
/opt/rh/ruby193/root/usr/share/gems/gems/thin-1.3.1/lib/thin/connection.rb:53:in `process'
/opt/rh/ruby193/root/usr/share/gems/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data'
/opt/rh/ruby193/root/usr/share/gems/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run_machine'
/opt/rh/ruby193/root/usr/share/gems/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
/opt/rh/ruby193/root/usr/share/gems/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/handler/thin.rb:13:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.5/lib/rack/server.rb:268:in `start'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.17/lib/rails/commands/server.rb:70:in `start'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.17/lib/rails/commands.rb:55:in `block in <top (required)>'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.17/lib/rails/commands.rb:50:in `tap'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.17/lib/rails/commands.rb:50:in `<top (required)>'
script/rails:6:in `require'
script/rails:6:in `<main>'

Comment 2 Aziza Karol 2015-02-13 12:21:58 UTC
This issue exists in 5.3.0/1/2

Comment 3 Oleg Barenboim 2015-02-19 14:02:09 UTC
https://github.com/ManageIQ/manageiq/pull/1790

Comment 4 CFME Bot 2015-02-19 21:50:59 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/d2da953257878613bdc491abdf63fb84637f5805

commit d2da953257878613bdc491abdf63fb84637f5805
Author:     Brian McLaughlin <bmclaugh>
AuthorDate: Wed Feb 18 22:31:04 2015 -0500
Commit:     Brian McLaughlin <bmclaugh>
CommitDate: Wed Feb 18 22:31:04 2015 -0500

    Add missing route and associated test
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1190584

 vmdb/config/routes.rb                       | 1 +
 vmdb/spec/routing/dashboard_routing_spec.rb | 6 ++++++
 2 files changed, 7 insertions(+)

Comment 5 CFME Bot 2015-02-20 21:25:47 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/c1ed7fb69512ac3fd56e1c4a817048c4d5137fd8

commit c1ed7fb69512ac3fd56e1c4a817048c4d5137fd8
Author:     Brian McLaughlin <bmclaugh>
AuthorDate: Fri Feb 20 12:02:46 2015 -0500
Commit:     Brian McLaughlin <bmclaugh>
CommitDate: Fri Feb 20 12:03:11 2015 -0500

    Enable support role to reconfigure a VM and not throw an error
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1190584

 vmdb/app/controllers/application_controller/ci_processing.rb | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Comment 7 Aziza Karol 2015-03-12 11:05:45 UTC
Able to reconfigure a VM for user with support role.

Verified:
5.4.0.0.11.20150309201930_8b6a235

Comment 9 errata-xmlrpc 2015-06-16 12:49:44 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://rhn.redhat.com/errata/RHBA-2015-1100.html


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