mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 11:16:47 +00:00
A host's capacity (Computes page, new VM dialog) came from get_host_instances, which listed the VMs by ID and by name and then looked each up, read its XML and its info: four calls a VM, for every host on the page. It now uses the VM lists' get_domain_rows: the states in one call and each VM's XML once. get_host_instances had no other caller and is gone. Checked on QEMU against the per-VM info of every domain (running, paused, shut off): the same vCPUs and memory. A VM gone while the host is read is left out instead of making the host's capacity unreadable. |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| connection.py | ||
| create.py | ||
| hostdetails.py | ||
| instance.py | ||
| interface.py | ||
| libvirt-ssh | ||
| network.py | ||
| nodedevs.py | ||
| nwfilters.py | ||
| rwlock.py | ||
| storage.py | ||
| util.py | ||
| virtsecrets.py | ||