Bug 1680576

Summary: Change redirect directive in apache.vhost.sample file
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: gowtham <gshanmug>
Component: web-admin-tendrl-apiAssignee: gowtham <gshanmug>
Status: CLOSED ERRATA QA Contact: Filip Balák <fbalak>
Severity: low Docs Contact:
Priority: unspecified    
Version: rhgs-3.4CC: fbalak, mbukatov, nthomas, rcyriac, rhs-bugs, sankarshan
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.4.z Batch Update 4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tendrl-api-1.6.3-13.el7rhgs Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-27 03:49:38 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:

Description gowtham 2019-02-25 10:53:58 UTC
Description of problem:

Redirect directive in [`/etc/httpd/conf.d/tendrl-ssl.conf`] contains `ssl_virtualhost_ip`:


     #Redirect permanent / https://%ssl_virtualhost_ip%/


This should be changed to indicate that the expected value is a hostname (fqdn).


Version-Release number of selected component (if applicable):
tendrl-api-1.6.3-12.el7rhgs

How reproducible:
100%

Steps to Reproduce:
1. Run tendrl ansible to install all tendrl components
2. vi /etc/httpd/conf.d/tendrl-ssl.conf and check redirection line
3.

Actual results:
tendrl-ssl.conf file have redirection line with %ssl_virtualhost_ip%

Expected results:
This should be changed to indicate that the expected value is a hostname like
#Redirect permanent / https://%hostname(fqdn)%/

Additional info:

Comment 2 Martin Bukatovic 2019-02-27 13:32:05 UTC
This will be tested based on conclusion reached in upstream.

Comment 5 Filip Balák 2019-03-05 13:25:52 UTC
Redirection line in /etc/httpd/conf.d/tendrl.conf is changed to:
 #Redirect permanent / https://%ssl_virtualhost_fqdn%/

/etc/httpd/conf.d/00_tendrl-ssl.conf.sample contains __default__ in block header:
 <VirtualHost _default_:443>
as requested in upstream discussion: https://github.com/Tendrl/api/pull/461#discussion_r259746830

--> VERIFIED

Tested with:
tendrl-ansible-1.6.3-11.el7rhgs.noarch
tendrl-api-1.6.3-13.el7rhgs.noarch
tendrl-api-httpd-1.6.3-13.el7rhgs.noarch
tendrl-commons-1.6.3-17.el7rhgs.noarch
tendrl-grafana-plugins-1.6.3-21.el7rhgs.noarch
tendrl-grafana-selinux-1.5.4-3.el7rhgs.noarch
tendrl-monitoring-integration-1.6.3-21.el7rhgs.noarch
tendrl-node-agent-1.6.3-18.el7rhgs.noarch
tendrl-notifier-1.6.3-4.el7rhgs.noarch
tendrl-selinux-1.5.4-3.el7rhgs.noarch
tendrl-ui-1.6.3-15.el7rhgs.noarch

Comment 7 errata-xmlrpc 2019-03-27 03:49:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0660