Bug 1038527

Summary: app's alias does not work after upgrade app from 1.2 to 2.0
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: Cluster Version OperatorAssignee: Jason DeTiberus <jdetiber>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.0.0CC: bleanhar, libra-onpremise-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-17 16:20:43 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:

Description Johnny Liu 2013-12-05 09:43:49 UTC
Description of problem:
After upgrade from 1.2 to 2.0, app's alias is missing. App can not be accessed via alias.

Version-Release number of selected component (if applicable):
http://etherpad.corp.redhat.com/ose-2-0-upgrade-2013-12-04

How reproducible:
Always

Steps to Reproduce:
1. Setup ose-1.2 env
2. Create app on the node, and add alias to this app.
3. Upgrade env from 1.2 to 2.0

Actual results:
Try to access app using alias, but it return "302" error.
$ curl -H "Host: bar.jialiu.com" <node_ip>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://bar.jialiu.com/console">here</a>.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at bar.jialiu.com Port 80</address>
</body></html>

Log into node:
[root@node .httpd.d]# strings aliases.db
[root@node .httpd.d]# strings aliases.db.rpmsave
redmine-jialiu.my-ose12.com.cn
bar.jialiu.com

Obviously, ose-upgrade does not take care alias stuff.

Expected results:
alias should work well.

Additional info:

Comment 2 Jason DeTiberus 2013-12-18 17:06:00 UTC
https://github.com/openshift/enterprise/pull/59

Comment 3 Johnny Liu 2013-12-19 12:04:27 UTC
Verified this bug with openshift-enterprise-yum-validator-2.0.0c-1.git.21.e364d06.el6op.noarch, and PASS.