Bug 974899
Summary: | phpmyadmin can not connect to mysql | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Lei Zhang <lzhang> |
Component: | Containers | Assignee: | Vojtech Vitek <vvitek> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 2.x | CC: | hasari, hripps, mpatel, pmorie, vvitek, xtian |
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: | 2013-06-24 14:56:07 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
Lei Zhang
2013-06-17 05:23:21 UTC
After ssh into the app, mysql can be connected. I followed the steps to reproduce on curent production: ZEND rhc app create -a zend5 -t zend-5.6 rhc cartridge add -a zend5 -c mysql-5.1 rhc cartridge add -a zend5 -c phpmyadmin-3.4 PHP rhc app create -a php5 -t php-5.3 rhc cartridge add -a php5 -c mysql-5.1 rhc cartridge add -a php5 -c phpmyadmin-3.4 ..and in both cases the PHPMyAdmin is working correctly. Reproduced on current DEVENV. Verified with the devenv. phpMyAdmin is not picking up the config file. It is then defaulting to connect to 'localhost' via socket. This bug is v1->v2 regression. https://github.com/openshift/origin-server/pull/2893 This bug must be fixed in the following exact order: 1. Run phpmyadmin v2->v2 migration 2. Update phpmyadmin cartridge RPM on each node Explanation of the above: All nodes where phpmyadmin v1 cartridge was ever installed have the /etc/phpMyAdmin/config.inc.php file changed to the OpenShift-specific configuration. All "pure" v2 nodes doesn't have that OpenShift configuration but the RHEL's default one instead. This is the cause of bug 974899. We need to make sure that we're going to provide the user-space symlinks in all the gears (/sandbox/phpMyAdmin/config.inc.php) prior to fixing the /etc/phpMyAdmin/config.inc.php file by replacing it with a symlink to sandbox, as we can't let it point to yet nonexistent gear paths. Alternative Pull Request without the /sandbox polydir concept: https://github.com/openshift/origin-server/pull/2899 Another Pull Request - the cartridge RPM makes local copy of phpMyAdmin to the cartridge /usr directory. And the RPM is not changing any file owned by root, finally. https://github.com/openshift/origin-server/pull/2906 The same as above but bundle the phpMyAdmin into the cartridge RPM: https://github.com/openshift/origin-server/pull/2907 Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/c1f35124304262fb72ca19dca3e4dce1a70ecabf fix phpMyAdmin config file Fixes bug 974899 https://bugzilla.redhat.com/show_bug.cgi?id=974899 Test on INT(devenv_3395), Connection URL of phpmyadmin can be accessed successfully and check the related file in devev instance,cartridges/openshift-origin-cartridge-phpmyadmin/openshift-origin-cartridge-phpmyadmin.spec and cartridges/openshift-origin-cartridge-phpmyadmin/versions/shared/phpMyAdmin/config.inc.php also were changed. so verified it. |