Description of problem: Since thread-dump only surpport jboss, jbossas, ruby now, then if using REST API do threaddump for unsupported cartridge, should show useful response like "can't support this kind app", same as command line interface. Version-Release number of selected component (if applicable): devenv_2182 How reproducible: Always Steps to Reproduce: 1.Create app for threaddump unsupported cartridge type like(perl, python, nodejs) 2.REST API asccess: curl -k -H 'Accept: application/xml' --user 'qgong:111111' https://ec2-107-20-84-173.compute-1.amazonaws.com/broker/rest/domains/qgong7/applications/qjboss/events -X POST -d event=thread-dump 3. Actual results: include info: <type>application</type> <status>ok</status> <messages> <message> <severity>result</severity> <field nil="true"></field> <text>Added thread-dump to application qperl</text> <exit-code>0</exit-code> </message> </messages> Expected results: should include message like "The threaddump command is not supported by this application type." RESULT: The threaddump command is not supported by this application type. Additional info:
Also find this error by command line interface, maybe they are one issue, so filed together. last sprint, for threddump unsupported app, it show message like "The threaddump command is not supported by this application type." [qgong@localhost dev]$ rhc threaddump qphp Password: RESULT: Added thread-dump to application qphp
Move it to ON_QA,since https://github.com/openshift/crankcase/pull/521 is merged to master.
verified on devenv_2222 [qgong@localhost dev]$ rhc threaddump qdiy Password: RESULT: The threaddump command is not supported by this application type. and REST API <messages> <message> <severity>result</severity> <field nil="true"></field> <exit-code>0</exit-code> <text>The threaddump command is not supported by this application type.</text> </message> </messages>