Bug 1018215

Summary: MySQL socket not re-created after git push from local repo to app
Product: OpenShift Online Reporter: N. Harrison Ripps <hripps>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED WORKSFORME QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.x   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-11 20:50:26 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 N. Harrison Ripps 2013-10-11 13:28:55 UTC
Description of problem:
I wrote a quick ruby script to populate a table in mysql, and I've deployed it into a Ruby 1.9 app with no other framework in place. The intent was simply to push it to the app and then SSH in and run the script by hand.

When I pushed it to the app and tried to run the script using a standard `mysql` command, it couldn't connect to the DB. After some investigation, I found that the socket file listed in $OPENSHIFT_MYSQL_DB_SOCKET had never been created. Interestingly, after running `ctl_all restart`, the socket file magically appeared and everything worked.

This seems to happen every time I `git push` from my local repo to the app. 


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


How reproducible:
Always

Steps to Reproduce:
1. 
2.
3.

Actual results:
Socket file referenced by $OPENSHIFT_MYSQL_DB_SOCKET is not created

Expected results:
Socket file should be recreated after every git push

Additional info:
You can see this behavior on OpenShift Online with my app:

dbtest-emichron.rhcloud.com

You will need to log into the app to look around; ping me when you are ready to investigate.

Comment 1 Jhon Honce 2013-10-11 20:50:26 UTC
Please reopen with additional details if this can be reproduced.

Cartridge worked as expected using https://github.com/nhr/dbtest