mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 03:36:48 +00:00
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_api_security.py | ||
| test_audit_rows.py | ||
| test_capacity.py | ||
| test_compute_password.py | ||
| test_cpu_graph.py | ||
| test_host_nav.py | ||
| test_migration_address.py | ||
| test_operation_locks.py | ||
| test_overview.py | ||
| test_overview_status.py | ||
| test_ownership.py | ||
| test_ownership_race.py | ||
| test_quota_down_host.py | ||
| test_reconciliation.py | ||
| test_validators.py | ||
| test_views.py | ||