Bug 1277827 - ERF42-5434 [Foreman::Exception]: unknown permission view_katello/kt_environments on editing external capsule
Summary: ERF42-5434 [Foreman::Exception]: unknown permission view_katello/kt_environme...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: 6.1.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-04 08:00 UTC by Sachin Ghai
Modified: 2019-06-13 21:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 20:35:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
UI raises execption on editing a newly configured external capsule (20.55 KB, image/png)
2015-11-04 08:00 UTC, Sachin Ghai
no flags Details
complete exception by enabling debug logs (18.87 KB, text/plain)
2015-11-04 08:06 UTC, Sachin Ghai
no flags Details
foreman-debug (664.24 KB, application/x-xz)
2015-11-04 08:16 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2015-11-04 08:00:46 UTC
Created attachment 1089432 [details]
UI raises execption on editing a newly configured external capsule

Description of problem:
I was trying to configure external capsule with satellite 6.1.4. Capsule was configured properly and visible on webUI and hammer cli.

But when I tried to select the capsule, I got following error on webUI:

ERF42-5434 [Foreman::Exception]: unknown permission view_katello/kt_environments

production.log:
=============

==> /var/log/foreman/production.log <==
2015-11-04 02:54:41 [I] Processing by SmartProxiesController#edit as */*
2015-11-04 02:54:41 [I]   Parameters: {"id"=>"2-cloud-qe-21-idmqe-lab-eng-bos-redhat-com"}
2015-11-04 02:54:41 [I]   Rendered taxonomies/_loc_org_tabs.html.erb (13.0ms)
2015-11-04 02:54:41 [I] Deface: 2 overrides found for 'smart_proxies/_form'
2015-11-04 02:54:41 [I] Deface: 'add_smart_proxies_tab' matched 1 times with 'ul.nav > li:first'
2015-11-04 02:54:41 [I] Deface: 'add_smart_proxies_tab_pane' matched 1 times with 'code[erb-loud]:contains("render"):contains("taxonomies/loc_org_tabs")'
2015-11-04 02:54:41 [I]   Rendered smart_proxies/_form.html.erb (23.5ms)
2015-11-04 02:54:41 [I]   Rendered smart_proxies/edit.html.erb (23.8ms)
2015-11-04 02:54:41 [W] Operation FAILED: ERF42-5434 [Foreman::Exception]: unknown permission view_katello/kt_environments
2015-11-04 02:54:41 [I]   Rendered common/500.html.erb (4.2ms)
2015-11-04 02:54:41 [I] Completed 500 Internal Server Error in 42ms (Views: 4.6ms | ActiveRecord: 3.8ms)
2015-11-04 02:56:11 [I] Client disconnected.


Version-Release number of selected component (if applicable):
satellite 6.1.4 (COMPOSE 2 - Fri Oct 30, 2015)

How reproducible:
always

Steps to Reproduce:
1. Install/configure Satellite6.1.4
2. configure external capsule
3. once configured, select from webUI to edit the capsule

Actual results:
ERF42-5434 [Foreman::Exception]: unknown permission view_katello/kt_environments

Expected results:
user should be able to edit the capsule.

Additional info:

Comment 2 Sachin Ghai 2015-11-04 08:06:24 UTC
Created attachment 1089433 [details]
complete exception by enabling debug logs

Comment 4 Sachin Ghai 2015-11-04 08:16:10 UTC
Created attachment 1089445 [details]
foreman-debug

Comment 5 Stephen Benjamin 2015-11-06 17:08:05 UTC
You probably need these

https://github.com/Katello/katello/pull/5533
https://github.com/theforeman/foreman/pull/2803

Comment 7 Corey Welton 2015-11-06 21:47:15 UTC
Verified in 6.1.5 compose 5

Comment 8 Bryan Kearney 2015-11-19 20:35:06 UTC
This fix was delivered in 6.1.4 on 19 November in https://access.redhat.com/errata/RHBA-2015:2474.


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