1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00

feat(instances): a report of every VM with its addresses and OS, as an Excel file

The Administration menu gets "VM report (.xlsx)", a workbook for
superusers. The VMs sheet has one row per VM on every compute, shut-off
ones and those the panel has not registered too: name,
state, host, OS and OS family, vCPUs, memory, IP addresses and where they
came from, MAC addresses, owners, and whether the panel has registered
it. A Coverage sheet says when it was made and what could not be read.

The addresses come from the same live reading as the address search,
now shared by both. The OS is the guest agent's (libvirt's guest info)
or, without one, the libosinfo id a tool such as virt-install wrote into
the definition. Link-local IPv6 addresses are left out of the report.
Text cells stay text: a VM name starting with "=" is not a formula.

openpyxl 3.1.5 writes the workbook.
This commit is contained in:
catborise 2026-10-24 21:56:49 +03:00
parent 5fb01f842a
commit 3e09d8724c
8 changed files with 404 additions and 56 deletions

View file

@ -14,6 +14,7 @@ drf-spectacular[sidecar]==0.30.0
gunicorn==26.2.0
libvirt-python>=9.0.0
lxml>=6.1
openpyxl==3.1.5
paramiko==5.0.0
psycopg[binary]==3.3.6
python-engineio==4.14.0