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:
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.
Fixed and waiting for merge https://github.com/openshift/crankcase/pull/136
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" }