1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 01:16:10 +00:00
webvirtcloud/computes
catborise 22362de068 feat(computes): a host in maintenance takes no new VM or migration
After a host was emptied with Bulk Migrate for its maintenance, Balance
proposed moving VMs back onto it, and new VMs and migrations could still be
sent there. A superuser now puts a host in maintenance on its page (and
takes it out), each change audited; the form names the state it sets, so a
second page sent meanwhile does not turn it back.

A host in maintenance (Compute.maintenance, refuse_new_vms):
- takes no migration: migration_target refuses it, so the Migrate tab,
  Bulk Migrate, Balance and queued migrate jobs follow one rule; Bulk
  Migrate leaves it out of its destinations and its spread;
- takes no new VM: the create and clone jobs refuse it when asked for and
  again before they start (the REST API submits the same jobs); the create
  pages and the XML define send the user back to the VM list, and the New VM
  dialog lists it without a link;
- is left out of Balance: its VMs neither count nor move, and the Balance
  job refuses a move from it too, before each migration starts.
Its VMs run on; a migration already started finishes. The Computes page and
the host's page show that it is in maintenance.
2026-11-16 15:56:01 +03:00
..
api fix(computes): the compute forms save their own kind, a password as typed, and say when the host is not reached 2026-11-12 09:19:15 +03:00
migrations feat(computes): a host in maintenance takes no new VM or migration 2026-11-16 15:56:01 +03:00
templates feat(computes): a host in maintenance takes no new VM or migration 2026-11-16 15:56:01 +03:00
tests feat(computes): a host in maintenance takes no new VM or migration 2026-11-16 15:56:01 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
apps.py fix: track migrations; installs apply them instead of generating them 2026-10-04 01:08:11 +03:00
balance.py feat(computes): Balance and the spread count each host's share of its size 2026-11-16 13:41:17 +03:00
forms.py fix(computes): the compute forms save their own kind, a password as typed, and say when the host is not reached 2026-11-12 09:19:15 +03:00
jobs.py feat(computes): a host in maintenance takes no new VM or migration 2026-11-16 15:56:01 +03:00
models.py feat(computes): a host in maintenance takes no new VM or migration 2026-11-16 15:56:01 +03:00
reach.py feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once 2026-11-16 10:29:07 +03:00
urls.py feat(computes): a host in maintenance takes no new VM or migration 2026-11-16 15:56:01 +03:00
utils.py fix(admin): two administrators at once leave a superuser and one user per address 2026-11-13 14:54:51 +03:00
validators.py fix(computes): the compute forms save their own kind, a password as typed, and say when the host is not reached 2026-11-12 09:19:15 +03:00
views.py feat(computes): a host in maintenance takes no new VM or migration 2026-11-16 15:56:01 +03:00