Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenStack REST API output missing real IPs

Hello everyone,

I'm new to OpenStack and have been reading the documentation and testing some of the REST APIs that are exposed. I have been able to get the basics working and have been able to invoke the APIs from a REST client.

One such API I'm trying is fetching endpoints for a particular tenant as noted here http://developer.openstack.org/api-ref-identity-v2.html with a GET request for http://IP:5000/v2.0/tokens/myvalidtoken/endpoints with the X-Auth-Token header set to my valid token. The JSON output it generates is as follows (just the relevant parts):

{
 "name": "nova",
 "adminURL": "http://controller:8774/v2/fef6a56cb3ec4adca49d769b604ae572",
 "internalURL": "http://controller:8774/v2/fef6a56cb3ec4adca49d769b604ae572",
 "publicURL": "http://controller:8774/v2/fef6a56cb3ec4adca49d769b604ae572",
 "type": "compute",
....
}

Why do the URLs have "controller" in there instead of an IP?