1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/vrtManager
catborise a0a31cd3f2 fix(storages): pools are measured when shown, and only on a host's own pages
libvirt measures a pool's size and free space only when the pool is
refreshed and keeps those figures until the next refresh. The pool
lists read them without a refresh, so they showed a pool's space as of
whenever libvirt last refreshed it: two hosts sharing one pool's
storage told different free space for it, each its own refresh's. On a
test host, a 1 GiB file left libvirt's free space unchanged while df
showed 1 GiB less, until the pool was refreshed.

get_storages_info refreshes each active pool before reading it; a
refresh libvirt refuses (while a volume is cloned in the pool) leaves
the last figures, as the pool pages already do. A refresh scans the
pool's volumes, so pools are read only where one host's are shown: a
host's overview (views.host_pools, its Storage card) and its Storages
page and API. The Computes list and the new-VM dialog's host lines,
which read every host at once, no longer show pools; Compute.capacity
is the vCPUs and memory given.
2026-10-27 21:30:14 +03:00
..
tests fix(storages): pools are measured when shown, and only on a host's own pages 2026-10-27 21:30:14 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
connection.py feat(instances): a new VM can get a cloud-init seed with its hostname and SSH keys 2026-10-25 19:57:15 +03:00
create.py feat(instances): a new VM can get a cloud-init seed with its hostname and SSH keys 2026-10-25 19:57:15 +03:00
hostdetails.py feat(computes): the host overview shows its VMs, capacity and load, also when it cannot be reached 2026-10-27 14:51:18 +03:00
instance.py fix(console): a VM with a QEMU websocket port opens through novncd 2026-10-26 21:27:52 +03:00
interface.py fix(interfaces): a new interface never replaces one the host defines 2026-10-26 16:14:32 +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): fixed addresses, failed creates and stopped networks behave 2026-10-26 15:36:57 +03:00
nwfilters.py fix(nwfilters): a rule is deleted and added exactly as clicked and entered 2026-10-26 15:36:57 +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 fix(storages): pools are measured when shown, and only on a host's own pages 2026-10-27 21:30:14 +03:00
util.py fix(console): the console page judges a TCP/TLS console by the running VM 2026-10-26 23:52:37 +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