1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00
webvirtcloud/computes/migrations
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
..
0001_initial.py Python3 & Django 2.2 Migration - Fix & Updates 2020-03-16 16:59:45 +03:00
0002_auto_20200529_1320.py Reworked some computes forms and views 2020-05-29 19:25:36 +06:00
0003_auto_20200615_0637.py Added missing migrations 2020-06-15 12:38:44 +06:00
0004_compute_migration_address.py feat(computes): a compute names the address migrations reach it on 2026-10-06 15:05:40 +03:00
0005_alter_compute_hostname_alter_compute_login.py fix(computes): a compute's hostname and login cannot inject a connection URI or ssh option 2026-10-06 22:10:19 +03:00
0006_login_password_length.py fix(computes): host pages survive a down host and a vTPM secret 2026-10-26 15:36:57 +03:00
0007_gstfsd_key.py fix(gstfsd): only the panel, with the host's key, can change a VM's disk 2026-10-31 01:53:43 +03:00
0008_migration_address_help.py fix(computes): a VM migrates to its host's panel address when it has no migration address 2026-11-01 18:41:07 +03:00
0009_host_uuid.py fix(computes): a libvirt host is one compute, and a compute's VMs stay on their host 2026-11-12 09:19:03 +03:00
0010_maintenance.py 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