Bug 807527
Summary: | Error message is not clear when trying to embed cartridges except mysql/jenkins-client to a scalable app | ||
---|---|---|---|
Product: | OKD | Reporter: | Johnny Liu <jialiu> |
Component: | Pod | Assignee: | Abhishek Gupta <abhgupta> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 1.x | CC: | abhgupta, mpatel |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | devenv_1814 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-08 17:59:31 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Johnny Liu
2012-03-28 04:30:17 UTC
Seems like this is already fixed. Tested on the latest devenv. [root@ip-10-72-79-0 ~]# curl -k -u 'agupta:p' -d 'cartridge=postgresql-8.4' https://localhost/broker/rest/domains/agupta110/applications/app3/cartridges {"data":null,"version":"1.0","messages":[{"text":"Failed to add postgresql-8.4 to application app3 : postgresql-8.4 cannot be embedded in scalable app 'app3'. Allowed cartridges: mysql-5.1,mongodb-2.0,jenkins-client-1.4","field":null,"severity":"error","exit_code":108}],"supported_api_versions":["1.0"],"type":null,"status":"internal_server_error"} [root@ip-10-72-79-0 ~]# curl -k -u 'agupta:p' -d 'cartridge=postgresql-8.4' https://localhost/broker/rest/domains/agupta110/applications/app3/cartridges.xml <?xml version="1.0" encoding="UTF-8"?> <response> <data> <datum nil="true"></datum> </data> <version>1.0</version> <messages> <message> <text>Failed to add postgresql-8.4 to application app3 : postgresql-8.4 cannot be embedded in scalable app 'app3'. Allowed cartridges: mysql-5.1,mongodb-2.0,jenkins-client-1.4</text> <field nil="true"></field> <severity>error</severity> <exit-code>108</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> Verified this bug on devenv_1815, and PASS. $ rhc-ctl-app -a myapp -e add-postgresql-8.4 -p xx Problem reported from server. Response code was 400. Re-run with -d for more information. RESULT: postgresql-8.4 cannot be embedded in scalable app 'myapp'. Allowed cartridges: mysql-5.1,mongodb-2.0,jenkins-client-1.4 $ curl -k -X POST -H 'Accept: application/xml' -d cartridge=postgresql-8.4 --user jialiu:214214 https://ec2-174-129-67-35.compute-1.amazonaws.com/broker/rest/domains/jialiu/applications/myapp/cartridges <?xml version="1.0" encoding="UTF-8"?> <response> <version>1.0</version> <supported-api-versions> <supported-api-version>1.0</supported-api-version> </supported-api-versions> <messages> <message> <field nil="true"></field> <exit-code>108</exit-code> <severity>error</severity> <text>Failed to add postgresql-8.4 to application myapp : postgresql-8.4 cannot be embedded in scalable app 'myapp'. Allowed cartridges: mysql-5.1,mongodb-2.0,jenkins-client-1.4</text> </message> </messages> <status>internal_server_error</status> <type nil="true"></type> <data> <datum nil="true"></datum> </data> </response> |