Ask Your Question

Revision history [back]

How to get service endpoint IP

I use Openstack Python SDK to work with a Openstack cluster. I use two following steps:

  • Create a connection object:
  • Use the connection object to work with services like compute, network, etc. :

The problem is that the connection object returns service endpoints as URLs, such as http://neutron-api.maas:9696 or http://glance.maas:9292. That requires me to update my host file in order to work with those endpoints.

My question is whether the connection object returns IP addresses instead of URLs?