Bug 1336748

Summary: Navigating "All containers" raises error: undefined method `authorized?' for #<#<Class:0x007fd3ce1f7968>:0x007fd3d7b9a2c8>
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: Container ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham
Target Milestone: UnspecifiedKeywords: Regression
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-18 16:39:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1323077    
Attachments:
Description Flags
webUI raises error Oops, we're sorry but something went wrong undefined method `authorized?' on accessing "All containers" none

Description Sachin Ghai 2016-05-17 11:48:16 UTC
Created attachment 1158246 [details]
webUI raises error Oops, we're sorry but something went wrong undefined method `authorized?' on accessing "All containers"

Description of problem:
I was trying to create a container on atomic host using docker hub. Container was created but when I navigate to "All Containers", I got following error:

 2016-05-17 07:40:58 [app] [I] Started GET "/containers" for 10.65.223.218 at 2016-05-17 07:40:58 -0400
2016-05-17 07:40:58 [app] [I] Processing by ContainersController#index as HTML
2016-05-17 07:40:58 [app] [I]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1.6/app/views/containers/index.html.erb within layouts/application (132.4ms)
2016-05-17 07:40:58 [app] [W] Action failed
 | NoMethodError: undefined method `authorized?' for #<#<Class:0x007fd3ce1f7968>:0x000000072e01b0>
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1.6/app/views/containers/index.html.erb:3:in `_ccda569ad88e5e6fb016e2fe08e1d3e7'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/template.rb:145:in `block in render'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications.rb:161:in `instrument'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/template.rb:339:in `instrument'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/template.rb:143:in `render'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.0.2/lib/deface/action_view_extensions.rb:41:in `render'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionview-4.1.5/lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'


Version-Release number of selected component (if applicable):
sat6.2 GA snap11.0

How reproducible:


Steps to Reproduce:
1. create a container ( in my case, I created on atomic host)
2. navigate 'All containers"
3.

Actual results:
error: undefined method `authorized?' for #<#<Class:0x007fd3ce1f7968>:0x007fd3d7b9a2c8>

Expected results:


Additional info:

Comment 2 Brad Buckingham 2016-05-18 16:39:47 UTC

*** This bug has been marked as a duplicate of bug 1333805 ***