Red Hat Bugzilla – Bug 822080
cannot access mysql shell for scalable app after alter namespace
Last modified: 2015-05-14 18:54:12 EDT
Description of problem:
create scalable app and embed mysql to it, after alter domain, mysql shell cannot be accessed since the .env/OPENSHIFT_DB_GEAR_DNS and .env/OPENSHIFT_DB_URL not changed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.create scalable app
2.add mysql to the app
4.ssh to the app and use mysql shell
mysql shell cannot be accessed.
[no1s-bmengdev2.dev.rhcloud.com ~]\> mysql
ERROR 2005 (HY000): Unknown MySQL server host '46e1917008-bmengdev.dev.rhcloud.com' (1)
should connect to mysql db without any error.
domain name changed from bmengdev to bmengdev2
[no1s-bmengdev2.dev.rhcloud.com ~]\> env|grep DB
Looks like execute-connections are not called on the mysql gear for scalable apps. If the connectors are not called, then the DB_GEAR_DNS is not updated.
From your output -- namespace for the app is bmengdev2 -- as seen from the
haproxy app ssh session: no1s-bmengdev2.dev.rhcloud.com
and the DB_GEAR_DNS still is using the old bmengdev namespace (note missing 2
at the end). OPENSHIFT_DB_GEAR_DNS=46e1917008-bmengdev.dev.rhcloud.com
Assigning to rchopra.
*** Bug 825245 has been marked as a duplicate of this bug. ***
Fixed with pull request # 61 on crankcase repo. rev#ab4dab6ad50b462ab6d9706dac72cca10c0ebbd6
verified on devenv_1806,
issue has been fixed.