Bug 1321952 - In SSL + IPv6 + external loadbalancer deployment Horizon redirects https to non-https
Summary: In SSL + IPv6 + external loadbalancer deployment Horizon redirects https to n...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhosp-director
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Angus Thomas
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-29 12:54 UTC by Marius Cornea
Modified: 2016-03-29 13:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-29 13:35:26 UTC
Target Upstream Version:


Attachments (Terms of Use)
haproxy.cfg (8.51 KB, text/plain)
2016-03-29 12:54 UTC, Marius Cornea
no flags Details
enable-tls.yaml (2.51 KB, text/plain)
2016-03-29 12:55 UTC, Marius Cornea
no flags Details

Description Marius Cornea 2016-03-29 12:54:45 UTC
Created attachment 1141243 [details]
haproxy.cfg

Description of problem:
In an overcloud dpeloyment with SSL + IPv6 + external loadbalancer Horizon redirects https to non-https.

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-0.8.12-2.el7ost.noarch

How reproducible:


Steps to Reproduce:
1. Deploy overcloud
export THT=/usr/share/openstack-tripleo-heat-templates
openstack overcloud deploy --templates $THT \
  -e $THT/environments/network-isolation-v6.yaml \
  -e ~/templates/network-environment-v6.yaml \
  -e ~/templates/firstboot-environment.yaml \
  -e ~/templates/enable-tls.yaml \
  -e ~/templates/inject-trust-anchor.yaml \
  -e $THT/environments/external-loadbalancer-vip-v6.yaml \
  -e ~/templates/external-lb-v6.yaml \
  -e $THT/environments/storage-environment.yaml \
  --control-scale 3 \
  --compute-scale 1 \
  --ceph-storage-scale 2\
  --ntp-server clock.redhat.com \
  --libvirt-type qemu 

2. Try to reach Horizon on the public VIP:
curl https://[2001:db8:fd00:1000::5]

Actual results:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://[2001:db8:fd00:1000::5]/dashboard">here</a>.</p>
</body></html>

Expected results:
The redirect is done to https://[2001:db8:fd00:1000::5]/dashboard

Additional info:
Attaching the enable-tls.yaml file and the haproxy configuration that is set on the external loadbalancer. If there's any other info I should provide please let me know. Thanks!

Comment 2 Marius Cornea 2016-03-29 12:55:47 UTC
Created attachment 1141244 [details]
enable-tls.yaml

Comment 3 Marius Cornea 2016-03-29 13:35:26 UTC
Closing this as not a bug. I was missing the following directive in the horizon section of haproxy.cfg on the external loadbalancer:

rsprep ^Location:\ http://(.*) Location:\ https://\1


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