Bug 1020440

Summary: phpmyadmin can be added to scalable application and does not work.
Product: OpenShift Online Reporter: Marty <martybjones>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: dmcphers, yujzhang
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-24 03:24:58 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 Marty 2013-10-17 16:33:36 UTC
Description of problem:

I noticed the interface for openshift management console has changed and allowed me to add a myphpadmin cartridge to my scaled application. When I access the phpadmin url, phpadmin loads but I get the following error:
2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

The server is not responding (or the local server's socket is not correctly configured).

Invalid hostname for server 1. Please review your configuration.

Is phpmyadmin supported on scaled applications?



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


How reproducible:


Steps to Reproduce:
1. create a scaled application
2. add myphpadmin cartridge
3. access myphpadmin

Actual results:

2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Expected results:

successfully be able to view data.

Additional info:

Comment 1 Yujie Zhang 2013-10-18 02:08:06 UTC
Tried on PROD, the phpmyadmin can be added to scalable app through website and rhc client without username and password given, and the url of phpmyadmin can not be accessed.

Comment 2 Abhishek Gupta 2013-10-21 23:52:25 UTC
Proposed fix --> https://github.com/openshift/origin-server/pull/3939

Comment 3 openshift-github-bot 2013-10-22 02:52:22 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/fcae2c3d7778d645758352fcdc6a006d95c29e96
Fix for bug 1020440, 1021041, 1021462, 1021467, and a typo

Comment 4 Abhishek Gupta 2013-10-22 17:03:49 UTC
We are now preventing phpmyadmin cartridge from being added to a scalable application.

Comment 6 Yujie Zhang 2013-10-23 02:57:55 UTC
Tested on devenv_3932, the phpmyadmin cartridge can not be added to scalable app through website and rhc, error message "phpmyadmin-4 cannot be embedded in scalable app 'jbosseap'." will be displayed, so verify this bug, thanks!

Comment 7 Yujie Zhang 2013-10-23 10:29:01 UTC
Tested on STG(devenv-stage_528), this issue also fixed on STG, so verify this bug, thanks.