mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 17:06:09 +00:00
A host was put in maintenance with its VMs still on it, and emptying it was a separate step. "Put in maintenance" on a host with VMs that run now opens Bulk Migrate, whose button migrates the chosen VMs and puts the host in maintenance in one transaction: with the job admitted, or not at all; a form sent again finds its job and does not put back a host taken out of maintenance since. The page also puts it in maintenance without migrating, for VMs that cannot move or when no host can take them. Maintenance is not refused while VMs run: it must be on before they move, or a new VM or Balance could take their place. The host shows instead whether it is ready: "Maintenance requested" while VMs other than shut-off ones remain on it (or it cannot be read), with its bulk migration's state; "In maintenance" once none does. None of its VMs starts or resumes there meanwhile. Ending maintenance during the bulk migration lets it go on. |
||
|---|---|---|
| .. | ||
| api | ||
| migrations | ||
| templates | ||
| tests | ||
| __init__.py | ||
| apps.py | ||
| balance.py | ||
| forms.py | ||
| jobs.py | ||
| models.py | ||
| reach.py | ||
| urls.py | ||
| utils.py | ||
| validators.py | ||
| views.py | ||