How to get service endpoint IP

asked 2017-03-02 13:05:47 -0600

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

  • Create a connection object: https://developer.openstack.org/sdks/python/openstacksdk/users/connection.html (https://developer.openstack.org/sdks/...)
  • Use the connection object to work with services like compute, network, etc. : https://developer.openstack.org/sdks/python/openstacksdk/users/guides/compute.html (https://developer.openstack.org/sdks/...)

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?

edit retag flag offensive close merge delete