Created attachment 668318 [details] The info in the app creation page said that the app cannot be scaled. Description of problem: In the app creation page, the message "This application shares resources and can't be scaled." is shown in the Scaling part, and there's no choice list for user to choose to create a scalable app. The app creation page is shown as the attachment. Version-Release number of selected component (if applicable): fork_ami_refctr1 How reproducible: always Steps to Reproduce: 1.Go to website and login. 2.Check the app's creation page. 3.Try to create a scalable app. Actual results: At step 2, the message "This application shares resources and can't be scaled." will be shown. Then user cannot be able to create a scalable app at step 3. Expected results: User should be able to choose to create a scalable app. Additional info:
Lili, can you take a look at this one. It appears none of the scaling properties are being returned with the rest_cartridge (broker/rest/cartridges.json) call.
Tested this issue on fork_ami_refctr1_381, I still couldn't create all scalable non-templates applications. But I can create scalable template apps (including spring, rubyonrail, wordpress, django, capedrawf, cakephp and kit) .
fork_ami_refctr1_386
Verified this issue on fork_ami_refctr1_387, user can change the scaling item of non-template app to create a scalable application now. Thanks!
There are some minor issues with the fix. A new value "current_scale" has shown up in /broker/rest/cartridges that should not be there.
https://github.com/openshift/origin-server/pull/5343
Moving back to modified until it's at least being merged.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/1ce59d082956e446554ac75c0798431ab30fcb48 Bugs 1084980 and 889947
Note current_scale is only removed from GET /cartridges and GET /cartridge/id. It still exists for GET /application/id/cartridges and GET /application/id/cartridge/id
Verified on devenv_4739 The 'current_scale' is removed from GET /cartridges and GET /cartridge/id The 'current_scale' remains in GET /application/id/cartridges and GET /application/id/cartridge/id