Bug 1021259 - Redirecting Loop when accessing foreman from katello using SSO
Summary: Redirecting Loop when accessing foreman from katello using SSO
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: Nightly
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-20 19:56 UTC by mshurik
Modified: 2018-08-31 03:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 20:17:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description mshurik 2013-10-20 19:56:08 UTC
Description of problem:
after installing katello-foreman-all and ran katello-configure I am unable to access foreman URL from Katello WEB UI. Getting page display that saying redirecting loop

Version-Release number of selected component (if applicable):
nightly build of katello 

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 mshurik 2013-10-20 20:54:13 UTC
this is info from foreman log

Started GET "/foreman/?username=admin&username=admin" for MY IP at 2013-10-20 14:49:48 -0600
Processing by DashboardController#index as HTML
  Parameters: {"username"=>"admin"}
  Rendered text template (0.0ms)
Filter chain halted as :require_login rendered or redirected
Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Processing by DashboardController#index as HTML
  Parameters: {"username"=>"admin"}
SSO failed, falling back to login form
Redirected to https://localhost.localdomain/signo?return_url=https://localhost.localdomain/foreman/?username=admin&username=admin
Filter chain halted as :require_login rendered or redirected
Completed 302 Found in 1ms (ActiveRecord: 0.0ms

Comment 2 Mike McCune 2013-10-23 22:04:34 UTC
Did you use a fully qualified hostname when installing Katello & Foreman?

Comment 3 mshurik 2013-10-23 23:14:18 UTC
Thanks Mike for replying to me. I do have DNS set up for my host and also have set /etc/hosts file. The host name I have is katman.ucdenver.pvt and the short name is katman. The setting in /etc/katello/katello.yml is saying for both katello and foreman is https://katman/katello and https://katman/foreman and for SSO is https://katman/signo

I just want integrate katello and foreman on the same box using SSO.

Comment 4 Mike McCune 2013-10-29 01:59:41 UTC
yeah, try using the FQDN for all configuration values

if you want to start over you can remove katello and foreman with:

https://raw.github.com/mccun934/katello-misc/master/scripts/katello_remove.sh

and try again.

or just re-provision the host you are installing on.

Comment 5 mshurik 2013-10-29 02:09:36 UTC
Thank you Mike,

I have done this as well. I have reinstall everything using FQDN and still having same issue. I have install katello-foreman-all and then ran katello-configure --user-pass=admin.I did not see any errors during installation but than again

1. login successful https://katman.ucdenver.pvt/katello
2. click on foreman link in right top corner 
3. did redirect me signo login page 
4. when entering my credentials it give a page "redirect loop"

Comment 6 Bryan Kearney 2014-01-21 19:06:58 UTC
Moving to Sat6 to be tracked there. Upstream bugs are moving to redmine.

Comment 7 RHEL Program Management 2014-01-21 19:18:49 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 9 Bryan Kearney 2014-01-21 20:17:04 UTC
signo is still removed from katello, closing this out.


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