Ask Your Question

APIs for getting the IP address of various nodes running services

asked 2017-03-17 02:31:17 -0500

somenathpal gravatar image

Hi All,

I need to monitor various processes running in Neutron, Cinder nodes etc. For that I need to know the IP address/FQDN of the nodes in which these services are running. I searched through the REST APIs but unable to find one which provide this information. I only found it in case for nova (/servers/detail).

So my question is there any REST api available to get the IP address of the nodes for Neutron ,Cinder etc?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-03-17 21:23:57 -0500

updated 2017-03-18 06:20:08 -0500

Run openstack --debug volume service list and openstack --debug network agent list. The APIs are shown. I don't know why they aren't documented.

Cinder: http://CONTROLLER-IP:8776/v2/ADMIN_PROJECT_ID/os-services

Neutron: http://CONTROLLER-IP:9696/v2.0/agents

To be precise, these APIs only provide the OpenStack host names. They are normally (or always?) identical to the Linux hostnames, so that it shouldn't be too hard to figure out the IP addresses or FQDNs.

edit flag offensive delete link more


Thanks for the response. I am trying to get the same information for keyStone also i.e host that is responsible for launching authentication / keystone service .But unable to find any REST query which provides information.
Is there similar REST APIs available for Keystone service also?

somenathpal gravatar imagesomenathpal ( 2017-03-23 05:26:32 -0500 )edit

In order to find the address of Keystone, you need to check the service catalog. Which you can only access via Keystone. So, this doesn't work. Consequently, if you don't know the Keystone host, you can't access the cloud.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-23 09:36:38 -0500 )edit

We know the IP address of Host which is responsible for responding to REST queries. But I am assuming that the KeyStone service may not be running in the same host. In that case how can we get the IP address of the host which is running the KeyStone service using REST queries?

somenathpal gravatar imagesomenathpal ( 2017-03-23 09:51:43 -0500 )edit

It's the same host. What makes you think it isn't?

Well, in a HA configuration, you can have several Keystones deployed in several controllers, with a front like HA-Proxy. But HA-proxy is outside of OpenStack, so that there is no API to discover the HA-Proxy configuration.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-23 11:51:59 -0500 )edit

Thanks. As I came to know that it is possible to deploy Nova API service and Nova Compute deployed separately I thought same may be possible for Keystone also.

somenathpal gravatar imagesomenathpal ( 2017-03-23 13:27:34 -0500 )edit

Your Answer


Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-03-17 02:31:17 -0500

Seen: 449 times

Last updated: Mar 18 '17