mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
A VM migrated to a host without its network, network filter or secret was refused only when the migration was asked for. The box above the hosts now names, for each pair of hosts it has read, what the VMs of one use (their running definition and the one for the next start) that the other lacks: an active network, a network filter or one of other rules, a secret by UUID or usage; the migration check refuses moving those VMs there. A host in maintenance is no destination. What a host's VMs need is read on its own thread, apart from the pools and snapshots, and used again for 5 minutes, so a host of many VMs is compared too. The rules of two hosts' filters are compared as the migration check does (filter_rules, shared).
39 lines
3.3 KiB
HTML
39 lines
3.3 KiB
HTML
{% load i18n %}{% load bootstrap_icons %}{# what wants a look: views.attention, each with a link to where it is handled #}
|
|
{% if attention %}
|
|
<div class="alert alert-warning" role="status">
|
|
<h2 class="h6">{% bs_icon 'exclamation-triangle' %} {% trans "Needs attention" %}</h2>
|
|
<ul class="mb-0 small">
|
|
{% for compute in attention.hosts %}
|
|
<li><a href="{% url 'overview' compute.pk %}">{{ compute.name }}</a>: {% trans "not answering" %}</li>
|
|
{% endfor %}
|
|
{% for compute, pool in attention.pools %}
|
|
<li><a href="{% url 'storage' compute.pk pool.name %}">{{ compute.name }} / {{ pool.name }}</a>: {% blocktrans with percent=pool.percent %}{{ percent }}% full{% endblocktrans %}</li>
|
|
{% endfor %}
|
|
{% for compute, vm, snapshots in attention.snapshots %}
|
|
<li>{% if vm %}<a href="{% url 'instances:instance' vm.pk %}{% if not vm.is_template %}#snapshots{% endif %}">{{ compute.name }} / {{ vm.name }}</a>{% else %}{{ compute.name }} / {{ snapshots.vm }}{% endif %}:
|
|
{% blocktrans count counter=snapshots.count %}{{ counter }} snapshot older than 30 days{% plural %}{{ counter }} snapshots older than 30 days{% endblocktrans %}</li>
|
|
{% endfor %}
|
|
{% for target, source, what in attention.lacking %}
|
|
<li><a href="{% url 'overview' target.pk %}">{{ target.name }}</a>: {% blocktrans with host=source.name %}VMs of {{ host }} could not migrate here:{% endblocktrans %} {{ what|join:"; " }}</li>
|
|
{% endfor %}
|
|
{% if attention.failed %}
|
|
<li><a href="{% url 'operations:jobs' %}?kind=backup.create&state=failed">{% blocktrans count counter=attention.failed %}{{ counter }} backup failed in the last 7 days{% plural %}{{ counter }} backups failed in the last 7 days{% endblocktrans %}</a></li>
|
|
{% endif %}
|
|
{% for policy, count in attention.not_taken %}
|
|
<li><a href="{% url 'vmbackups:policy' policy.pk %}">{{ policy.name }}</a>: {% blocktrans count counter=count %}{{ counter }} scheduled backup not taken in the last 7 days{% plural %}{{ counter }} scheduled backups not taken in the last 7 days{% endblocktrans %}</li>
|
|
{% endfor %}
|
|
{% if attention.missing %}
|
|
<li><a href="{% url 'vmbackups:index' %}?state=missing">{% blocktrans count counter=attention.missing %}{{ counter }} backup missing from its target{% plural %}{{ counter }} backups missing from their targets{% endblocktrans %}</a></li>
|
|
{% endif %}
|
|
{% if attention.damaged %}
|
|
<li><a href="{% url 'vmbackups:index' %}?state=damaged">{% blocktrans count counter=attention.damaged %}{{ counter }} backup damaged{% plural %}{{ counter }} backups damaged{% endblocktrans %}</a></li>
|
|
{% endif %}
|
|
{% if attention.uncertain %}
|
|
<li><a href="{% url 'operations:jobs' %}?state=uncertain">{% blocktrans count counter=attention.uncertain %}{{ counter }} job ended uncertain{% plural %}{{ counter }} jobs ended uncertain{% endblocktrans %}</a></li>
|
|
{% endif %}
|
|
{% if attention.waiting %}
|
|
<li><a href="{% url 'operations:jobs' %}?state=queued">{% blocktrans count counter=attention.waiting %}{{ counter }} job queued for over an hour{% plural %}{{ counter }} jobs queued for over an hour{% endblocktrans %}</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|