Bug 832614

Summary: Include the public/external IP address of the node in the response of the application creation rest api
Product: OKD Reporter: Abhishek Gupta <abhgupta>
Component: MasterAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: kraman, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 18:26:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Abhishek Gupta 2012-06-15 23:18:58 UTC
Description of problem:
In the response of the REST API to create the application, return the public/external IP of the node where the application lives (primary gear).

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Abhishek Gupta 2012-06-15 23:20:13 UTC
The external IP is included as part of a separate message in the response. The message exit code is 0, the field is "current_ip", the severity is "info", and the text holds the IP address.

Comment 2 Abhishek Gupta 2012-06-16 01:59:36 UTC
Fixed and waiting for merge
https://github.com/openshift/crankcase/pull/136

Comment 3 Xiaoli Tian 2012-06-19 11:27:33 UTC
Tested this on devenv_1857:
curl -k -H "Accept: application/json" --user "xtian+b101:123456"  https://localhost/broker/rest/domains/domainbill004/applications/ -d name=phpapp1 -d cartridge=php-5.3 -X POST

  "messages": [
    {
      "field": null,
      "exit_code": null,
      "text": "Application phpapp1 was created.",
      "severity": "info"
    },
    {
      "field": "current_ip",
      "exit_code": 0,
      "text": "23.22.129.60",
      "severity": "info"
    },
    {
      "field": "result",
      "exit_code": 0,
      "text": "",
      "severity": "info"
    }