1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/vrtManager
catborise d9f9ebab58 refactor(computes): the Computes page reads capacity through vrtManager
The capacity read lived in its own module with raw libvirt calls and a
thread pool with a deadline, beside helpers that already read the same
things. It now uses them:

- wvmHostDetails.get_capacity() sums the vCPUs and memory of all and of
  the running VMs from get_host_instances(), against the host's info.
- get_storages_info() also gives each pool's free space.
- Compute.capacity joins the two, like cpu_count and ram_size, and is
  None when the host is down or the read fails.

The page reads the hosts one after another, as it already connected to
each of them; a host that cannot be reached is given up after the
connect timeout. computes/capacity.py and its thread handling are gone.
The page looks and sorts as before.
2026-10-25 12:27:05 +03:00
..
tests refactor(computes): the Computes page reads capacity through vrtManager 2026-10-25 12:27:05 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
connection.py fix: a network, pool or secret a VM needs is not stopped or deleted 2026-10-22 08:34:55 +03:00
create.py fix(instances): device edits fit every definition and device type 2026-10-09 18:13:23 +03:00
hostdetails.py refactor(computes): the Computes page reads capacity through vrtManager 2026-10-25 12:27:05 +03:00
instance.py fix(instances): a disk on an LVM pool is not resized, the page says so instead of failing 2026-10-18 21:10:06 +03:00
interface.py fix(interfaces): deleting a bridge keeps the devices it held 2026-10-18 22:01:18 +03:00
libvirt-ssh fix(vrtManager): libvirt connections open within a time limit 2026-10-05 09:06:52 +03:00
network.py fix(networks): a DHCP range change is reported only when it was made 2026-10-22 09:02:13 +03:00
nwfilters.py fix(nwfilters): a filter is changed in place, also while a VM uses it 2026-10-22 09:55:27 +03:00
rwlock.py fix(vrtManager): modernize rwlock for Python 3.12 compatibility and add tests 2026-09-24 21:49:52 +03:00
storage.py refactor(computes): the Computes page reads capacity through vrtManager 2026-10-25 12:27:05 +03:00
util.py fix(instances): device edits fit every definition and device type 2026-10-09 18:13:23 +03:00
virtsecrets.py fix: a network, pool or secret a VM needs is not stopped or deleted 2026-10-22 08:34:55 +03:00