From 9cda2f4e1b3775393bdab124346fa2f51c25729c Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 4 Nov 2026 13:49:08 +0300 Subject: [PATCH] style(instances): the Migrate tab sets the switches that can lose data apart Unsafe migration and deleting the source files of copied disks sit below a line, apart from how the memory moves, with their help in red. The disk lines read "vda 10.0 GB" instead of a dot-joined fragment. --- instances/templates/instances/migrate_plan.html | 2 +- instances/templates/instances/settings_tab.html | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/instances/templates/instances/migrate_plan.html b/instances/templates/instances/migrate_plan.html index 3ef0a71e..38d5ddc7 100644 --- a/instances/templates/instances/migrate_plan.html +++ b/instances/templates/instances/migrate_plan.html @@ -7,7 +7,7 @@ {% else %} {% for disk in disks %} -

{{ disk.target }} ยท {{ disk.capacity|filesizeformat }}

+

{{ disk.target }} {{ disk.capacity|filesizeformat }}

{{ disk.path }}

{% if disk.shared or not disk.refusal and disk.free_pools %} diff --git a/instances/templates/instances/settings_tab.html b/instances/templates/instances/settings_tab.html index 90bfcedf..1c19aa26 100644 --- a/instances/templates/instances/settings_tab.html +++ b/instances/templates/instances/settings_tab.html @@ -557,8 +557,8 @@

{% bs_icon 'arrow-left-right' %} {% trans "Transfer settings" %}

+ {% if instance.status == 1 or instance.status == 3 %}
- {% if instance.status == 1 or instance.status == 3 %}
@@ -566,7 +566,6 @@

{% trans "The VM keeps running while its memory is copied. Off, it is paused for the transfer." %}

- {% endif %} {% if instance.status == 1 %}
@@ -582,12 +581,19 @@

{% trans "Compresses the memory sent: less network, more CPU on both hosts." %}

+ {% endif %} +
+ {% endif %} + {# the switches that can lose data, set apart from how the memory moves #} + +
+ {% if instance.status == 1 %}
-

{% trans "Skips libvirt's safety checks, such as a disk cache mode that can corrupt data in a migration." %}

+

{% trans "Skips libvirt's safety checks, such as a disk cache mode that can corrupt data in a migration." %}

{% endif %}
@@ -595,9 +601,10 @@
-

{% trans "After a migration that copied disks, their files on the source host go. Disks on shared storage stay." %}

+

{% trans "After a migration that copied disks, their files on the source host go. Disks on shared storage stay." %}

+
{% endif %}