Bug 1507321

Summary: Cannot access Mediawiki123 route after binding to MySQL
Product: OpenShift Container Platform Reporter: Zhang Cheng <chezhang>
Component: Service BrokerAssignee: cchase
Status: CLOSED ERRATA QA Contact: Zhang Cheng <chezhang>
Severity: medium Docs Contact:
Priority: high    
Version: 3.7.0CC: aos-bugs, jmatthew
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
URL: devel
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-28 22:20:01 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:

Comment 1 cchase 2017-10-30 19:46:15 UTC
https://github.com/ansibleplaybookbundle/rhscl-mysql-apb/pull/7

The binding parameters on mysql were not set to the env vars needed by mediawiki.  I've changed them to match.  If you look at the created secret when binding you'll notice the vars:

Old:
  MYSQL_DATABASE: 
  MYSQL_HOST:
  MYSQL_PASSWORD: 
  MYSQL_PORT: 
  MYSQL_USER: 

New:
  DB_HOST: 
  DB_NAME: 
  DB_PASSWORD: 
  DB_PORT: 
  DB_TYPE: 
  DB_USER: 

The new vars should allow the mysql binding to work properly with mediawiki and be more generic should other applications want to be able to switch between databases.

Comment 2 Zhang Cheng 2017-11-03 06:36:06 UTC
Verified with Latest APB images, can access Mediawiki123 route after binding to MySQL. Thanks.

Comment 5 errata-xmlrpc 2017-11-28 22:20:01 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/RHSA-2017:3188