Bug 893957
| Summary: | Build jenkins failed for scalable cakephp applications. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OKD | Reporter: | Mengjiao Gao <mgao> | ||||
| Component: | Templates | Assignee: | Dan McPherson <dmcphers> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 2.x | CC: | cgole, szhou, 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-01-17 03:22:22 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: | |||||||
| Attachments: |
|
||||||
Looks like it might just be the port isn't specified on the connection lines: https://github.com/openshift/cakephp-example/blob/master/.openshift/action_hooks/deploy /usr/bin/mysql -u "$OPENSHIFT_MYSQL_DB_USERNAME" --password="$OPENSHIFT_MYSQL_DB_PASSWORD" -h "$OPENSHIFT_MYSQL_DB_HOST" -e "select * from posts;" "$OPENSHIFT_APP_NAME" and /usr/bin/mysql -u "$OPENSHIFT_MYSQL_DB_USERNAME" --password="$OPENSHIFT_MYSQL_DB_PASSWORD" -h "$OPENSHIFT_MYSQL_DB_HOST" "$OPENSHIFT_APP_NAME" < "$OPENSHIFT_REPO_DIR/.openshift/action_hooks/cake.sql" Also this has nothing to do with jenkins right? Just scaled cakephp. Fixed in github verified this on devenv_2679 |
Created attachment 676241 [details] console out Description of problem: Build jenkins failed for scalable cakephp applications. Version-Release number of selected component (if applicable): devenv_2657,STG How reproducible: always Steps to Reproduce: 1.Create a scalable cakephp app in website,and check the app url. 2.Enable jenkins to cakephp. 3.Build cakephp on jenkins server. Actual results: 1.the app url is accessable. 3.Build failed with following message: ------------------------------------- .... ERROR 2003 (HY000): Can't connect to MySQL server on '466283a7bf-devyujie.dev.rhcloud.com' (111) Exit code: 1 Build step 'Execute shell' marked build as failure Archiving artifacts Finished: FAILURE ------------------------------------- Expected results: 3, the scalable cakephp should be built successfully. Additional info: The non-scalable cakephp can be built successfully on jenkins server. For the scalable cakephp, I failed to connect the app's mysql using "mysql -u admin --password=qtSmwGTB-W1i -h 466283a7bf-devyujie.dev.rhcloud.com cakephpscale" in my machine. This problem seems caused by the mysql server connection problem.