Ask Your Question
1

find all openstack hostnames

asked 2015-01-02 15:13:44 -0500

drewfisher gravatar image

Some CLI commands have subcommands which return the physical hostnames where some of the services are running:

$ nova service-list

+----------------+---------------------+----------+---------+-------+----------------------------+-----------------+
| Binary         | Host                | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----------------+---------------------+----------+---------+-------+----------------------------+-----------------+
| nova-conductor | openstack-x4-2      | internal | enabled | up    | 2015-01-02T21:10:22.000000 | -               |
| nova-scheduler | openstack-x4-2      | internal | enabled | up    | 2015-01-02T21:10:27.000000 | -               |
| nova-cert      | openstack-x4-2      | internal | enabled | up    | 2015-01-02T21:10:19.000000 | -               |
| nova-compute   | openstack-x4-1   | nova     | enabled | up    | 2015-01-02T21:10:24.000000 | -               |
| nova-compute   | openstack-t52       | nova     | enabled | up    | 2015-01-02T21:10:23.000000 | -               |
| nova-compute   | openstack-x4-2-4    | nova     | enabled | up    | 2015-01-02T21:10:27.000000 | -               |
| nova-compute   | openstack-11s | nova     | enabled | up    | 2015-01-02T21:10:23.000000 | -               |
| nova-compute   | openstack-x4-2-6    | nova     | enabled | up    | 2015-01-02T21:10:26.000000 | -               |
| nova-compute   | openstack-52-1     | nova     | enabled | up    | 2015-01-02T21:10:19.000000 | -               |
+----------------+---------------------+----------+---------+-------+----------------------------+-----------------+

But similar functionality does not exist for, say, cinder or neutron (at least as I can find it).

Is there a way to query an OpenStack cloud (with or without admin rights) to get a list of all hostnames associated with that cloud?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-01-02 21:00:55 -0500

Each service has something like nova service-list.

Cinder:

cinder service-list

Neutron is a little different. All neutron components , outside of the hypervisors running ovs or some other switch, are agents.

neutron agent-list

Will return all registered agents with neutron.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-01-02 15:13:44 -0500

Seen: 89 times

Last updated: Jan 02 '15