Bug 1351417

Summary: CloudForm 4.1: WebUI switch CloudForms to run on port 80 (from 443) break the portal
Product: Red Hat CloudForms Management Engine Reporter: Faiaz Ahmed <fahmed>
Component: UI - OPSAssignee: Martin Povolny <mpovolny>
Status: CLOSED NOTABUG QA Contact: Dmitry Misharov <dmisharo>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, hkataria, jhardy, mfalesni, mpovolny, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1354538 (view as bug list) Environment:
Last Closed: 2016-09-30 14:36:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Unknown Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1354538    
Attachments:
Description Flags
CloudForm Broken Page none

Description Faiaz Ahmed 2016-06-30 04:27:34 UTC
Created attachment 1174327 [details]
CloudForm Broken Page

Description of problem:
CloudForm 4.1: WebUI switch CloudForms to run on port 80 (from 443) break the portal

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

CFME Engine: cfme-rhos-5.6.0.13-1.x86_64 (for openstack)

Linux xxxxx 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 9 10:09:10 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:
Use the below KCS and Docs bug been use to reproduce.


Steps to Reproduce:
1. KCS: https://access.redhat.com/solutions/1381853
2. Doc Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1334969
3. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ cat manageiq-http.conf
## ManageIQ HTTP Virtual Host Context

# Timeout: The number of seconds before receives and sends time out.
Timeout 120

# HTTP Start-up error log
ErrorLog /var/www/miq/vmdb/log/apache/miq_apache.log

# Disable this section if using HTTP only
#RewriteEngine On
#Options SymLinksIfOwnerMatch
#RewriteCond %{SERVER_PORT} !^443$
#RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

# Enable this section if using HTTP only
<VirtualHost *:80>
  Include conf.d/manageiq-redirects-ui
  Include conf.d/manageiq-redirects-ws
  Include conf.d/manageiq-redirects-websocket
  ProxyPreserveHost on
</VirtualHost>


$ grep :secure /var/www/miq/vmdb/config/initializers/session_store.rb
    #session_options[:secure]   = true
    session_options[:secure]   = false
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Actual results:
- Come in a broken page as attached after switching to HTTP as above doc. Authentication even don't work.
- HTTPs (secure) page interesting still working

Expected results:

- On 4.0 and 3.x this procedure to enable http was working fine.


Additional info:
Customer Complained, Cloudforms http only not working in Cloudforms 4.1. Displaying Apache Test page.

Comment 2 Martin Povolny 2016-06-30 17:00:21 UTC
QE: can you, please, test the steps in the linked DOC BZ?

Please, make sure that HTML5 consoles, API and SSUI all work as expected.

If all works well we can have the documentation updated.

Comment 5 Martin Povolny 2016-07-21 09:24:00 UTC
solution is provided in https://bugzilla.redhat.com/show_bug.cgi?id=1354538