Description of problem: When trying to create a scalable app while reaching gear limit via REST-API, There will be massive error massage which is annoying Version-Release number of selected component (if applicable): devenv_1713 How reproducible: Always Steps to Reproduce: 1.Create an domain. 2.Create two non-scalable app 3.Using REST-API Create another scalable app (which will reach gear limit) Actual results: Return massive error massages. Expected results: The error massages should be friendly. Additional info:
Seems like this issue has already been fixed. [root@ip-10-72-79-0 ~]# curl -k -u 'agupta:p' -d 'scale=true' -d 'name=app3' -d 'cartridge=php-5.3' https://localhost/broker/rest/domains/agupta110/applications {"data":null,"version":"1.0","messages":[{"text":"Failed to create application app3 due to:Failed: Either application limit has already reached or domain doesn't exist for 'agupta'","field":null,"severity":"error","exit_code":null}],"supported_api_versions":["1.0"],"type":null,"status":"internal_server_error"} [root@ip-10-72-79-0 ~]# curl -k -u 'agupta:p' -d 'scale=true' -d 'name=app3' -d 'cartridge=php-5.3' https://localhost/broker/rest/domains/agupta110/applications.xml <?xml version="1.0" encoding="UTF-8"?> <response> <data> <datum nil="true"></datum> </data> <version>1.0</version> <messages> <message> <text>Failed to create application app3 due to:Failed: Either application limit has already reached or domain doesn't exist for 'agupta'</text> <field nil="true"></field> <severity>error</severity> <exit-code nil="true"></exit-code> </message> </messages> <supported-api-versions> <supported-api-version>1.0</supported-api-version> </supported-api-versions> <status>internal_server_error</status> <type nil="true"></type> </response>
It is fixed on devenv_1815. Output: [root@localhost ~]# curl -k -H "Accept: application/xml" --user "yquan:asdfasdf1" https://ec2-23-22-159-8.compute-1.amazonaws.com/broker/rest/domains/domaintest0005/applications/ -X POST -d name=app3 -d scale=true -d cartridge=php-5.3 <?xml version="1.0" encoding="UTF-8"?> <response> <data> <datum nil="true"></datum> </data> <supported-api-versions> <supported-api-version>1.0</supported-api-version> </supported-api-versions> <version>1.0</version> <messages> <message> <exit-code nil="true"></exit-code> <field nil="true"></field> <text>Failed to create application app3 due to:Failed: Either application limit has already reached or domain doesn't exist for 'yquan'</text> <severity>error</severity> </message> </messages> <status>internal_server_error</status> <type nil="true"></type> </response>