Bug 812800 - [Rest API] no useful info is printed out when calling show-port event
[Rest API] no useful info is printed out when calling show-port event
Product: OpenShift Origin
Classification: Red Hat
Component: Master (Show other bugs)
Unspecified Unspecified
low Severity low
: ---
: ---
Assigned To: Ravi Sankar
libra bugs
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2012-04-16 05:31 EDT by Johnny Liu
Modified: 2012-07-13 19:43 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-13 19:43:35 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Johnny Liu 2012-04-16 05:31:48 EDT
Description of problem:
When trigger show-port event, there is no any useful info is printed out.

$ curl -k -X POST -H 'Accept: application/xml' -d event=show-port --user jialiu@redhat.com:214214 https://ec2-107-22-102-43.compute-1.amazonaws.com/broker/rest/domains/jialiu/applications/phptest/events
<?xml version="1.0" encoding="UTF-8"?>
      <field nil="true"></field>
      <exit-code nil="true"></exit-code>
      <text>Added show-port to application phptest</text>

In mcollective log, there is some useful info:
D, [2012-04-16T04:33:04.082513 #1015] DEBUG -- : libra.rb:60:in `cartridge_do_action' cartridge_do_action call / request = #<MCollective::RPC::Request:0x7f6b6b746ea8
   :args=>"'phptest' 'jialiu' '7895502c5dcd4851a46ac0fc858c29b3'",

D, [2012-04-16T04:33:04.082745 #1015] DEBUG -- : libra.rb:61:in `cartridge_do_action' cartridge_do_action validation = php-5.3 show-port 'phptest' 'jialiu' '7895502c5dcd4851a46ac0fc858c29b3'
D, [2012-04-16T04:33:05.024331 #1015] DEBUG -- : libra.rb:102:in `cartridge_do_action' cartridge_do_action (0)
CLIENT_RESULT: No proxy ports defined


I think some similar output should be printed out, e.g: "No proxy ports defined".

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Ravi Sankar 2012-06-28 19:36:48 EDT
Fixed in git rev 1bc7c64f397ab7
Comment 2 Rony Gong 2012-07-02 01:01:39 EDT
Verified on devenv_1869, rhc0.95.5
[rony@localhost mytest]$ curl -k -X POST -H 'Accept: application/xml' -d event=show-port --user qgong@redhat.com:xx https://ec2-23-20-41-56.compute-1.amazonaws.com/broker/rest/domains/qgong/applications/qsruby18/events
<?xml version="1.0" encoding="UTF-8"?>

      <exit-code nil="true"></exit-code>
      <text>Application qsruby18 called show port</text>
      <field nil="true"></field>

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