Bug 923442
| Summary: | existing embedded cartridges report URL with real IP, not with ENV VAR | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Andre Dietisheim <adietish> |
| Component: | Pod | Assignee: | Rajat Chopra <rchopra> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | dmcphers, jhou, xtian, zzhao |
| 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-04-02 14:26:55 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: | |||
| Bug Depends On: | 916268 | ||
| Bug Blocks: | |||
|
Description
Andre Dietisheim
2013-03-19 20:37:11 UTC
Discussed on IRC with Andre, Rajat, and Mrunal. This will need a migration. Fixed with migrate script li/misc/maintenance/bin/migrate-2.0.25.1 Verified with li/misc/maintenance/bin/migrate-2.0.25.1 Steps: 1. On an old devenv-stage_326 instance, create several scalable apps with mysql/mongo/postgresql cartridges 2. Go to https://broker/datastore , update the connection urls of these apps to the old fashioned way( eg: change mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT to mongodb://myapp-mydomain.rhcloud.com:48681 ) 3. Upgrade server to latest 4. On broker execute the migrate-2.0.25.1 to fix the connection urls 5. On client, retrieve app info The db connections are updated to format like: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/ mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/ postgresql://$OPENSHIFT_POSTGRESQL_DB_HOST:$OPENSHIFT_POSTGRESQL_DB_PORT/ 6. SSH into gear, connect to db cartridges Was able to connect to all db cartridges. I'm not perfectly sure if the migration was completely successful. I checked with an old app I have running on PROD and could still see the embedded mysql reported with the plain IP instead of env-vars: adietish+test/https://openshift.redhat.com: application "aa", embeddded cartridge "mysql-5.1": URL: mysql://127.11.54.1:3306/ PROD has not yet been upgraded yet, this fix has been in STG now. PROD has not yet been upgraded yet, this fix has been in STG now. |