Bug 822080 - cannot access mysql shell for scalable app after alter namespace
cannot access mysql shell for scalable app after alter namespace
Product: OpenShift Origin
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Rajat Chopra
libra bugs
: Regression, Triaged
: 825245 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2012-05-16 05:40 EDT by Meng Bo
Modified: 2015-05-14 18:54 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-08 13:59:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Meng Bo 2012-05-16 05:40:29 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):

How reproducible:

Steps to Reproduce:
1.create scalable app
2.add mysql to the app
3.alter namespace
4.ssh to the app and use mysql shell
Actual results:
mysql shell cannot be accessed.
[no1s-bmengdev2.dev.rhcloud.com ~]\> mysql
ERROR 2005 (HY000): Unknown MySQL server host '46e1917008-bmengdev.dev.rhcloud.com' (1)

Expected results:
should connect to mysql db without any error.

Additional info:
domain name changed from bmengdev to bmengdev2

[no1s-bmengdev2.dev.rhcloud.com ~]\> env|grep DB
Comment 1 Ram Ranganathan 2012-05-21 17:27:38 EDT
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.
Comment 2 Ram Ranganathan 2012-05-25 14:29:54 EDT
*** Bug 825245 has been marked as a duplicate of this bug. ***
Comment 3 Rajat Chopra 2012-05-25 15:24:07 EDT
Fixed with pull request # 61 on crankcase repo. rev#ab4dab6ad50b462ab6d9706dac72cca10c0ebbd6
Comment 4 Meng Bo 2012-05-28 05:45:12 EDT
verified on devenv_1806,
issue has been fixed.

Note You need to log in before you can comment on or make changes to this bug.