Page MenuHomePhabricator

Expose hypervisor of instances in Horizon interface
Closed, DuplicatePublic

Description

In Horizon It would be very helpful to see the labvirt on which an instance is running. For example when an instance is facing slow down, to rule out the cpu/io usage of the underlying labvirt.

Meanwhile an admin can run:

for i in $(openstack --os-region eqiad --os-project-name integration server list  | awk -F' ' '{print $2}' | grep -) ; do openstack --os-region eqiad server show $i | egrep hypervisor\|" name" ; done

It might just require a permission to be tweaked, for example:

$ nova hypervisor-list
ERROR (Forbidden): Policy doesn't allow os_compute_api:os-hypervisors to be performed

Which as an admin shows:

+----+-------------------------+-------+---------+
| ID | Hypervisor hostname     | State | Status  |
+----+-------------------------+-------+---------+
| 13 | labvirt1001.eqiad.wmnet | up    | enabled |
| 14 | labvirt1004.eqiad.wmnet | up    | enabled |
| 15 | labvirt1003.eqiad.wmnet | up    | enabled |
| 16 | labvirt1002.eqiad.wmnet | up    | enabled |
| 17 | labvirt1005.eqiad.wmnet | up    | enabled |
...