Description of problem: This is user feedback: [12:30] <sontek> Yeah, I thought it was weird the cartridge spat out an IP address [12:30] <sontek> but figured I would use it since thats what it gave me In context, we were discussing why the IP for the db might change on randomly on upgrade without notification to the user. I explained that we do so for efficiency (moving gear to the right nodes, but didn't use that terminology yet). The user was confused because we returned IP value but didn't hint on using Env variables.
We get whatever the backend sends back to us. The client has no context or structured data in which to give a better notice to the user. This is a backend issue.
Retaking this. While working with cartridges this sprint I noticed that this is now implemented by the backend. I will take a look at this for RHC. We probably need a story for the site.
Cartridge changes under review https://github.com/jwhonce/origin-server/commit/ba9114fd1b755147fe2f81772bca272bf641bc45
Fixed in https://github.com/openshift/origin-server/pull/648
Verified on devenv_2138 Now we use Env vars instead of ip:port Steps: 1. Create an application 2. Embed db cartridge to it mongodb-2.2: MongoDB 2.2 database added. Please make note of these credentials: Root User: admin Root Password: W44DGr551zhZ Database Name: php1s Connection URL: mongodb://$OPENSHIFT_GEAR_DNS:$OPENSHIFT_MONGODB_DB_PROXY_PORT/ MongoDB gear-local connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/ mysql-5.1: MySQL 5.1 database added. Please make note of these credentials: Root User: admin Root Password: HWy-gsPMQsux Database Name: php1s Connection URL: mysql://$OPENSHIFT_GEAR_DNS:$OPENSHIFT_MYSQL_DB_PROXY_PORT/ MySQL gear-local connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/ postgresql-8.4: PostgreSQL 8.4 database added. Please make note of these credentials: Root User: admin Root Password: IXRQK32P2PJU Database Name: php1s Connection URL: postgresql://$OPENSHIFT_GEAR_DNS:$OPENSHIFT_POSTGRESQL_DB_PROXY_PORT/ PostgreSQL gear-local connection URL: postgresql://$OPENSHIFT_POSTGRESQL_DB_HOST:$OPENSHIFT_POSTGRESQL_DB_PORT/