Page MenuHomePhabricator

openstack-browser: include deployment view support
Open, LowPublic

Description

It would be great to have a new tab in openstack-browser to get an overview of a given deployment.
URL can be something like: https://tools.wmflabs.org/openstack-browser/deployments/

For the deployment/region, basic info would be:

  • nova hypervisors
  • neutron agents

Ideally, also this information:

  • neutron nets/subnets/routers objects
  • servers (VMs) running in each hypervisor.
  • is hypervisor part of the nova scheduling pool?

Skeleton presentation:

eqiad1-r hypervisors
+----+-----------------------------+-------+---------+
| ID | Hypervisor hostname         | State | Status  |
+----+-----------------------------+-------+---------+
| 1  | cloudvirt1021.eqiad.wmnet   | up    | enabled |
| 2  | cloudvirt1022.eqiad.wmnet   | up    | enabled |
| 3  | cloudvirt1019.eqiad.wmnet   | up    | enabled |
| 4  | cloudvirt1020.eqiad.wmnet   | up    | enabled |
| 5  | cloudvirt1023.eqiad.wmnet   | up    | enabled |
| 6  | cloudvirt1024.eqiad.wmnet   | up    | enabled |
| 7  | cloudvirt1018.eqiad.wmnet   | up    | enabled |
| 8  | cloudvirt1017.eqiad.wmnet   | up    | enabled |
| 9  | cloudvirt1016.eqiad.wmnet   | up    | enabled |
| 10 | cloudvirt1015.eqiad.wmnet   | up    | enabled |
| 11 | cloudvirt1014.eqiad.wmnet   | up    | enabled |
| 12 | cloudvirtan1001.eqiad.wmnet | up    | enabled |
| 13 | cloudvirtan1005.eqiad.wmnet | up    | enabled |
| 14 | cloudvirtan1003.eqiad.wmnet | up    | enabled |
| 15 | cloudvirtan1002.eqiad.wmnet | up    | enabled |
| 16 | cloudvirtan1004.eqiad.wmnet | up    | enabled |
| 17 | cloudvirt1025.eqiad.wmnet   | up    | enabled |
| 18 | cloudvirt1013.eqiad.wmnet   | up    | enabled |
| 19 | cloudvirt1030.eqiad.wmnet   | up    | enabled |
| 20 | cloudvirt1029.eqiad.wmnet   | up    | enabled |
| 21 | cloudvirt1026.eqiad.wmnet   | up    | enabled |
| 22 | cloudvirt1027.eqiad.wmnet   | up    | enabled |
| 23 | cloudvirt1028.eqiad.wmnet   | up    | enabled |
+----+-----------------------------+-------+---------+

(this is the raw output of nova hypervisor-list)

eqiad1-r neutron agents
+--------------------------------------+--------------------+-----------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host            | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+-----------------+-------------------+-------+----------------+---------------------------+
| 0b2f519f-a5ab-4188-82bf-01431810d55a | DHCP agent         | cloudnet1003    | nova              | :-)   | True           | neutron-dhcp-agent        |
| 1071c198-ed57-4b5a-9439-30e66a31aa69 | Linux bridge agent | cloudvirtan1005 |                   | :-)   | True           | neutron-linuxbridge-agent |
| 28ac0947-f263-4655-98fe-f868325678ae | Linux bridge agent | cloudvirt1015   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 2eeef198-8af7-4e5d-bd73-e14a2a8d2404 | Linux bridge agent | cloudvirtan1004 |                   | :-)   | True           | neutron-linuxbridge-agent |
| 3388792d-560d-4bfe-9054-addf1c239f4a | Linux bridge agent | cloudvirt1027   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 468aef2a-8eb6-4382-abba-bc284efd9fa5 | DHCP agent         | cloudnet1004    | nova              | :-)   | True           | neutron-dhcp-agent        |
| 49b85656-d67b-44c3-ac71-e8c75b849783 | Linux bridge agent | cloudvirt1029   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 4be214c8-76ef-40f8-9d5d-4c344d213311 | L3 agent           | cloudnet1003    | nova              | :-)   | True           | neutron-l3-agent          |
| 5b2a8c8b-3b13-4607-b0bd-460d507f5de1 | Linux bridge agent | cloudvirt1024   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 65f9d324-5126-4336-8f52-001cd0c9fdd1 | Linux bridge agent | cloudvirt1016   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 6dafa3f3-9aeb-47b6-9535-e0932abe4435 | Linux bridge agent | cloudvirt1014   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 70a51cd5-7d76-40d9-b4f1-6dd556122391 | Linux bridge agent | cloudvirt1013   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 778b2757-088c-4742-8d76-22c3e6d9a306 | Linux bridge agent | cloudvirt1017   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 813c9efb-b2af-4063-a8b3-8e8f1976977c | Linux bridge agent | cloudvirt1025   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 8e8cb1fd-62b6-475f-ae2f-2b85355fd3e3 | Linux bridge agent | cloudvirt1030   |                   | :-)   | True           | neutron-linuxbridge-agent |
| 9238d8cd-02cb-4d1f-a629-3b3d8cc9c1bf | Linux bridge agent | cloudnet1003    |                   | :-)   | True           | neutron-linuxbridge-agent |
| 970df1d1-505d-47a4-8d35-1b13c0dfe098 | L3 agent           | cloudnet1004    | nova              | :-)   | True           | neutron-l3-agent          |
| a3d2685e-f826-4666-993c-0ad304718d41 | Linux bridge agent | cloudvirt1026   |                   | :-)   | True           | neutron-linuxbridge-agent |
| ad3461d7-b79e-4279-921d-5a476e296767 | Linux bridge agent | cloudnet1004    |                   | :-)   | True           | neutron-linuxbridge-agent |
| afcb9b7f-c1a6-4ff4-9b10-92bfbe8d1a56 | Linux bridge agent | cloudvirtan1002 |                   | :-)   | True           | neutron-linuxbridge-agent |
| afe173eb-35ba-444a-9960-899629786d2f | Linux bridge agent | cloudvirtan1003 |                   | :-)   | True           | neutron-linuxbridge-agent |
| b0f1cdf2-8d03-4f7b-978c-201ecea69b84 | Linux bridge agent | cloudvirt1020   |                   | :-)   | True           | neutron-linuxbridge-agent |
| b296d716-d72f-479e-9977-5e06637ca89d | Linux bridge agent | cloudvirt1028   |                   | :-)   | True           | neutron-linuxbridge-agent |
| b2f9da63-2f16-4aa5-9400-ae708a733f91 | Linux bridge agent | cloudvirt1021   |                   | :-)   | True           | neutron-linuxbridge-agent |
| bad663b3-fd25-4393-a546-4b1b4bdec4db | Linux bridge agent | cloudvirtan1001 |                   | :-)   | True           | neutron-linuxbridge-agent |
| c2403ab2-512a-4663-8f4c-3851940d3847 | Linux bridge agent | cloudvirt1018   |                   | :-)   | True           | neutron-linuxbridge-agent |
| d475e07d-52b3-476e-9a4f-e63b21e1075e | Metadata agent     | cloudnet1004    |                   | :-)   | True           | neutron-metadata-agent    |
| e349b624-d593-43cf-ac9a-59f473cfa5c6 | Metadata agent     | cloudnet1003    |                   | :-)   | True           | neutron-metadata-agent    |
| e382a233-e6a0-422e-9d2e-5651082783fc | Linux bridge agent | cloudvirt1022   |                   | :-)   | True           | neutron-linuxbridge-agent |
| e9f219db-efdd-4157-9045-48316c61de5e | Linux bridge agent | cloudvirt1023   |                   | :-)   | True           | neutron-linuxbridge-agent |
| fc45a34d-d8a4-45fe-982d-5b4b7a8fcde1 | Linux bridge agent | cloudvirt1019   |                   | :-)   | True           | neutron-linuxbridge-agent |
+--------------------------------------+--------------------+-----------------+-------------------+-------+----------------+---------------------------+

(this is the raw output of neutron agent-list)

Event Timeline

BTW all this info can be seen using Horizon in the admin project.

If it has to be in the admin project that may be problematic - IIRC that is the one project that novaobserver cannot observe, can't remember if there was a good reason for that.