Bug 857824 - The response message of do threadump to unsupported app by REST API need update
Summary: The response message of do threadump to unsupported app by REST API need update
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Master
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: chris alfonso
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-17 06:53 UTC by Rony Gong 🔥
Modified: 2016-02-01 02:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:50:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rony Gong 🔥 2012-09-17 06:53:28 UTC
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:

Comment 1 Rony Gong 🔥 2012-09-21 05:51:04 UTC
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

Comment 2 Xiaoli Tian 2012-09-25 02:14:45 UTC
Move it to ON_QA,since https://github.com/openshift/crankcase/pull/521 is merged to master.

Comment 3 Rony Gong 🔥 2012-09-25 07:52:23 UTC
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>


Note You need to log in before you can comment on or make changes to this bug.