Description of problem: Create an application,and try to add addon cartridge,but can not get any addon cartridge information,such as database name and database username/password Create a jenkins-1.4 app,after creating it successfully,but can not get user name and password. Version-Release number of selected component (if applicable): devenv_3326 How reproducible: Always Steps to Reproduce: 1.Create an app 2.Add cartridge for the app 3.Create a jenkins-1.4 app Actual results: 2.Can not get cartridge information 3.Can not get jenkins username and password Expected results: Can get cartridge information Can get jenkins username and password Additional info:
May be related to the return value changes from the DELETE operation.
Can't reproduce on latest code. Please provide more recreation information.
Test this bug on devenv_3353 Create jenkins-1.4 app,but can not get username and password,please refer to #attachment 1 [details] Add cartridge for the app(for example : add mongodb-2.2),but can not cartridge information,such as username and password.Please refer to #attachment 2 [details]
Created attachment 760407 [details] jenkins
Created attachment 760408 [details] cartridge
This bug only happened on web console. If use rhc to create jenkins-1.4 app or add cartridge to the app,can get information. [sunwei@dhcp-8-229 dev]$ rhc cartridge add mysql-5.1 -a r9 -p x Adding mysql-5.1 to application 'r9' ... Success mysql-5.1 (MySQL Database 5.1) ------------------------------ Gears: Located with ruby-1.9 Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/ Database Name: r9 Password: 3Bhrn1WWVKTw Username: admins4HqNeB RESULT: Added mysql-5.1 to application r9 Embedded app details: Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT MySQL 5.1 database added. Please make note of these credentials: Root User: admins4HqNeB Root Password: 3Bhrn1WWVKTw Database Name: r9 Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/ You can manage your new MySQL database by also embedding phpmyadmin-3.4. The phpmyadmin username and password will be the same as the MySQL credentials above. [sunwei@dhcp-8-229 ~]$ rhc app create jks jenkins-1.4 --no-git -p x Application Options ------------------- Namespace: wsun3dev3354 Cartridges: jenkins-1.4 Gear Size: default Scaling: no Creating application 'jks' ... done Waiting for your DNS name to be available ... done jks @ http://jks-wsun3dev3354.dev.rhcloud.com/ (uuid: e6badf0ed3f411e28de812313b094525) --------------------------------------------------------------------------------------- Created: 2:45 PM Gears: 1 (defaults to small) Git URL: ssh://e6badf0ed3f411e28de812313b094525.rhcloud.com/~/git/jks.git/ SSH: e6badf0ed3f411e28de812313b094525.rhcloud.com jenkins-1.4 (Jenkins Server 1.4) -------------------------------- Gears: 1 small RESULT: Application jks was created. The cartridge jenkins deployed a template application Jenkins created successfully. Please make note of these credentials: User: admin Password: NJ5_TuZML4iM Note: You can change your password at: https://jks-wsun3dev3354.dev.rhcloud.com/me/configure
As of 2.0.28, result messages from creating an app looked like this in the API: "messages": [ { "exit_code":null, "field":null, "severity":"info", "text":"Application j1 was created." }, { "exit_code":0, "field":"result", "severity":"info", "text":"Jenkins created successfully. Please make note of these credentials: ..." } ] Now, result messages look like this: "messages": [ { "exit_code":null, "field":null, "severity":"info", "text":"Application j1 was created." }, { "exit_code":0, "field":null, "severity":"result", "text":"Jenkins created successfully. Please make note of these credentials: ..." } ] Updating RHC to work with either field:"result" or severity:"result", and updating the console to work with severity:"result"
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/07e30a749f6c75f991c9c59ff99a8d85d1e1144b Fix bug 971328 - jenkins creation missing result messages
Commit pushed to master at https://github.com/openshift/rhc https://github.com/openshift/rhc/commit/af50c4a267349e0b9340f51d14ded86cd715d831 Fix bug 971328 - new results message format
Verified on devenv_3373 After adding addon cartridge and creating jeknins-1.4 app,can get cartridge information and jenkins username and password