{% extends "base.html" %} {% load i18n %} {% load common_tags %} {% load static %} {% load operations %} {% load bootstrap_icons %} {% block title %}{% trans "Bulk migrate" %} - {{ compute.name }}{% endblock %} {% block page_heading %}{{ compute.name }} - {% trans "Bulk migrate" %}{% endblock page_heading %} {% block content %}
{% include "computes/host_nav.html" with section="instances" detail=True %}
{% if entering %} {# asked from "Put in maintenance": the host goes in maintenance with its VMs' migration, or without one #}
{% blocktrans with host=compute.name %}Put {{ host }} in maintenance: from then on no new VM or migration comes to it, its VMs cannot be started there, and Balance leaves it out. Migrate its VMs below, or put it in maintenance without migrating them.{% endblocktrans %}
{% csrf_token %}
{% endif %} {% if not targets %}
{% trans "There is no other host to migrate to." %}
{% else %}

{% trans "Each chosen VM migrates in a job of its own: a running VM live, a shut-off one offline. A VM that fails stays on this host." %}

{% if unreachable %}
{% trans "These hosts cannot be read and are left out:" %} {{ unreachable|join:", " }}
{% endif %} {# another destination reloads the list: which VMs can go depends on it; spread over the hosts, so does a VM ticked #}
{% if entering %}{% endif %} {% if spreading %}{% for instance in instances %}{% if not instance.refusal %}{% endif %}{% endfor %}{% endif %}
{% if not parallel %}
{% trans "The worker runs one job at a time: set Worker Concurrency to 2 or more on the Settings page." %}
{% elif not instances %}

{% trans "The host has no VMs." %}

{% else %}
{% csrf_token %}{% submission_key %} {% if entering %}{% endif %} {% if spreading %}{% else %}{% endif %}
{{ compute.name }} {% bs_icon 'arrow-right' %} {% if targets|length > 1 %} {% else %} {{ target.name }} {% endif %} {% if tags %}{# bulk_migrate.js ticks the VMs with the tag chosen #} {% endif %}
{% if spreading %}{% endif %} {% for instance in instances %} {% if spreading %}{% endif %} {% endfor %}
{% trans "Name" %} {% trans "Status" %} {% trans "Memory" %} vCPU{% trans "Destination" %}{% trans "Why" %}
{% if spreading %} {% if instance.target %}{% endif %} {% else %} {% endif %} {% include 'instance_state.html' %} {% if instance.info %}{% widthratio instance.info.2 1 1024 as bytes %}{{ bytes|binary_size }}{% endif %} {{ instance.info.3 }}{{ instance.target.name|default:"" }}{{ instance.refusal|default:"" }}{{ instance.note|default:"" }}
{# kept in sight below a long list #}
{% endif %} {% endif %} {% endblock %} {% block script %} {% endblock %}