1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00
webvirtcloud/instances/migrations/0021_instance_fault.py
catborise de9f37a20d feat(instances): alert when a fault stops or pauses a VM
The VM page shows why a VM paused or stopped when nobody asked (a disk
error, a crash, a kernel panic: instances.states.REASONS), but nobody
learnt of it until they opened the page. While an alert channel is set,
the worker reads every host's VM states each minute (one call a host,
all hosts at once, 10 s at most) and queues one alert per fault; the VM
keeps the fault it was alerted for, so a fault is told once and again
only after the VM recovered.
2026-11-26 14:21:35 +03:00

18 lines
409 B
Python

# Generated by Django 5.2.18 on 2026-11-25 06:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instances', '0020_tombstone_keeps'),
]
operations = [
migrations.AddField(
model_name='instance',
name='fault',
field=models.CharField(blank=True, default='', max_length=16),
),
]