mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
feat(computes): Bulk Migrate spreads a host's VMs over the others; host checks asked once
Bulk Migrate sent every chosen VM to one destination, without looking at
its memory. With several other hosts it now spreads them by default
(computes.balance.spread): the largest VMs first, each to the host that
has the least memory, then vCPUs, with it; a VM that holds its memory
(running or paused) only where it fits the memory the host's running and
paused VMs leave. The page shows where
each VM goes and makes the spread again when a VM is ticked or unticked;
a VM no host has room for says so. One destination stays a choice. The
host.bulk_migrate job takes a destination per VM ("moves").
The Balance and Bulk Migrate pages asked, for every VM and destination,
the host's identity and whether both hosts share each disk directory,
which writes a marker file on the shared storage: about 86 ms a pair,
sequential, so minutes with a few hundred VMs on ten hosts. A Reach
(computes/reach.py) asks each host pair and each directory once and
reads a VM's definitions once. vrtManager: wvmInstances.shares and
file_disks, also used by disk_plan.
read_fleet reads the hosts, their VMs and loads for both pages.
This commit is contained in:
parent
cf288a54cf
commit
ea20f12bc8
15 changed files with 744 additions and 430 deletions
|
|
@ -1,5 +1,7 @@
|
|||
"""The Balance page's proposal: which running VMs to migrate so that the
|
||||
hosts give their running VMs about the same memory, then the same vCPUs."""
|
||||
"""Where VMs migrate: the Balance page's proposal (propose), which running
|
||||
VMs to migrate so that the hosts give their running VMs about the same
|
||||
memory, then the same vCPUs; and a bulk migration's spread over the other
|
||||
hosts (spread)."""
|
||||
|
||||
|
||||
def propose(loads, vms, room):
|
||||
|
|
@ -58,3 +60,29 @@ def _steps(loads, vms, room, per_memory):
|
|||
room[target] -= ram
|
||||
left.remove(vm)
|
||||
moves.append((pk, source, target))
|
||||
|
||||
|
||||
def spread(loads, vms, room):
|
||||
"""Where each VM of a host being emptied goes: {VM: target}, and the
|
||||
loads after. loads and room as propose's, of the hosts the VMs may go
|
||||
to. vms: (VM, memory KiB, vCPUs, whether it holds its memory (not shut
|
||||
off), the hosts it may go to).
|
||||
|
||||
The largest VMs first, each to the host it may go to that has the least
|
||||
memory, then vCPUs, with it; one that holds its memory only where it
|
||||
fits the room. A shut-off VM counts too: it takes its memory when it
|
||||
starts. A VM no host takes is left out."""
|
||||
loads = {host: list(load) for host, load in loads.items()}
|
||||
room = dict(room)
|
||||
placed = {}
|
||||
for pk, ram, vcpus, holds, targets in sorted(vms, key=lambda vm: (-vm[1], -vm[2], vm[0])):
|
||||
fits = sorted(target for target in targets if not holds or ram <= room[target])
|
||||
if not fits:
|
||||
continue
|
||||
target = min(fits, key=lambda host: (loads[host][0] + ram, loads[host][1] + vcpus))
|
||||
loads[target][0] += ram
|
||||
loads[target][1] += vcpus
|
||||
if holds:
|
||||
room[target] -= ram
|
||||
placed[pk] = target
|
||||
return placed, loads
|
||||
|
|
|
|||
|
|
@ -135,29 +135,39 @@ class Migrations(Kind):
|
|||
|
||||
@register
|
||||
class BulkMigrate(Migrations):
|
||||
"""Migrates the chosen VMs of a host to another, for the host's
|
||||
maintenance: a running VM live, a shut-off one offline."""
|
||||
"""Migrates the chosen VMs of a host to other hosts, one or several,
|
||||
for the host's maintenance: a running VM live, a shut-off one offline."""
|
||||
|
||||
name = "host.bulk_migrate"
|
||||
label = gettext_noop("Bulk migrate")
|
||||
|
||||
def normalize(self, raw):
|
||||
return {"compute": int(raw["compute"]), "target": int(raw["target"]), "parallel": int(raw["parallel"]),
|
||||
"instances": sorted({int(pk) for pk in raw["instances"]})}
|
||||
moves = {int(vm): int(target) for vm, target in raw["moves"]}
|
||||
return {"compute": int(raw["compute"]), "parallel": int(raw["parallel"]),
|
||||
"moves": [[vm, target] for vm, target in sorted(moves.items())]}
|
||||
|
||||
def moves(self, params):
|
||||
return [(vm, params["compute"], params["target"]) for vm in params["instances"]]
|
||||
return [(vm, params["compute"], target) for vm, target in params["moves"]]
|
||||
|
||||
def validate(self, user, params):
|
||||
super().validate(user, params)
|
||||
targets = {target for _vm, target in params["moves"]}
|
||||
if params["compute"] in targets:
|
||||
raise util.OperationError(gettext_noop("A VM is already on its destination"))
|
||||
if Compute.objects.filter(pk__in=targets).count() != len(targets):
|
||||
raise util.OperationError(gettext_noop("A destination host was deleted"))
|
||||
|
||||
def plan(self, user, params):
|
||||
compute = Compute.objects.get(pk=params["compute"])
|
||||
target = Compute.objects.get(pk=params["target"])
|
||||
targets = {target for _vm, target in params["moves"]}
|
||||
names = Compute.objects.filter(pk__in=targets).order_by("name").values_list("name", flat=True)
|
||||
return Plan(claims={claims.bulk_migrate_key(): Claim.EXCLUSIVE}, resource=claims.compute_key(compute.pk),
|
||||
label=f"{compute.name} -> {target.name}",
|
||||
label=f"{compute.name} -> {', '.join(names)}",
|
||||
intent={"migrations": {}, "where": _where(self.hosts(params))})
|
||||
|
||||
def log_entry(self, op, state):
|
||||
source, _sep, target = op.resource_label.partition(" -> ")
|
||||
message = f"Bulk migrate to {target}"
|
||||
source, _sep, targets = op.resource_label.partition(" -> ")
|
||||
message = f"Bulk migrate to {targets}"
|
||||
return source, "", "", message if state == Operation.SUCCEEDED else f"{message} ({state})"
|
||||
|
||||
|
||||
|
|
|
|||
61
computes/reach.py
Normal file
61
computes/reach.py
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
"""Where the VMs of a bulk migration or a balance can migrate without a disk
|
||||
copy, each host and each directory a pair of hosts may share asked once:
|
||||
the pages ask it for every VM and destination."""
|
||||
|
||||
import os
|
||||
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from libvirt import VIR_DOMAIN_XML_INACTIVE, libvirtError
|
||||
from vrtManager.instance import file_disks, wvmInstances
|
||||
from webvirtcloud.middleware import error_text
|
||||
|
||||
|
||||
class Reach:
|
||||
def __init__(self, request):
|
||||
self.request = request
|
||||
self.conns = {} # compute pk: its connection
|
||||
self.hosts = set() # (source pk, target pk) a VM of the source was found able to go to
|
||||
self.shared = {} # (source pk, target pk, directory): whether both hosts see it as one, or why not known
|
||||
self.directories = {} # VM pk: the directories of its file disks, or the error that read them
|
||||
|
||||
def _conn(self, compute):
|
||||
if compute.pk not in self.conns:
|
||||
self.conns[compute.pk] = wvmInstances(compute.hostname, compute.login, compute.password, compute.type)
|
||||
return self.conns[compute.pk]
|
||||
|
||||
def refusal(self, instance, target):
|
||||
"""Why the VM cannot migrate to target in a bulk migration, or None:
|
||||
target is another host the panel reaches, and both hosts see every
|
||||
disk file of the VM, now and at its next start (one they do not
|
||||
takes a copy, chosen on the VM's Migrate tab)."""
|
||||
from instances.jobs import migration_target
|
||||
|
||||
pair = (instance.compute_id, target.pk)
|
||||
if pair not in self.hosts:
|
||||
# kept once it passed: a refusal may be the VM's own (gone meanwhile), not the hosts'
|
||||
try:
|
||||
migration_target(instance, target.pk)
|
||||
self.hosts.add(pair)
|
||||
except libvirtError as err:
|
||||
return error_text(self.request, err)
|
||||
if instance.pk not in self.directories:
|
||||
try:
|
||||
domain = instance.proxy.instance
|
||||
xmls = (domain.XMLDesc(0), domain.XMLDesc(VIR_DOMAIN_XML_INACTIVE))
|
||||
self.directories[instance.pk] = {os.path.dirname(path) for xml in xmls for _disk, path in file_disks(xml)}
|
||||
except libvirtError as err:
|
||||
self.directories[instance.pk] = error_text(self.request, err)
|
||||
if isinstance(self.directories[instance.pk], str):
|
||||
return self.directories[instance.pk]
|
||||
for directory in sorted(self.directories[instance.pk]):
|
||||
key = (*pair, directory)
|
||||
if key not in self.shared:
|
||||
try:
|
||||
self.shared[key] = self._conn(target).shares(self._conn(instance.compute), directory)
|
||||
except libvirtError as err: # a host's pools could not be read: not that destination
|
||||
self.shared[key] = error_text(self.request, err)
|
||||
if isinstance(self.shared[key], str):
|
||||
return self.shared[key]
|
||||
if not self.shared[key]:
|
||||
return _("A disk file is not on storage both hosts share: migrate it from its page")
|
||||
return None
|
||||
|
|
@ -12,30 +12,36 @@
|
|||
{% include "computes/host_nav.html" with section="instances" detail=True %}
|
||||
</div>
|
||||
</div>
|
||||
{% if not target %}
|
||||
{% if not targets %}
|
||||
<div class="alert alert-warning shadow-sm">{% trans "There is no other host to migrate to." %}</div>
|
||||
{% else %}
|
||||
<p class="text-body-secondary">{% 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." %}</p>
|
||||
{# another destination reloads the list: which VMs can go depends on it #}
|
||||
<form method="get" id="bulk-migrate-choose"></form>
|
||||
{% if unreachable %}
|
||||
<div class="alert alert-warning shadow-sm">{% trans "These hosts cannot be read and are left out:" %} {{ unreachable|join:", " }}</div>
|
||||
{% endif %}
|
||||
{# another destination reloads the list: which VMs can go depends on it; spread over the hosts, so does a VM ticked #}
|
||||
<form method="get" id="bulk-migrate-choose"{% if spreading %} data-spread{% endif %}>
|
||||
{% if spreading %}{% for instance in instances %}{% if not instance.refusal %}<input type="hidden" name="shown" value="{{ instance.pk }}">{% endif %}{% endfor %}{% endif %}
|
||||
</form>
|
||||
{% if not parallel %}
|
||||
<div class="alert alert-warning shadow-sm">{% trans "The worker runs one job at a time: set Worker Concurrency to 2 or more on the Settings page." %}</div>
|
||||
{% elif not instances %}
|
||||
<div class="alert alert-info shadow-sm">{% trans "The host has no VMs." %}</div>
|
||||
{% else %}
|
||||
<form method="post" class="card shadow-sm">{% csrf_token %}{% submission_key %}
|
||||
<input type="hidden" name="target" value="{{ target.pk }}">
|
||||
{% if spreading %}<input type="hidden" name="spread" value="1">{% else %}<input type="hidden" name="target" value="{{ target.pk }}">{% endif %}
|
||||
<div class="card-header d-flex flex-wrap align-items-center gap-2">
|
||||
<span class="fw-semibold">{{ compute.name }}</span> {% bs_icon 'arrow-right' %}
|
||||
{% if targets|length > 1 %}
|
||||
<select name="target" id="bulk-migrate-target" form="bulk-migrate-choose" class="form-select form-select-sm w-auto" aria-label="{% trans "Destination" %}">
|
||||
<option value="spread"{% if spreading %} selected{% endif %}>{% trans "Spread over the other hosts" %}</option>
|
||||
{% for host in targets %}<option value="{{ host.pk }}"{% if host == target %} selected{% endif %}>{{ host.name }}</option>{% endfor %}
|
||||
</select>
|
||||
{% else %}
|
||||
<span class="fw-semibold">{{ target.name }}</span>
|
||||
{% endif %}
|
||||
<div class="form-check form-switch ms-auto mb-0">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="bulk-migrate-shut-off">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="bulk-migrate-shut-off"{% if shut_off_ticked %} checked{% endif %}>
|
||||
<label class="form-check-label small" for="bulk-migrate-shut-off">{% trans "Also migrate the shut-off VMs" %}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -43,11 +49,12 @@
|
|||
<table class="table table-hover align-middle mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="ps-3"><input class="form-check-input" type="checkbox" id="bulk-migrate-all" aria-label="{% trans "Select all" %}" title="{% trans "Select all" %}"></th>
|
||||
<th scope="col" class="ps-3"><input class="form-check-input" type="checkbox" id="bulk-migrate-all"{% if all_ticked %} checked{% endif %} aria-label="{% trans "Select all" %}" title="{% trans "Select all" %}"></th>
|
||||
<th scope="col">{% trans "Name" %}</th>
|
||||
<th scope="col">{% trans "Status" %}</th>
|
||||
<th scope="col" class="text-end">{% trans "Memory" %}</th>
|
||||
<th scope="col" class="text-end">vCPU</th>
|
||||
{% if spreading %}<th scope="col">{% trans "Destination" %}</th>{% endif %}
|
||||
<th scope="col"><span class="visually-hidden">{% trans "Why" %}</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
@ -55,14 +62,21 @@
|
|||
{% for instance in instances %}
|
||||
<tr>
|
||||
<td class="ps-3">
|
||||
<input class="form-check-input" type="checkbox" name="instance" value="{{ instance.pk }}" id="bulk-migrate-{{ instance.pk }}"
|
||||
{% if spreading %}
|
||||
<input class="form-check-input bulk-migrate-vm" type="checkbox" name="vm" value="{{ instance.pk }}" id="bulk-migrate-{{ instance.pk }}" form="bulk-migrate-choose"
|
||||
{% if instance.info.0 == 5 %} data-shut-off{% endif %}{% if instance.target %} checked{% endif %}{% if instance.refusal %} disabled{% endif %}>
|
||||
{% if instance.target %}<input type="hidden" name="instance" value="{{ instance.pk }}"><input type="hidden" name="target" value="{{ instance.target.pk }}">{% endif %}
|
||||
{% else %}
|
||||
<input class="form-check-input bulk-migrate-vm" type="checkbox" name="instance" value="{{ instance.pk }}" id="bulk-migrate-{{ instance.pk }}"
|
||||
{% if instance.info.0 == 5 %} data-shut-off{% elif not instance.refusal %} checked{% endif %}{% if instance.refusal %} disabled{% endif %}>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td><label for="bulk-migrate-{{ instance.pk }}">{{ instance.name }}</label></td>
|
||||
<td>{% include 'instance_state.html' %}</td>
|
||||
<td class="text-end text-nowrap">{% if instance.info %}{% widthratio instance.info.2 1 1024 as bytes %}{{ bytes|filesizeformat }}{% endif %}</td>
|
||||
<td class="text-end">{{ instance.info.3 }}</td>
|
||||
<td class="small text-body-secondary">{{ instance.refusal|default:"" }}</td>
|
||||
{% if spreading %}<td>{{ instance.target.name|default:"" }}</td>{% endif %}
|
||||
<td class="small text-body-secondary">{{ instance.refusal|default:"" }}{{ instance.note|default:"" }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
@ -74,7 +88,11 @@
|
|||
<select name="parallel" id="bulk-migrate-parallel" class="form-select form-select-sm w-auto">
|
||||
{% for n in parallel %}<option value="{{ n }}"{% if forloop.last %} selected{% endif %}>{{ n }}</option>{% endfor %}
|
||||
</select>
|
||||
{% if spreading %}
|
||||
{% blocktrans with source=compute.name asvar question %}Migrate the chosen VMs from {{ source }} to the hosts shown?{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with source=compute.name dest=target.name asvar question %}Migrate the chosen VMs from {{ source }} to {{ dest }}?{% endblocktrans %}
|
||||
{% endif %}
|
||||
<button type="submit" class="btn btn-primary ms-auto" id="bulk-migrate-submit" data-confirm="{{ question }}">
|
||||
{% trans "Migrate the chosen VMs" %} <span class="badge text-bg-light" id="bulk-migrate-count"></span>
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@ one job of migrate jobs that take only a running VM."""
|
|||
from unittest.mock import patch
|
||||
|
||||
import libvirt
|
||||
from computes.balance import propose
|
||||
from computes.balance import propose, spread
|
||||
from computes.jobs import Balance
|
||||
from computes.models import Compute
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.test import SimpleTestCase, TestCase
|
||||
from django.urls import reverse
|
||||
from instances.models import Instance
|
||||
from lxml import etree, html
|
||||
from lxml import html
|
||||
from operations import claims, jobs
|
||||
from operations.models import Operation
|
||||
|
||||
|
|
@ -73,6 +73,20 @@ class ProposeTests(SimpleTestCase):
|
|||
self.assertEqual(propose(loads, [(1, "a", 4, 2, {"b"})], ROOM)[0], [])
|
||||
|
||||
|
||||
class SpreadTests(SimpleTestCase):
|
||||
def test_the_largest_vm_goes_first_each_to_the_emptiest_host(self):
|
||||
loads = {"b": (4, 0), "c": (0, 0)}
|
||||
vms = [(1, 2, 1, True, {"b", "c"}), (2, 6, 1, True, {"b", "c"}), (3, 3, 1, False, {"b", "c"})]
|
||||
placed, after = spread(loads, vms, ROOM)
|
||||
self.assertEqual(placed, {2: "c", 3: "b", 1: "c"})
|
||||
self.assertEqual(after, {"b": [7, 1], "c": [8, 2]})
|
||||
|
||||
def test_a_running_vm_goes_only_where_it_fits_and_a_shut_off_one_anywhere(self):
|
||||
loads = {"b": (0, 0)}
|
||||
placed, _after = spread(loads, [(1, 8, 1, True, {"b"}), (2, 8, 1, False, {"b"})], {"b": 4})
|
||||
self.assertEqual(placed, {2: "b"})
|
||||
|
||||
|
||||
class BalancePageTests(TestCase):
|
||||
def setUp(self):
|
||||
self.conn = libvirt.open("test:///default")
|
||||
|
|
@ -91,14 +105,11 @@ class BalancePageTests(TestCase):
|
|||
self.client.force_login(get_user_model().objects.create_superuser("ba-admin", "ba@example.com", "pw"))
|
||||
|
||||
def page(self, **query):
|
||||
def disk_plan(conn, xml):
|
||||
return [{"shared": "/local/" not in path} for path in etree.fromstring(xml).xpath("//source/@file")]
|
||||
|
||||
with patch("vrtManager.connection.connection_manager.get_connection", return_value=self.conn), \
|
||||
patch("computes.views.utils.refresh_instance_database"), \
|
||||
patch("instances.jobs.migration_target"), \
|
||||
patch("computes.views.wvmInstances") as dest:
|
||||
dest.return_value.disk_plan.side_effect = disk_plan
|
||||
patch("computes.reach.wvmInstances") as dest:
|
||||
dest.return_value.shares.side_effect = lambda conn, directory: directory != "/local"
|
||||
self.response = self.client.get(reverse("balance"), query)
|
||||
return html.fromstring(self.response.content)
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ from django.contrib.auth import get_user_model
|
|||
from django.test import TestCase
|
||||
from django.urls import reverse
|
||||
from instances.models import Instance
|
||||
from lxml import etree, html
|
||||
from lxml import html
|
||||
from appsettings.models import AppSettings
|
||||
from computes.jobs import BulkMigrate
|
||||
from operations import claims, jobs
|
||||
|
|
@ -40,16 +40,13 @@ class BulkMigratePageTests(TestCase):
|
|||
self.vms[name] = Instance.objects.create(compute=self.compute, name=name, uuid=domain.UUIDString())
|
||||
self.client.force_login(get_user_model().objects.create_superuser("ev-admin", "ev@example.com", "pw"))
|
||||
|
||||
def page(self):
|
||||
def disk_plan(conn, xml):
|
||||
return [{"shared": "/local/" not in path} for path in etree.fromstring(xml).xpath("//source/@file")]
|
||||
|
||||
def page(self, **query):
|
||||
with patch("vrtManager.connection.connection_manager.get_connection", return_value=self.conn), \
|
||||
patch("computes.views.utils.refresh_instance_database"), \
|
||||
patch("instances.jobs.migration_target"), \
|
||||
patch("computes.views.wvmInstances") as dest:
|
||||
dest.return_value.disk_plan.side_effect = disk_plan
|
||||
response = self.client.get(reverse("bulk_migrate", args=[self.compute.id]))
|
||||
patch("computes.reach.wvmInstances") as dest:
|
||||
dest.return_value.shares.side_effect = lambda conn, directory: directory != "/local"
|
||||
response = self.client.get(reverse("bulk_migrate", args=[self.compute.id]), query)
|
||||
return html.fromstring(response.content)
|
||||
|
||||
def box(self, page, name):
|
||||
|
|
@ -78,8 +75,8 @@ class BulkMigratePageTests(TestCase):
|
|||
response = self.bulk_migrate(self.other.pk, chosen)
|
||||
self.assertRedirects(response, reverse("instances", args=[self.compute.id]), fetch_redirect_response=False)
|
||||
(op,) = Operation.objects.all()
|
||||
self.assertEqual((op.kind, op.params), ("host.bulk_migrate", {"compute": self.compute.pk, "target": self.other.pk,
|
||||
"parallel": 2, "instances": sorted(chosen)}))
|
||||
self.assertEqual((op.kind, op.params), ("host.bulk_migrate", {
|
||||
"compute": self.compute.pk, "parallel": 2, "moves": [[pk, self.other.pk] for pk in sorted(chosen)]}))
|
||||
|
||||
def test_a_destination_gone_since_the_form_was_shown_is_refused(self):
|
||||
gone = self.other.pk
|
||||
|
|
@ -91,7 +88,46 @@ class BulkMigratePageTests(TestCase):
|
|||
self.assertEqual(self.page().xpath("//select[@name='target']"), [])
|
||||
self.assertIn("ev-other", self.page().xpath("//div[contains(@class, 'card-header')]/span/text()"))
|
||||
Compute.objects.create(name="ev-third", hostname="198.51.100.32", login="", password="", type=4)
|
||||
self.assertEqual(self.page().xpath("//select[@name='target']/option/text()"), ["ev-other", "ev-third"])
|
||||
self.assertEqual(self.page().xpath("//select[@name='target']/option/text()"),
|
||||
["Spread over the other hosts", "ev-other", "ev-third"])
|
||||
|
||||
def spread(self, page):
|
||||
"""{VM name: the host it goes to} of the migrations the page would run."""
|
||||
names = {str(vm.pk): name for name, vm in self.vms.items()}
|
||||
hosts = {str(host.pk): host.name for host in Compute.objects.all()}
|
||||
(form,) = page.xpath("//form[contains(@class, 'card')]")
|
||||
return {names[vm]: hosts[target] for vm, target in zip(form.xpath(".//input[@name='instance']/@value"),
|
||||
form.xpath(".//input[@name='target']/@value"))}
|
||||
|
||||
def test_with_several_hosts_the_vms_spread_over_them(self):
|
||||
Compute.objects.create(name="ev-third", hostname="198.51.100.32", login="", password="", type=4)
|
||||
self.assertEqual(self.spread(self.page()), {"ev-run": "ev-other"})
|
||||
both = [self.vms["ev-run"].pk, self.vms["ev-off"].pk]
|
||||
# a shut-off VM ticked goes too, to the host the running one left emptier
|
||||
self.assertEqual(self.spread(self.page(shown=both, vm=both)), {"ev-run": "ev-other", "ev-off": "ev-third"})
|
||||
# one unticked stays
|
||||
self.assertEqual(self.spread(self.page(shown=both, vm=both[1:])), {"ev-off": "ev-other"})
|
||||
|
||||
def test_the_vms_spread_also_when_this_hosts_capacity_cannot_be_read(self):
|
||||
Compute.objects.create(name="ev-third", hostname="198.51.100.32", login="", password="", type=4)
|
||||
real = Compute.capacity.func
|
||||
|
||||
def capacity(host):
|
||||
return None if host.pk == self.compute.pk else real(host)
|
||||
|
||||
with patch.object(Compute, "capacity", property(capacity)):
|
||||
self.assertEqual(self.spread(self.page()), {"ev-run": "ev-other"})
|
||||
|
||||
def test_spread_vms_go_in_one_bulk_migration_job_with_their_hosts(self):
|
||||
third = Compute.objects.create(name="ev-third", hostname="198.51.100.32", login="", password="", type=4)
|
||||
run, off = self.vms["ev-run"].pk, self.vms["ev-off"].pk
|
||||
response = self.client.post(reverse("bulk_migrate", args=[self.compute.id]),
|
||||
{"spread": "1", "instance": [run, off], "target": [self.other.pk, third.pk],
|
||||
"parallel": "2", "submission_key": "evac0000spr"})
|
||||
self.assertRedirects(response, reverse("instances", args=[self.compute.id]), fetch_redirect_response=False)
|
||||
(op,) = Operation.objects.all()
|
||||
self.assertEqual(op.params["moves"], sorted([[run, self.other.pk], [off, third.pk]]))
|
||||
self.assertEqual(op.resource_label, "ev -> ev-other, ev-third")
|
||||
|
||||
def test_a_host_with_no_other_host_says_so(self):
|
||||
self.other.delete()
|
||||
|
|
@ -124,8 +160,7 @@ class BulkMigrateJobTests(TestCase):
|
|||
|
||||
def run_job(self, parallel, ends):
|
||||
"""Runs the bulk migration of every VM; each round, ends(job) gives the end state of a running migration."""
|
||||
params = {"compute": self.compute.pk, "target": self.other.pk, "parallel": parallel,
|
||||
"instances": [vm.pk for vm in self.vms]}
|
||||
params = {"compute": self.compute.pk, "parallel": parallel, "moves": [[vm.pk, self.other.pk] for vm in self.vms]}
|
||||
op = Operation.objects.create(kind="host.bulk_migrate", user=self.admin, username=self.admin.username,
|
||||
submission_key="key-evac0001", params=params,
|
||||
intent=BulkMigrate().plan(self.admin, params).intent)
|
||||
|
|
@ -182,11 +217,11 @@ class BulkMigrateJobTests(TestCase):
|
|||
self.assertNotIn(left.pk, [job.params["instance"] for job in self.migrations])
|
||||
|
||||
def test_one_bulk_migration_runs_at_a_time(self):
|
||||
raw = {"compute": self.compute.pk, "target": self.other.pk, "parallel": 1, "instances": [self.vms[0].pk]}
|
||||
raw = {"compute": self.compute.pk, "parallel": 1, "moves": [[self.vms[0].pk, self.other.pk]]}
|
||||
jobs.submit("host.bulk_migrate", self.admin, raw, "key-evac0002")
|
||||
with self.assertRaises(claims.Busy):
|
||||
jobs.submit("host.bulk_migrate", self.admin, {**raw, "compute": self.other.pk, "target": self.compute.pk},
|
||||
"key-evac0003")
|
||||
jobs.submit("host.bulk_migrate", self.admin,
|
||||
{**raw, "compute": self.other.pk, "moves": [[self.vms[0].pk, self.compute.pk]]}, "key-evac0003")
|
||||
|
||||
def test_a_host_changed_meanwhile_stops_the_bulk_migration(self):
|
||||
def ends(job):
|
||||
|
|
@ -232,7 +267,7 @@ class BulkMigrateJobTests(TestCase):
|
|||
jobs.submit("instance.migrate", self.admin, raw, "key-mig00003")
|
||||
|
||||
def test_the_host_page_shows_the_bulk_migration_and_not_its_migrations(self):
|
||||
params = {"compute": self.compute.pk, "target": self.other.pk, "parallel": 2, "instances": [self.vms[0].pk]}
|
||||
params = {"compute": self.compute.pk, "parallel": 2, "moves": [[self.vms[0].pk, self.other.pk]]}
|
||||
bulk = jobs.submit("host.bulk_migrate", self.admin, params, "key-bulk0001")
|
||||
child = jobs.submit("instance.migrate", self.admin, {"instance": self.vms[0].pk, "target": self.other.pk},
|
||||
"key-mig00004", parent=bulk)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
"""The Bulk Migrate page's script (static/js/bulk_migrate.js): another
|
||||
destination reloads the list; the header box ticks or unticks every VM that
|
||||
can migrate, "Also migrate the shut-off VMs" only the shut-off ones; a
|
||||
refused VM stays unticked."""
|
||||
refused VM stays unticked. The button counts the ticked VMs. Spread over the
|
||||
hosts, every change reloads the list."""
|
||||
|
||||
import json
|
||||
import shutil
|
||||
|
|
@ -19,15 +20,21 @@ const boxes = [
|
|||
{name: "refused", checked: false, disabled: true, shutOff: false},
|
||||
];
|
||||
const handlers = {};
|
||||
const box = (id) => ({addEventListener: (name, fn) => { handlers[id] = fn; }});
|
||||
const box = (id) => ({id, addEventListener: (name, fn) => { handlers[id] = fn; }});
|
||||
const button = {disabled: false}, counter = {textContent: ""};
|
||||
const ids = {"bulk-migrate-all": box("all"), "bulk-migrate-shut-off": box("shut-off"), "bulk-migrate-target": box("target"),
|
||||
"bulk-migrate-submit": button, "bulk-migrate-count": counter};
|
||||
let submitted = 0;
|
||||
let submitted = 0, shownRemoved = 0;
|
||||
const choose = {
|
||||
dataset: SPREAD ? {spread: ""} : {},
|
||||
submit: () => { submitted += 1; },
|
||||
querySelectorAll: () => [{remove: () => { shownRemoved += 1; }}],
|
||||
};
|
||||
const ids = {"bulk-migrate-all": box("bulk-migrate-all"), "bulk-migrate-shut-off": box("bulk-migrate-shut-off"),
|
||||
"bulk-migrate-target": box("bulk-migrate-target"), "bulk-migrate-submit": button,
|
||||
"bulk-migrate-count": counter, "bulk-migrate-choose": choose};
|
||||
const selectors = {
|
||||
"input[name=instance]:not(:disabled)": (b) => !b.disabled,
|
||||
"input[data-shut-off]:not(:disabled)": (b) => b.shutOff && !b.disabled,
|
||||
"input[name=instance]:checked": (b) => b.checked,
|
||||
".bulk-migrate-vm:not(:disabled)": (b) => !b.disabled,
|
||||
".bulk-migrate-vm[data-shut-off]:not(:disabled)": (b) => b.shutOff && !b.disabled,
|
||||
".bulk-migrate-vm:checked": (b) => b.checked,
|
||||
};
|
||||
vm.runInNewContext(SCRIPT, vm.createContext({document: {
|
||||
getElementById: (id) => ids[id],
|
||||
|
|
@ -36,33 +43,43 @@ vm.runInNewContext(SCRIPT, vm.createContext({document: {
|
|||
}}));
|
||||
const ticked = () => boxes.filter((b) => b.checked).map((b) => b.name);
|
||||
const seen = [], counts = [[counter.textContent, button.disabled]];
|
||||
for (const [id, checked] of STEPS) {
|
||||
handlers[id]({target: {checked, form: {submit: () => { submitted += 1; }}}});
|
||||
handlers.document(); // the change bubbles to the page
|
||||
for (const [id, checked, value] of STEPS) {
|
||||
const target = {id, checked, value, form: choose};
|
||||
handlers[id]?.({target});
|
||||
handlers.document({target}); // the change bubbles to the page
|
||||
seen.push(ticked());
|
||||
counts.push([counter.textContent, button.disabled]);
|
||||
}
|
||||
console.log(JSON.stringify({seen, submitted, counts}));
|
||||
console.log(JSON.stringify({seen, submitted, counts, shownRemoved}));
|
||||
"""
|
||||
|
||||
|
||||
@unittest.skipUnless(shutil.which("node"), "node is not installed")
|
||||
class BulkMigrateScriptTests(unittest.TestCase):
|
||||
def run_script(self, steps):
|
||||
"""{seen: the ticked VMs after each step, submitted: the destination form's reloads}."""
|
||||
code = f"const SCRIPT = {json.dumps(SCRIPT.read_text())};" + RUN.replace("STEPS", json.dumps(steps))
|
||||
def run_script(self, steps, spread=False):
|
||||
"""{seen: the ticked VMs after each step, submitted: the list's reloads, counts: the button's
|
||||
[count, off] before and after each step, shownRemoved: the spread's VMs dropped from the reload}."""
|
||||
code = (f"const SCRIPT = {json.dumps(SCRIPT.read_text())}; const SPREAD = {json.dumps(spread)};"
|
||||
+ RUN.replace("STEPS", json.dumps(steps)))
|
||||
out = subprocess.run(["node", "-e", code], capture_output=True, text=True, check=True, timeout=30)
|
||||
return json.loads(out.stdout)
|
||||
|
||||
def test_select_all_ticks_every_vm_that_can_migrate(self):
|
||||
self.assertEqual(self.run_script([["all", True], ["all", False]])["seen"], [["run", "off"], []])
|
||||
self.assertEqual(self.run_script([["bulk-migrate-all", True], ["bulk-migrate-all", False]])["seen"],
|
||||
[["run", "off"], []])
|
||||
|
||||
def test_the_shut_off_box_ticks_only_the_shut_off_vms(self):
|
||||
self.assertEqual(self.run_script([["shut-off", True], ["shut-off", False]])["seen"], [["run", "off"], ["run"]])
|
||||
result = self.run_script([["bulk-migrate-shut-off", True], ["bulk-migrate-shut-off", False]])
|
||||
self.assertEqual(result["seen"], [["run", "off"], ["run"]])
|
||||
|
||||
def test_the_button_counts_the_ticked_vms_and_is_off_without_one(self):
|
||||
self.assertEqual(self.run_script([["all", False], ["all", True]])["counts"],
|
||||
self.assertEqual(self.run_script([["bulk-migrate-all", False], ["bulk-migrate-all", True]])["counts"],
|
||||
[[1, False], [0, True], [2, False]])
|
||||
|
||||
def test_another_destination_reloads_the_list(self):
|
||||
self.assertEqual(self.run_script([["target", False]])["submitted"], 1)
|
||||
result = self.run_script([["bulk-migrate-target", False, "7"]])
|
||||
self.assertEqual((result["submitted"], result["shownRemoved"]), (1, 1))
|
||||
|
||||
def test_spread_over_the_hosts_a_change_reloads_the_list(self):
|
||||
result = self.run_script([["bulk-migrate-3", False], ["bulk-migrate-parallel", False]], spread=True)
|
||||
self.assertEqual(result["submitted"], 1) # the number at once changes nothing of the list
|
||||
|
|
|
|||
40
computes/tests/test_reach.py
Normal file
40
computes/tests/test_reach.py
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
"""Reach asks each host pair and each directory once, however many VMs and
|
||||
destinations a page asks about."""
|
||||
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from computes.models import Compute
|
||||
from computes.reach import Reach
|
||||
from django.test import RequestFactory, TestCase
|
||||
from instances.models import Instance
|
||||
from libvirt import libvirtError
|
||||
|
||||
XML = "<domain><devices><disk type='file'><source file='/shared/{name}.qcow2'/><target dev='vda'/></disk></devices></domain>"
|
||||
|
||||
|
||||
class ReachTests(TestCase):
|
||||
def test_hosts_and_directories_are_asked_once(self):
|
||||
source = Compute.objects.create(name="re", hostname="192.0.2.60", login="", password="", type=4)
|
||||
targets = [Compute.objects.create(name=f"re-{n}", hostname=f"192.0.2.6{n}", login="", password="", type=4)
|
||||
for n in (1, 2)]
|
||||
vms = [Instance.objects.create(compute=source, name=f"re-vm{n}", uuid=f"00000000-0000-4000-8000-00000000020{n}")
|
||||
for n in range(3)]
|
||||
with patch("instances.jobs.migration_target") as target_check, patch("computes.reach.wvmInstances") as conn, \
|
||||
patch.object(Instance, "proxy", new_callable=lambda: property(lambda vm: MagicMock(
|
||||
instance=MagicMock(XMLDesc=lambda flags: XML.format(name=vm.name))))):
|
||||
conn.return_value.shares.return_value = True
|
||||
reach = Reach(RequestFactory().get("/"))
|
||||
refusals = [reach.refusal(vm, target) for vm in vms for target in targets]
|
||||
self.assertEqual(refusals, [None] * 6)
|
||||
self.assertEqual(target_check.call_count, 2) # a host pair once it passed
|
||||
self.assertEqual(conn.return_value.shares.call_count, 2) # a directory of a host pair once
|
||||
|
||||
def test_a_host_whose_pools_cannot_be_read_is_refused_not_raised(self):
|
||||
source = Compute.objects.create(name="rf", hostname="192.0.2.70", login="", password="", type=4)
|
||||
target = Compute.objects.create(name="rf-1", hostname="192.0.2.71", login="", password="", type=4)
|
||||
vm = Instance.objects.create(compute=source, name="rf-vm", uuid="00000000-0000-4000-8000-000000000301")
|
||||
with patch("instances.jobs.migration_target"), patch("computes.reach.wvmInstances") as conn, \
|
||||
patch.object(Instance, "proxy", new_callable=lambda: property(lambda vm: MagicMock(
|
||||
instance=MagicMock(XMLDesc=lambda flags: XML.format(name=vm.name))))):
|
||||
conn.return_value.shares.side_effect = libvirtError("cannot list pools")
|
||||
self.assertIn("cannot list pools", Reach(RequestFactory().get("/")).refusal(vm, target))
|
||||
|
|
@ -19,13 +19,12 @@ from django.views.decorators.debug import sensitive_post_parameters
|
|||
from webvirtcloud.middleware import error_text
|
||||
from instances.models import Instance
|
||||
from instances.utils import read_list_rows, vm_states
|
||||
from libvirt import VIR_DOMAIN_XML_INACTIVE, libvirtError
|
||||
from libvirt import libvirtError
|
||||
from logs.audit import audit, changed_fields, snapshot
|
||||
from operations import claims, jobs
|
||||
from operations.utils import busy_message
|
||||
from vrtManager.connection import CONN_SOCKET, CONN_SSH, CONN_TCP, CONN_TLS
|
||||
from vrtManager.hostdetails import wvmHostDetails
|
||||
from vrtManager.instance import wvmInstances
|
||||
from vrtManager.storage import wvmStorages
|
||||
|
||||
from computes.forms import (
|
||||
|
|
@ -230,41 +229,54 @@ def instances(request, compute_id):
|
|||
)
|
||||
|
||||
|
||||
def migration_refusal(request, instance, target, dests):
|
||||
"""Why the VM cannot migrate to target in a bulk migration, or None: a
|
||||
disk file the two hosts do not share takes a copy, chosen on the VM's
|
||||
Migrate tab. dests: {compute pk: its connection}, filled as needed."""
|
||||
from instances.jobs import migration_target
|
||||
|
||||
try:
|
||||
migration_target(instance, target.pk)
|
||||
if target.pk not in dests:
|
||||
dests[target.pk] = wvmInstances(target.hostname, target.login, target.password, target.type)
|
||||
domain = instance.proxy.instance
|
||||
for xml in (domain.XMLDesc(0), domain.XMLDesc(VIR_DOMAIN_XML_INACTIVE)):
|
||||
if not all(disk["shared"] for disk in dests[target.pk].disk_plan(instance.proxy, xml)):
|
||||
return _("A disk file is not on storage both hosts share: migrate it from its page")
|
||||
except libvirtError as err:
|
||||
return error_text(request, err)
|
||||
return None
|
||||
def read_fleet():
|
||||
"""The computes; those the panel reads now, {pk: compute}, read side by
|
||||
side and bounded (one that does not answer is left out); their VMs, with
|
||||
their info; what each gives its running VMs, {pk: [memory KiB, vCPUs]};
|
||||
and the memory KiB its running and paused VMs, also those the panel does
|
||||
not list, leave of its memory, {pk: KiB}."""
|
||||
computes = list(Compute.objects.order_by("name"))
|
||||
read_hosts(computes)
|
||||
hosts = {compute.pk: compute for compute in computes if compute.status is True and compute.shown_capacity}
|
||||
for compute in hosts.values():
|
||||
utils.refresh_instance_database(compute)
|
||||
instances = list(Instance.objects.filter(compute__in=hosts).order_by("name"))
|
||||
read_list_rows(instances, hosts.values())
|
||||
loads = {pk: [0, 0] for pk in hosts}
|
||||
for instance in instances:
|
||||
if instance.info and instance.info[0] == 1:
|
||||
loads[instance.compute_id][0] += instance.info[2]
|
||||
loads[instance.compute_id][1] += instance.info[3]
|
||||
room = {pk: (compute.shown_capacity["memory"] - compute.shown_capacity["assigned"]["running"]) // 1024
|
||||
for pk, compute in hosts.items()}
|
||||
return computes, hosts, instances, loads, room
|
||||
|
||||
|
||||
@superuser_only
|
||||
def bulk_migrate(request, compute_id):
|
||||
"""Migrates the chosen VMs of the host to another in one job, for the
|
||||
host's maintenance: a migrate job each, the chosen number at once; a
|
||||
running VM live, a shut-off one offline. A VM with a disk file the two
|
||||
hosts do not share is not offered: it takes a copy, chosen on its own
|
||||
Migrate tab."""
|
||||
"""Migrates the chosen VMs of the host in one job, for the host's
|
||||
maintenance: a migrate job each, the chosen number at once; a running VM
|
||||
live, a shut-off one offline. They go to one host, or are spread over the
|
||||
others (computes.balance.spread), where the page shows each one going: a
|
||||
VM ticked or unticked then makes the spread again, as the form sends the
|
||||
VMs it showed ("shown") and the ticked ones ("vm"). A VM with a disk file
|
||||
the hosts do not share is not offered: it takes a copy, chosen on its
|
||||
own Migrate tab."""
|
||||
from computes.balance import spread
|
||||
from computes.jobs import parallel_limit
|
||||
from computes.reach import Reach
|
||||
|
||||
compute = get_object_or_404(Compute, pk=compute_id)
|
||||
targets = list(Compute.objects.exclude(pk=compute.pk).order_by("name"))
|
||||
if request.method == "POST":
|
||||
# the destination the form showed, not another one taken in its place
|
||||
target = get_object_or_404(Compute.objects.exclude(pk=compute.pk), pk=request.POST.get("target", "") or None)
|
||||
raw = {"compute": compute.pk, "target": target.pk, "parallel": request.POST.get("parallel", ""),
|
||||
"instances": [pk for pk in request.POST.getlist("instance") if pk.isdigit()]}
|
||||
chosen = request.POST.getlist("instance")
|
||||
if request.POST.get("spread"):
|
||||
moves, again = list(zip(chosen, request.POST.getlist("target"))), "spread"
|
||||
else:
|
||||
# the destination the form showed, not another one taken in its place
|
||||
target = get_object_or_404(Compute.objects.exclude(pk=compute.pk), pk=request.POST.get("target", "") or None)
|
||||
moves, again = [(pk, target.pk) for pk in chosen], target.pk
|
||||
raw = {"compute": compute.pk, "parallel": request.POST.get("parallel", ""), "moves": moves}
|
||||
try:
|
||||
op = jobs.submit("host.bulk_migrate", request.user, raw, request.POST.get("submission_key", ""))
|
||||
except claims.Busy as busy:
|
||||
|
|
@ -274,18 +286,48 @@ def bulk_migrate(request, compute_id):
|
|||
else:
|
||||
jobs.remember_job(request, op)
|
||||
return redirect("instances", compute.pk)
|
||||
return redirect(reverse("bulk_migrate", args=[compute.pk]) + f"?target={target.pk}")
|
||||
return redirect(reverse("bulk_migrate", args=[compute.pk]) + f"?target={again}")
|
||||
|
||||
chosen = request.GET.get("target")
|
||||
target = next((t for t in targets if str(t.pk) == chosen), targets[0] if targets else None)
|
||||
reach = Reach(request)
|
||||
spreading = len(targets) > 1 and request.GET.get("target", "spread") == "spread"
|
||||
utils.refresh_instance_database(compute)
|
||||
instances = list(Instance.objects.filter(compute=compute).order_by("name"))
|
||||
read_list_rows(instances, [compute])
|
||||
dests = {}
|
||||
for instance in instances if target else ():
|
||||
instance.refusal = migration_refusal(request, instance, target, dests)
|
||||
if not spreading:
|
||||
target = next((t for t in targets if str(t.pk) == request.GET.get("target")), targets[0] if targets else None)
|
||||
for instance in instances if target else ():
|
||||
instance.refusal = reach.refusal(instance, target)
|
||||
return render(request, "computes/bulk_migrate.html",
|
||||
{"compute": compute, "targets": targets, "target": target, "instances": instances,
|
||||
"parallel": range(1, parallel_limit() + 1)})
|
||||
|
||||
# the other hosts' loads: the VMs of this one are read above, also when its capacity cannot be
|
||||
_computes, hosts, _instances, loads, room = read_fleet()
|
||||
others = {pk: host for pk, host in hosts.items() if pk != compute.pk}
|
||||
shown, ticked = request.GET.getlist("shown"), request.GET.getlist("vm")
|
||||
vms = []
|
||||
for instance in instances:
|
||||
refusals = {host: reach.refusal(instance, host) for host in others.values()}
|
||||
can_go = {host.pk for host, refusal in refusals.items() if refusal is None}
|
||||
if not can_go:
|
||||
instance.refusal = "; ".join(f"{host.name}: {refusal}" for host, refusal in refusals.items())
|
||||
continue
|
||||
instance.refusal = None
|
||||
shut_off = bool(instance.info) and instance.info[0] == 5
|
||||
# at first the VMs that are not shut off, as with one destination; then the ticked ones
|
||||
if instance.info and (str(instance.pk) in ticked if shown else not shut_off):
|
||||
vms.append((instance.pk, instance.info[2], instance.info[3], not shut_off, can_go))
|
||||
placed, _after = spread({pk: loads[pk] for pk in others}, vms, {pk: room[pk] for pk in others})
|
||||
for instance in instances:
|
||||
instance.target = others.get(placed.get(instance.pk))
|
||||
if instance.target is None and any(vm[0] == instance.pk for vm in vms):
|
||||
instance.note = _("No other host has room for it")
|
||||
going = [instance for instance in instances if instance.target]
|
||||
return render(request, "computes/bulk_migrate.html",
|
||||
{"compute": compute, "targets": targets, "target": target, "instances": instances,
|
||||
{"compute": compute, "targets": targets, "spreading": True, "instances": instances,
|
||||
"all_ticked": len(going) == len([instance for instance in instances if not instance.refusal]),
|
||||
"shut_off_ticked": any(instance.info[0] == 5 for instance in going),
|
||||
"unreachable": [host for host in targets if host.pk not in others],
|
||||
"parallel": range(1, parallel_limit() + 1)})
|
||||
|
||||
|
||||
|
|
@ -298,6 +340,7 @@ def balance(request):
|
|||
("shown") and the ticked ones ("vm")."""
|
||||
from computes.balance import propose
|
||||
from computes.jobs import parallel_limit
|
||||
from computes.reach import Reach
|
||||
|
||||
if request.method == "POST":
|
||||
moves = zip(request.POST.getlist("instance"), request.POST.getlist("source"), request.POST.getlist("target"))
|
||||
|
|
@ -313,23 +356,14 @@ def balance(request):
|
|||
return redirect("computes")
|
||||
return redirect("balance")
|
||||
|
||||
computes = list(Compute.objects.order_by("name"))
|
||||
read_hosts(computes) # side by side and bounded: a host that does not answer is left out
|
||||
hosts = {compute.pk: compute for compute in computes if compute.status is True and compute.shown_capacity}
|
||||
for compute in hosts.values():
|
||||
utils.refresh_instance_database(compute)
|
||||
instances = list(Instance.objects.filter(compute__in=hosts).order_by("name"))
|
||||
read_list_rows(instances, hosts.values())
|
||||
computes, hosts, instances, loads, room = read_fleet()
|
||||
running = [instance for instance in instances if instance.info and instance.info[0] == 1]
|
||||
pinned = set(request.GET.getlist("shown")) - set(request.GET.getlist("vm"))
|
||||
loads = {pk: [0, 0] for pk in hosts}
|
||||
movable, unmovable, dests = [], [], {}
|
||||
movable, unmovable, reach = [], [], Reach(request)
|
||||
for instance in running:
|
||||
loads[instance.compute_id][0] += instance.info[2]
|
||||
loads[instance.compute_id][1] += instance.info[3]
|
||||
if str(instance.pk) in pinned:
|
||||
continue
|
||||
refusals = {target: migration_refusal(request, instance, target, dests)
|
||||
refusals = {target: reach.refusal(instance, target)
|
||||
for target in hosts.values() if target.pk != instance.compute_id}
|
||||
targets = {target.pk for target, refusal in refusals.items() if refusal is None}
|
||||
if targets:
|
||||
|
|
@ -337,9 +371,6 @@ def balance(request):
|
|||
elif refusals:
|
||||
instance.refusals = [f"{target.name}: {refusal}" for target, refusal in refusals.items()]
|
||||
unmovable.append(instance)
|
||||
# what the running and paused VMs, also those the panel does not list, leave of each host's memory
|
||||
room = {pk: (compute.shown_capacity["memory"] - compute.shown_capacity["assigned"]["running"]) // 1024
|
||||
for pk, compute in hosts.items()}
|
||||
moves, after = propose(loads, movable, room)
|
||||
# the bars of each host's memory before and after, on the scale of the largest
|
||||
scale = max([load[0] for load in (*loads.values(), *after.values())] + [1])
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -11,7 +11,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-16 06:19+0000\n"
|
||||
"POT-Creation-Date: 2026-11-16 07:18+0000\n"
|
||||
"PO-Revision-Date: 2020-11-04 12:00+0000\n"
|
||||
"Last-Translator: catborise <muhammetalisag@gmail.com>, 2020\n"
|
||||
"Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n"
|
||||
|
|
@ -66,7 +66,7 @@ msgstr "Geçersiz anahtar"
|
|||
|
||||
#: accounts/forms.py:95 computes/templates/computes/balance.html:57
|
||||
#: computes/templates/computes/balance.html:104
|
||||
#: computes/templates/computes/bulk_migrate.html:47
|
||||
#: computes/templates/computes/bulk_migrate.html:53
|
||||
#: computes/templates/computes/instances.html:46
|
||||
#: instances/templates/add_instance_volume.html:39
|
||||
#: instances/templates/allinstances_index_grouped.html:11
|
||||
|
|
@ -772,7 +772,7 @@ msgid "vCPUs"
|
|||
msgstr "vCPU"
|
||||
|
||||
#: admin/forms.py:209 computes/templates/computes/balance.html:58
|
||||
#: computes/templates/computes/bulk_migrate.html:49
|
||||
#: computes/templates/computes/bulk_migrate.html:55
|
||||
#: computes/templates/computes/instances.html:50
|
||||
#: computes/templates/computes/list.html:62 computes/templates/overview.html:66
|
||||
#: computes/templates/overview.html:150
|
||||
|
|
@ -1985,16 +1985,20 @@ msgstr ""
|
|||
msgid "Bulk migrate"
|
||||
msgstr "Toplu taşıma"
|
||||
|
||||
#: computes/jobs.py:171 computes/templates/computes/balance.html:6
|
||||
#: computes/jobs.py:156 computes/jobs.py:195
|
||||
msgid "A VM is already on its destination"
|
||||
msgstr "Bir sanal makine zaten hedef sunucusunda"
|
||||
|
||||
#: computes/jobs.py:158
|
||||
msgid "A destination host was deleted"
|
||||
msgstr "Bir hedef sunucu silindi"
|
||||
|
||||
#: computes/jobs.py:181 computes/templates/computes/balance.html:6
|
||||
#: computes/templates/computes/balance.html:12
|
||||
#: computes/templates/computes/list.html:12
|
||||
msgid "Balance"
|
||||
msgstr "Dengele"
|
||||
|
||||
#: computes/jobs.py:185
|
||||
msgid "A VM is already on its destination"
|
||||
msgstr "Bir sanal makine zaten hedef sunucusunda"
|
||||
|
||||
#: computes/models.py:21
|
||||
msgid "hostname"
|
||||
msgstr "sunucuadı"
|
||||
|
|
@ -2064,6 +2068,13 @@ msgstr ""
|
|||
"Bu, VM'lerinin bulunduğu sunucudan başka bir sunucu: yeni bir sunucu olarak "
|
||||
"ekleyin"
|
||||
|
||||
#: computes/reach.py:56
|
||||
msgid ""
|
||||
"A disk file is not on storage both hosts share: migrate it from its page"
|
||||
msgstr ""
|
||||
"Bir disk dosyası iki sunucunun paylaştığı depolamada değil: sanal makineyi "
|
||||
"kendi sayfasından taşıyın"
|
||||
|
||||
#: computes/templates/computes/balance.html:11
|
||||
#: computes/templates/computes/list.html:6
|
||||
#: computes/templates/computes/list.html:14 templates/navbar.html:18
|
||||
|
|
@ -2079,6 +2090,7 @@ msgstr ""
|
|||
"dağıtan taşımalar."
|
||||
|
||||
#: computes/templates/computes/balance.html:17
|
||||
#: computes/templates/computes/bulk_migrate.html:20
|
||||
msgid "These hosts cannot be read and are left out:"
|
||||
msgstr "Bu sunucular okunamıyor ve hesaba katılmadı:"
|
||||
|
||||
|
|
@ -2120,7 +2132,7 @@ msgstr[0] "Önerilen taşımalar (%(counter)s)"
|
|||
msgstr[1] "Önerilen taşımalar (%(counter)s)"
|
||||
|
||||
#: computes/templates/computes/balance.html:56
|
||||
#: computes/templates/computes/bulk_migrate.html:46
|
||||
#: computes/templates/computes/bulk_migrate.html:52
|
||||
msgid "Select all"
|
||||
msgstr "Tümünü seç"
|
||||
|
||||
|
|
@ -2129,7 +2141,7 @@ msgid "Migration"
|
|||
msgstr "Taşıma"
|
||||
|
||||
#: computes/templates/computes/balance.html:81
|
||||
#: computes/templates/computes/bulk_migrate.html:73
|
||||
#: computes/templates/computes/bulk_migrate.html:87
|
||||
msgid "Migrations at once"
|
||||
msgstr "Aynı anda taşıma"
|
||||
|
||||
|
|
@ -2145,7 +2157,7 @@ msgid "Migrate the VMs listed?"
|
|||
msgstr "Listelenen sanal makineler taşınsın mı?"
|
||||
|
||||
#: computes/templates/computes/balance.html:88
|
||||
#: computes/templates/computes/bulk_migrate.html:22
|
||||
#: computes/templates/computes/bulk_migrate.html:27
|
||||
msgid ""
|
||||
"The worker runs one job at a time: set Worker Concurrency to 2 or more on the"
|
||||
" Settings page."
|
||||
|
|
@ -2167,7 +2179,7 @@ msgid "Let it move"
|
|||
msgstr "Taşınabilsin"
|
||||
|
||||
#: computes/templates/computes/balance.html:106
|
||||
#: computes/templates/computes/bulk_migrate.html:51
|
||||
#: computes/templates/computes/bulk_migrate.html:58
|
||||
msgid "Why"
|
||||
msgstr "Neden"
|
||||
|
||||
|
|
@ -2193,33 +2205,45 @@ msgstr ""
|
|||
"Seçilen her sanal makine kendi işinde taşınır: çalışan sanal makine canlı, "
|
||||
"kapalı olan çevrimdışı. Taşınamayan sanal makine bu sunucuda kalır."
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:24
|
||||
#: computes/templates/computes/bulk_migrate.html:29
|
||||
msgid "The host has no VMs."
|
||||
msgstr "Bu sunucuda sanal makine yok."
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:31
|
||||
#: computes/templates/computes/bulk_migrate.html:36
|
||||
#: computes/templates/computes/bulk_migrate.html:57
|
||||
msgid "Destination"
|
||||
msgstr "Hedef"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:39
|
||||
#: computes/templates/computes/bulk_migrate.html:37
|
||||
msgid "Spread over the other hosts"
|
||||
msgstr "Diğer sunuculara dağıt"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:45
|
||||
msgid "Also migrate the shut-off VMs"
|
||||
msgstr "Kapalı sanal makineleri de taşı"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:48
|
||||
#: computes/templates/computes/bulk_migrate.html:54
|
||||
#: computes/templates/computes/instances.html:48
|
||||
#: instances/templates/allinstances_index_grouped.html:12
|
||||
#: instances/templates/allinstances_index_nongrouped.html:10
|
||||
msgid "Status"
|
||||
msgstr "Durum"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:77
|
||||
#: computes/templates/computes/bulk_migrate.html:92
|
||||
#, python-format
|
||||
msgid "Migrate the chosen VMs from %(source)s to the hosts shown?"
|
||||
msgstr ""
|
||||
"Seçilen sanal makineler %(source)s sunucusundan gösterilen sunuculara "
|
||||
"taşınsın mı?"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:94
|
||||
#, python-format
|
||||
msgid "Migrate the chosen VMs from %(source)s to %(dest)s?"
|
||||
msgstr ""
|
||||
"Seçilen sanal makineler %(source)s sunucusundan %(dest)s sunucusuna taşınsın "
|
||||
"mı?"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:79
|
||||
#: computes/templates/computes/bulk_migrate.html:97
|
||||
msgid "Migrate the chosen VMs"
|
||||
msgstr "Seçilen sanal makineleri taşı"
|
||||
|
||||
|
|
@ -2708,24 +2732,21 @@ msgstr ""
|
|||
"Sunucudaki /etc/default/webvirt-gstfsd içindeki GSTFSD_KEY değerinin 64 "
|
||||
"onaltılık karakterini girin"
|
||||
|
||||
#: computes/views.py:151
|
||||
#: computes/views.py:150
|
||||
#, python-format
|
||||
msgid "The host did not answer within %(seconds)s seconds"
|
||||
msgstr "Sunucu %(seconds)s saniye içinde yanıt vermedi"
|
||||
|
||||
#: computes/views.py:246
|
||||
msgid ""
|
||||
"A disk file is not on storage both hosts share: migrate it from its page"
|
||||
msgstr ""
|
||||
"Bir disk dosyası iki sunucunun paylaştığı depolamada değil: sanal makineyi "
|
||||
"kendi sayfasından taşıyın"
|
||||
#: computes/views.py:324
|
||||
msgid "No other host has room for it"
|
||||
msgstr "Başka hiçbir sunucuda ona yer yok"
|
||||
|
||||
#: computes/views.py:366
|
||||
#: computes/views.py:397
|
||||
#, python-format
|
||||
msgid "The host was saved, but the panel cannot connect to it: %(error)s"
|
||||
msgstr "Sunucu kaydedildi, ancak panel ona bağlanamıyor: %(error)s"
|
||||
|
||||
#: computes/views.py:422
|
||||
#: computes/views.py:453
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Its VMs keep running on the host and leave the panel; their owners are kept "
|
||||
|
|
@ -3074,7 +3095,7 @@ msgstr ""
|
|||
msgid "A password takes no line breaks or other control characters."
|
||||
msgstr "Parola satır sonu ya da başka denetim karakteri içeremez."
|
||||
|
||||
#: instances/forms.py:114 vrtManager/instance.py:1658
|
||||
#: instances/forms.py:114 vrtManager/instance.py:1667
|
||||
msgid ""
|
||||
"The console listens on no address (on a network, a socket or nowhere); change"
|
||||
" it in the XML editor"
|
||||
|
|
@ -3168,7 +3189,7 @@ msgstr ""
|
|||
msgid "Delete snapshot"
|
||||
msgstr "Anlık görüntüyü sil"
|
||||
|
||||
#: instances/jobs.py:356 vrtManager/instance.py:2417
|
||||
#: instances/jobs.py:356 vrtManager/instance.py:2426
|
||||
#, python-format
|
||||
msgid "The VM has no external snapshot named %(name)s"
|
||||
msgstr "Sanal makinede %(name)s adında harici anlık görüntü yok"
|
||||
|
|
@ -3203,7 +3224,7 @@ msgstr "Sanal makine artık işin çalıştığı sunucuda değil"
|
|||
msgid "Take snapshot"
|
||||
msgstr "Anlık görüntü al"
|
||||
|
||||
#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:2008
|
||||
#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:2017
|
||||
#, python-format
|
||||
msgid "A snapshot named %(name)s already exists"
|
||||
msgstr "%(name)s adında bir anlık görüntü zaten var"
|
||||
|
|
@ -3365,12 +3386,12 @@ msgstr ""
|
|||
msgid "Each network card needs a network"
|
||||
msgstr "Her ağ kartının bir ağı olmalı"
|
||||
|
||||
#: instances/jobs.py:851 vrtManager/instance.py:2849
|
||||
#: instances/jobs.py:851 vrtManager/instance.py:2858
|
||||
#, python-format
|
||||
msgid "This host has no network %(name)s"
|
||||
msgstr "Bu sunucuda %(name)s ağı yok"
|
||||
|
||||
#: instances/jobs.py:853 vrtManager/instance.py:2851
|
||||
#: instances/jobs.py:853 vrtManager/instance.py:2860
|
||||
#, python-format
|
||||
msgid "This host has no network filter %(name)s"
|
||||
msgstr "Bu sunucuda %(name)s ağ filtresi yok"
|
||||
|
|
@ -3444,7 +3465,7 @@ msgstr "cloud-init tohumu, disk için bir dizin depolama havuzu gerektirir"
|
|||
msgid "This host offers no firmware %(firmware)s"
|
||||
msgstr "Bu sunucu %(firmware)s firmware'ini sunmuyor"
|
||||
|
||||
#: instances/jobs.py:939 vrtManager/instance.py:3198
|
||||
#: instances/jobs.py:939 vrtManager/instance.py:3207
|
||||
msgid "This host offers no TPM 2.0: install swtpm on it"
|
||||
msgstr "Bu sunucu TPM 2.0 sunmuyor: üzerine swtpm kurun"
|
||||
|
||||
|
|
@ -4733,7 +4754,7 @@ msgid "Add USB device"
|
|||
msgstr "USB aygıtı ekle"
|
||||
|
||||
#: instances/templates/instances/host_devices_form.html:18
|
||||
#: vrtManager/instance.py:3102
|
||||
#: vrtManager/instance.py:3111
|
||||
msgid ""
|
||||
"A VM with a saved state does not change its USB devices: start it, or start "
|
||||
"it without its saved state"
|
||||
|
|
@ -6748,7 +6769,7 @@ msgstr "Birim başarıyla değiştirildi."
|
|||
msgid "Disk %(dev)s is not a storage volume of this instance"
|
||||
msgstr "%(dev)s diski bu sanal makinenin bir depolama birimi değil"
|
||||
|
||||
#: instances/views.py:1594 vrtManager/instance.py:2427
|
||||
#: instances/views.py:1594 vrtManager/instance.py:2436
|
||||
msgid "The VM has a saved state; start it or remove the saved state first"
|
||||
msgstr ""
|
||||
"Sanal makinenin kaydedilmiş durumu var; önce başlatın veya kaydedilmiş durumu"
|
||||
|
|
@ -6810,7 +6831,7 @@ msgstr "Anlık görüntü silinmedi: %(err)s"
|
|||
msgid "Add at least one device to the boot order."
|
||||
msgstr "Ön yükleme sırasına en az bir aygıt ekleyin."
|
||||
|
||||
#: instances/views.py:1906 vrtManager/instance.py:1199
|
||||
#: instances/views.py:1906 vrtManager/instance.py:1208
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "Ön yükleme sırası için geçersiz aygıt türü"
|
||||
|
||||
|
|
@ -9586,88 +9607,88 @@ msgstr ""
|
|||
"%(pool)s havuzu etkin değil: içindeki sanal makine disklerinin oluşturulduğu "
|
||||
"dosyalar denetlenemiyor; önce havuzu başlatın"
|
||||
|
||||
#: vrtManager/instance.py:170
|
||||
#: vrtManager/instance.py:178
|
||||
msgid "The VM is not running"
|
||||
msgstr "Sanal makine çalışmıyor"
|
||||
|
||||
#: vrtManager/instance.py:175
|
||||
#: vrtManager/instance.py:183
|
||||
msgid "A running or paused VM cannot be migrated offline"
|
||||
msgstr "Çalışan veya duraklatılmış bir sanal makine çevrimdışı taşınamaz"
|
||||
|
||||
#: vrtManager/instance.py:178
|
||||
#: vrtManager/instance.py:186
|
||||
msgid "The VM can be migrated when it is running, paused or shut off"
|
||||
msgstr "Sanal makine çalışırken, duraklatılmışken veya kapalıyken taşınabilir"
|
||||
|
||||
#: vrtManager/instance.py:201
|
||||
#: vrtManager/instance.py:209
|
||||
msgid "A VM with snapshots cannot be migrated"
|
||||
msgstr "Anlık görüntüleri olan bir sanal makine taşınamaz"
|
||||
|
||||
#: vrtManager/instance.py:204
|
||||
#: vrtManager/instance.py:212
|
||||
msgid "A VM with a saved state cannot be migrated"
|
||||
msgstr "Kaydedilmiş durumu olan bir sanal makine taşınamaz"
|
||||
|
||||
#: vrtManager/instance.py:211
|
||||
#: vrtManager/instance.py:219
|
||||
msgid "A VM with host devices cannot be migrated; remove them first"
|
||||
msgstr "Sunucu aygıtları olan bir sanal makine taşınamaz; önce onları kaldırın"
|
||||
|
||||
#: vrtManager/instance.py:215
|
||||
#: vrtManager/instance.py:223
|
||||
#, python-format
|
||||
msgid "The destination host does not have these networks of the VM: %(names)s"
|
||||
msgstr "Hedef sunucuda VM'in şu ağları yok: %(names)s"
|
||||
|
||||
#: vrtManager/instance.py:219
|
||||
#: vrtManager/instance.py:227
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The destination host does not have these network filters of the VM: %(names)s"
|
||||
msgstr "Hedef sunucuda VM'in şu ağ filtreleri yok: %(names)s"
|
||||
|
||||
#: vrtManager/instance.py:222
|
||||
#: vrtManager/instance.py:230
|
||||
#, python-format
|
||||
msgid ""
|
||||
"These network filters of the VM have other rules on the destination host: "
|
||||
"%(names)s"
|
||||
msgstr "VM'in şu ağ filtrelerinin hedef sunucudaki kuralları farklı: %(names)s"
|
||||
|
||||
#: vrtManager/instance.py:225
|
||||
#: vrtManager/instance.py:233
|
||||
#, python-format
|
||||
msgid "The destination host does not have these secrets of the VM: %(names)s"
|
||||
msgstr "Hedef sunucuda VM'in şu parolaları yok: %(names)s"
|
||||
|
||||
#: vrtManager/instance.py:232
|
||||
#: vrtManager/instance.py:240
|
||||
#, python-format
|
||||
msgid "The destination host does not have these disks of the VM: %(disks)s"
|
||||
msgstr "Hedef sunucuda sanal makinenin şu diskleri yok: %(disks)s"
|
||||
|
||||
#: vrtManager/instance.py:233
|
||||
#: vrtManager/instance.py:241
|
||||
#, python-format
|
||||
msgid "%(target)s (%(source)s)"
|
||||
msgstr "%(target)s (%(source)s)"
|
||||
|
||||
#: vrtManager/instance.py:241
|
||||
#: vrtManager/instance.py:249
|
||||
msgid "Destination host emulator is different. Cannot be migrated"
|
||||
msgstr "Hedef sunucunun emülatörü farklı. Taşınamaz"
|
||||
|
||||
#: vrtManager/instance.py:375
|
||||
#: vrtManager/instance.py:384
|
||||
msgid "an image is not copied; eject it first"
|
||||
msgstr "bir imaj kopyalanmaz; önce onu çıkarın"
|
||||
|
||||
#: vrtManager/instance.py:378
|
||||
#: vrtManager/instance.py:387
|
||||
msgid "a read-only or encrypted disk is not copied"
|
||||
msgstr "salt okunur veya şifreli bir disk kopyalanmaz"
|
||||
|
||||
#: vrtManager/instance.py:381
|
||||
#: vrtManager/instance.py:390
|
||||
msgid "only raw and qcow2 disks are copied"
|
||||
msgstr "yalnızca raw ve qcow2 diskler kopyalanır"
|
||||
|
||||
#: vrtManager/instance.py:383
|
||||
#: vrtManager/instance.py:392
|
||||
msgid "no storage pool of the source host has it"
|
||||
msgstr "kaynak sunucunun hiçbir depolama havuzunda yok"
|
||||
|
||||
#: vrtManager/instance.py:385
|
||||
#: vrtManager/instance.py:394
|
||||
msgid "a disk with a backing file is not copied"
|
||||
msgstr "temel (backing) dosyası olan bir disk kopyalanmaz"
|
||||
|
||||
#: vrtManager/instance.py:405
|
||||
#: vrtManager/instance.py:414
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): the destination host does not share it; choose a pool "
|
||||
|
|
@ -9676,12 +9697,12 @@ msgstr ""
|
|||
"%(target)s (%(path)s): hedef sunucu bunu paylaşmıyor; kopyalanacağı bir havuz"
|
||||
" seçin"
|
||||
|
||||
#: vrtManager/instance.py:409
|
||||
#: vrtManager/instance.py:418
|
||||
#, python-format
|
||||
msgid "%(target)s (%(path)s): %(refusal)s"
|
||||
msgstr "%(target)s (%(path)s): %(refusal)s"
|
||||
|
||||
#: vrtManager/instance.py:414
|
||||
#: vrtManager/instance.py:423
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): the destination host has no pool %(pool)s for disk "
|
||||
|
|
@ -9689,7 +9710,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"%(target)s (%(path)s): hedef sunucuda disk dosyaları için %(pool)s havuzu yok"
|
||||
|
||||
#: vrtManager/instance.py:421
|
||||
#: vrtManager/instance.py:430
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): pool %(pool)s of the destination host already has a "
|
||||
|
|
@ -9698,17 +9719,17 @@ msgstr ""
|
|||
"%(target)s (%(path)s): hedef sunucunun %(pool)s havuzunda zaten %(file)s "
|
||||
"dosyası var"
|
||||
|
||||
#: vrtManager/instance.py:428
|
||||
#: vrtManager/instance.py:437
|
||||
#, python-format
|
||||
msgid "%(target)s (%(path)s): another disk is copied to %(dest)s"
|
||||
msgstr "%(target)s (%(path)s): başka bir disk %(dest)s konumuna kopyalanıyor"
|
||||
|
||||
#: vrtManager/instance.py:433
|
||||
#: vrtManager/instance.py:442
|
||||
#, python-format
|
||||
msgid "%(target)s: the VM has no disk file to copy"
|
||||
msgstr "%(target)s: sanal makinenin kopyalanacak disk dosyası yok"
|
||||
|
||||
#: vrtManager/instance.py:437
|
||||
#: vrtManager/instance.py:446
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s) of the next start: the destination host does not share "
|
||||
|
|
@ -9717,12 +9738,12 @@ msgstr ""
|
|||
"Sonraki başlatmanın %(target)s (%(path)s) diski: hedef sunucu bunu "
|
||||
"paylaşmıyor"
|
||||
|
||||
#: vrtManager/instance.py:441
|
||||
#: vrtManager/instance.py:450
|
||||
#, python-format
|
||||
msgid "The disks cannot be migrated: %(problems)s"
|
||||
msgstr "Diskler taşınamaz: %(problems)s"
|
||||
|
||||
#: vrtManager/instance.py:454
|
||||
#: vrtManager/instance.py:463
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; remove the partial disk copies from the destination host: "
|
||||
|
|
@ -9730,14 +9751,14 @@ msgid ""
|
|||
msgstr ""
|
||||
"%(error)s; yarım kalan disk kopyalarını hedef sunucudan kaldırın: %(copies)s"
|
||||
|
||||
#: vrtManager/instance.py:471
|
||||
#: vrtManager/instance.py:480
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; remove the partial disk copies from the destination host: %(left)s"
|
||||
msgstr ""
|
||||
"%(error)s; yarım kalan disk kopyalarını hedef sunucudan kaldırın: %(left)s"
|
||||
|
||||
#: vrtManager/instance.py:485
|
||||
#: vrtManager/instance.py:494
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The NVRAM file %(path)s is not in libvirt's NVRAM directory %(dir)s and "
|
||||
|
|
@ -9746,26 +9767,26 @@ msgstr ""
|
|||
"%(path)s NVRAM dosyası libvirt'in NVRAM dizini %(dir)s içinde değil ve "
|
||||
"kopyalanamaz"
|
||||
|
||||
#: vrtManager/instance.py:494
|
||||
#: vrtManager/instance.py:503
|
||||
#, python-format
|
||||
msgid "The destination host cannot see the NVRAM file %(path)s"
|
||||
msgstr "Hedef sunucu %(path)s NVRAM dosyasını göremiyor"
|
||||
|
||||
#: vrtManager/instance.py:585
|
||||
#: vrtManager/instance.py:594
|
||||
#, python-format
|
||||
msgid "%(type)s disk, cannot be checked"
|
||||
msgstr "%(type)s disk, kontrol edilemiyor"
|
||||
|
||||
#: vrtManager/instance.py:625
|
||||
#: vrtManager/instance.py:634
|
||||
#, python-format
|
||||
msgid "The destination host already has a VM %(key)s"
|
||||
msgstr "Hedef sunucuda zaten %(key)s sanal makinesi var"
|
||||
|
||||
#: vrtManager/instance.py:647
|
||||
#: vrtManager/instance.py:656
|
||||
msgid "The VM was started on the source host during the migration"
|
||||
msgstr "Sanal makine taşıma sırasında kaynak sunucuda başlatıldı"
|
||||
|
||||
#: vrtManager/instance.py:663
|
||||
#: vrtManager/instance.py:672
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; the VM may now be defined only on the destination host: check both"
|
||||
|
|
@ -9774,7 +9795,7 @@ msgstr ""
|
|||
"%(error)s; sanal makine artık yalnızca hedef sunucuda tanımlı olabilir: iki "
|
||||
"sunucuyu da kontrol edin"
|
||||
|
||||
#: vrtManager/instance.py:669
|
||||
#: vrtManager/instance.py:678
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; the VM is now defined on both hosts, remove it from the "
|
||||
|
|
@ -9783,7 +9804,7 @@ msgstr ""
|
|||
"%(error)s; sanal makine artık iki sunucuda da tanımlı, hedeften kaldırın: "
|
||||
"%(undo_error)s"
|
||||
|
||||
#: vrtManager/instance.py:675
|
||||
#: vrtManager/instance.py:684
|
||||
msgid ""
|
||||
"Snapshot names are 1-64 letters, digits, '.', '_' or '-' and do not start "
|
||||
"with '.'"
|
||||
|
|
@ -9791,7 +9812,7 @@ msgstr ""
|
|||
"Anlık görüntü adları 1-64 harf, rakam, '.', '_' veya '-' karakterinden oluşur"
|
||||
" ve '.' ile başlamaz"
|
||||
|
||||
#: vrtManager/instance.py:1187
|
||||
#: vrtManager/instance.py:1196
|
||||
msgid ""
|
||||
"A device other than a disk or NIC is in the boot order: change it in the XML "
|
||||
"editor"
|
||||
|
|
@ -9799,47 +9820,47 @@ msgstr ""
|
|||
"Önyükleme sırasında disk veya NIC dışında bir aygıt var: bunu XML "
|
||||
"düzenleyicide değiştirin"
|
||||
|
||||
#: vrtManager/instance.py:1202
|
||||
#: vrtManager/instance.py:1211
|
||||
#, python-format
|
||||
msgid "Boot device %(dev)s is not in the definition"
|
||||
msgstr "Ön yükleme aygıtı %(dev)s tanımda yok"
|
||||
|
||||
#: vrtManager/instance.py:1222
|
||||
#: vrtManager/instance.py:1231
|
||||
#, python-format
|
||||
msgid "CD-ROM %(dev)s is not in the running definition"
|
||||
msgstr "CD-ROM %(dev)s çalışan tanımda yok"
|
||||
|
||||
#: vrtManager/instance.py:1223
|
||||
#: vrtManager/instance.py:1232
|
||||
#, python-format
|
||||
msgid "CD-ROM %(dev)s is not in the persistent definition"
|
||||
msgstr "CD-ROM %(dev)s kalıcı tanımda yok"
|
||||
|
||||
#: vrtManager/instance.py:1236
|
||||
#: vrtManager/instance.py:1245
|
||||
#, python-format
|
||||
msgid "Media of %(dev)s changed in the running VM only: %(err)s"
|
||||
msgstr "%(dev)s ortamı yalnızca çalışan sanal makinede değişti: %(err)s"
|
||||
|
||||
#: vrtManager/instance.py:1247
|
||||
#: vrtManager/instance.py:1256
|
||||
#, python-format
|
||||
msgid "ISO image %(image)s was not found"
|
||||
msgstr "ISO imajı %(image)s bulunamadı"
|
||||
|
||||
#: vrtManager/instance.py:1249
|
||||
#: vrtManager/instance.py:1258
|
||||
#, python-format
|
||||
msgid "ISO image %(image)s is in more than one storage pool"
|
||||
msgstr "ISO imajı %(image)s birden fazla depolama havuzunda var"
|
||||
|
||||
#: vrtManager/instance.py:1344
|
||||
#: vrtManager/instance.py:1353
|
||||
#, python-format
|
||||
msgid "Disk %(target_dev)s is not in the VM's definition"
|
||||
msgstr "Disk %(target_dev)s sanal makinenin tanımında yok"
|
||||
|
||||
#: vrtManager/instance.py:1476
|
||||
#: vrtManager/instance.py:1485
|
||||
msgid "Please shutdown the instance then try to enable vCPU hotplug"
|
||||
msgstr ""
|
||||
"vCPU hotplug özelliğini etkinleştirmek için önce sanal makineyi kapatın"
|
||||
|
||||
#: vrtManager/instance.py:1679
|
||||
#: vrtManager/instance.py:1688
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The serial console is a %(type)s one, the browser opens only a pty one; "
|
||||
|
|
@ -9848,11 +9869,11 @@ msgstr ""
|
|||
"Seri konsol %(type)s türünde, tarayıcı yalnızca pty türünü açar; bunu XML "
|
||||
"düzenleyicide değiştirin"
|
||||
|
||||
#: vrtManager/instance.py:1790
|
||||
#: vrtManager/instance.py:1799
|
||||
msgid "The VM has no video card"
|
||||
msgstr "Sanal makinede ekran kartı yok"
|
||||
|
||||
#: vrtManager/instance.py:1800
|
||||
#: vrtManager/instance.py:1809
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set"
|
||||
|
|
@ -9861,62 +9882,62 @@ msgstr ""
|
|||
"VM'nin CPU topolojisi %(count)s vCPU içeriyor: başka bir en fazla değer için "
|
||||
"onu XML düzenleyicide değiştirin"
|
||||
|
||||
#: vrtManager/instance.py:1826
|
||||
#: vrtManager/instance.py:1835
|
||||
#, python-format
|
||||
msgid "The VM's next start has a maximum memory of %(max)s MiB"
|
||||
msgstr ""
|
||||
"Sanal makinenin bir sonraki başlangıcındaki en yüksek bellek %(max)s MiB"
|
||||
|
||||
#: vrtManager/instance.py:1967
|
||||
#: vrtManager/instance.py:1976
|
||||
msgid ""
|
||||
"The VM has external snapshots; internal snapshots cannot be mixed with them"
|
||||
msgstr ""
|
||||
"Sanal makinenin harici anlık görüntüleri var; dahili anlık görüntüler "
|
||||
"bunlarla karıştırılamaz"
|
||||
|
||||
#: vrtManager/instance.py:1999
|
||||
#: vrtManager/instance.py:2008
|
||||
msgid "A snapshot with memory is not quiesced; it keeps the whole guest state"
|
||||
msgstr ""
|
||||
"Bellekli bir anlık görüntüde dosya sistemleri dondurulmaz; tüm konuk durumunu"
|
||||
" saklar"
|
||||
|
||||
#: vrtManager/instance.py:2001
|
||||
#: vrtManager/instance.py:2010
|
||||
msgid "Only a running VM's file systems can be frozen"
|
||||
msgstr "Yalnızca çalışan bir sanal makinenin dosya sistemleri dondurulabilir"
|
||||
|
||||
#: vrtManager/instance.py:2003
|
||||
#: vrtManager/instance.py:2012
|
||||
msgid "The QEMU guest agent is not connected; it freezes the file systems"
|
||||
msgstr "QEMU konuk aracısı bağlı değil; dosya sistemlerini o dondurur"
|
||||
|
||||
#: vrtManager/instance.py:2006
|
||||
#: vrtManager/instance.py:2015
|
||||
msgid ""
|
||||
"The VM has internal snapshots; external snapshots cannot be mixed with them"
|
||||
msgstr ""
|
||||
"Sanal makinenin dahili anlık görüntüleri var; harici anlık görüntüler "
|
||||
"bunlarla karıştırılamaz"
|
||||
|
||||
#: vrtManager/instance.py:2011
|
||||
#: vrtManager/instance.py:2020
|
||||
msgid "Newer snapshots exist after the last revert; delete them first"
|
||||
msgstr ""
|
||||
"Son geri dönüşten sonra daha yeni anlık görüntüler var; önce onları silin"
|
||||
|
||||
#: vrtManager/instance.py:2014
|
||||
#: vrtManager/instance.py:2023
|
||||
msgid "No snapshot is current; revert to a snapshot first"
|
||||
msgstr "Geçerli anlık görüntü yok; önce bir anlık görüntüye geri dönün"
|
||||
|
||||
#: vrtManager/instance.py:2020
|
||||
#: vrtManager/instance.py:2029
|
||||
#, python-format
|
||||
msgid "Eject the media from %(dev)s first"
|
||||
msgstr "Önce %(dev)s içindeki ortamı çıkarın"
|
||||
|
||||
#: vrtManager/instance.py:2022
|
||||
#: vrtManager/instance.py:2031
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a file; external snapshots need file disks"
|
||||
msgstr ""
|
||||
"Disk %(dev)s bir dosya değil; harici anlık görüntüler dosya diskleri "
|
||||
"gerektirir"
|
||||
|
||||
#: vrtManager/instance.py:2030
|
||||
#: vrtManager/instance.py:2039
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The storage pools could not be refreshed, so their free space is unknown: "
|
||||
|
|
@ -9924,21 +9945,21 @@ msgid ""
|
|||
msgstr ""
|
||||
"Depolama havuzları yenilenemedi, bu yüzden boş alanları bilinmiyor: %(err)s"
|
||||
|
||||
#: vrtManager/instance.py:2051
|
||||
#: vrtManager/instance.py:2060
|
||||
msgid "Memory is saved only from a running VM"
|
||||
msgstr "Bellek yalnızca çalışan bir sanal makineden kaydedilir"
|
||||
|
||||
#: vrtManager/instance.py:2053
|
||||
#: vrtManager/instance.py:2062
|
||||
msgid "The VM has no disk to keep its memory next to"
|
||||
msgstr "Sanal makinenin, belleğinin yanına kaydedileceği bir diski yok"
|
||||
|
||||
#: vrtManager/instance.py:2057
|
||||
#: vrtManager/instance.py:2066
|
||||
#, python-format
|
||||
msgid "%(disk)s is not in a storage pool; memory is saved only into one"
|
||||
msgstr ""
|
||||
"%(disk)s bir depolama havuzunda değil; bellek yalnızca bir havuza kaydedilir"
|
||||
|
||||
#: vrtManager/instance.py:2088
|
||||
#: vrtManager/instance.py:2097
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f "
|
||||
|
|
@ -9949,7 +9970,7 @@ msgstr ""
|
|||
"%(size).1f GiB gerektiriyor (sanal makinenin oradaki disklerinin "
|
||||
"%%%(percent)g kadarı, en az %(minimum)g GiB, ve kaydediliyorsa bellek)"
|
||||
|
||||
#: vrtManager/instance.py:2106
|
||||
#: vrtManager/instance.py:2115
|
||||
msgid ""
|
||||
"This snapshot was taken by an older version on a UEFI VM and cannot be "
|
||||
"reverted; delete it instead"
|
||||
|
|
@ -9957,7 +9978,7 @@ msgstr ""
|
|||
"Bu anlık görüntü UEFI bir sanal makinede eski bir sürümle alındı ve geri "
|
||||
"dönülemez; bunun yerine silin"
|
||||
|
||||
#: vrtManager/instance.py:2136
|
||||
#: vrtManager/instance.py:2145
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The revert failed twice; try again in a moment (%(error)s). The VM is "
|
||||
|
|
@ -9966,7 +9987,7 @@ msgstr ""
|
|||
"Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). "
|
||||
"Sanal makine çalışıyor."
|
||||
|
||||
#: vrtManager/instance.py:2138
|
||||
#: vrtManager/instance.py:2147
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The revert failed twice; try again in a moment (%(error)s). The VM is shut "
|
||||
|
|
@ -9975,13 +9996,13 @@ msgstr ""
|
|||
"Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). "
|
||||
"Sanal makine kapalı."
|
||||
|
||||
#: vrtManager/instance.py:2306
|
||||
#: vrtManager/instance.py:2315
|
||||
msgid "A disk moves when its VM is defined and running, paused or shut off"
|
||||
msgstr ""
|
||||
"Bir disk, sanal makinesi tanımlıyken ve çalışırken, duraklatılmışken veya "
|
||||
"kapalıyken taşınır"
|
||||
|
||||
#: vrtManager/instance.py:2308
|
||||
#: vrtManager/instance.py:2317
|
||||
msgid ""
|
||||
"A disk of a VM with snapshots, a saved state or a running block job does not "
|
||||
"move"
|
||||
|
|
@ -9989,7 +10010,7 @@ msgstr ""
|
|||
"Anlık görüntüleri, kaydedilmiş durumu veya çalışan bir blok işi olan sanal "
|
||||
"makinenin diski taşınmaz"
|
||||
|
||||
#: vrtManager/instance.py:2316
|
||||
#: vrtManager/instance.py:2325
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(dev)s is not a disk file of the VM, the same in its running and next "
|
||||
|
|
@ -9998,127 +10019,127 @@ msgstr ""
|
|||
"%(dev)s, sanal makinenin çalışan ve sonraki başlatma tanımlarında aynı olan "
|
||||
"bir disk dosyası değil"
|
||||
|
||||
#: vrtManager/instance.py:2321
|
||||
#: vrtManager/instance.py:2330
|
||||
#, python-format
|
||||
msgid "%(dev)s does not move: only writable raw and qcow2 disks do"
|
||||
msgstr "%(dev)s taşınmaz: yalnızca yazılabilir raw ve qcow2 diskler taşınır"
|
||||
|
||||
#: vrtManager/instance.py:2328
|
||||
#: vrtManager/instance.py:2337
|
||||
#, python-format
|
||||
msgid "%(dev)s does not move: no storage pool has %(path)s"
|
||||
msgstr "%(dev)s taşınmaz: hiçbir depolama havuzunda %(path)s yok"
|
||||
|
||||
#: vrtManager/instance.py:2330
|
||||
#: vrtManager/instance.py:2339
|
||||
#, python-format
|
||||
msgid "%(dev)s does not move: it has a backing file"
|
||||
msgstr "%(dev)s taşınmaz: temel (backing) dosyası var"
|
||||
|
||||
#: vrtManager/instance.py:2333
|
||||
#: vrtManager/instance.py:2342
|
||||
#, python-format
|
||||
msgid "%(pool_name)s is not an active pool of disk files of this host"
|
||||
msgstr "%(pool_name)s bu sunucunun etkin bir disk dosyası havuzu değil"
|
||||
|
||||
#: vrtManager/instance.py:2336
|
||||
#: vrtManager/instance.py:2345
|
||||
#, python-format
|
||||
msgid "%(dev)s is in pool %(pool_name)s already"
|
||||
msgstr "%(dev)s zaten %(pool_name)s havuzunda"
|
||||
|
||||
#: vrtManager/instance.py:2340
|
||||
#: vrtManager/instance.py:2349
|
||||
#, python-format
|
||||
msgid "Pool %(pool_name)s already has a file %(name)s"
|
||||
msgstr "%(pool_name)s havuzunda zaten %(name)s dosyası var"
|
||||
|
||||
#: vrtManager/instance.py:2364
|
||||
#: vrtManager/instance.py:2373
|
||||
#, python-format
|
||||
msgid "The copy of %(dev)s ended before it was complete"
|
||||
msgstr "%(dev)s kopyası tamamlanmadan sona erdi"
|
||||
|
||||
#: vrtManager/instance.py:2409
|
||||
#: vrtManager/instance.py:2418
|
||||
#, python-format
|
||||
msgid "%(error)s; remove %(dest)s if it is there: %(cleanup_error)s"
|
||||
msgstr "%(error)s; varsa %(dest)s dosyasını kaldırın: %(cleanup_error)s"
|
||||
|
||||
#: vrtManager/instance.py:2411
|
||||
#: vrtManager/instance.py:2420
|
||||
#, python-format
|
||||
msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s"
|
||||
msgstr ""
|
||||
"%(error)s; sanal makine şu anda %(dest)s dosyasını kullanıyor olabilir: "
|
||||
"%(dev)s diskini kontrol edin"
|
||||
|
||||
#: vrtManager/instance.py:2418
|
||||
#: vrtManager/instance.py:2427
|
||||
#, python-format
|
||||
msgid "The VM has no internal snapshot named %(name)s"
|
||||
msgstr "Sanal makinenin %(name)s adlı dahili anlık görüntüsü yok"
|
||||
|
||||
#: vrtManager/instance.py:2429
|
||||
#: vrtManager/instance.py:2438
|
||||
msgid "A snapshot job is still running on this VM; try again when it ends"
|
||||
msgstr ""
|
||||
"Bu sanal makinede hâlâ bir anlık görüntü işi çalışıyor; bittiğinde tekrar "
|
||||
"deneyin"
|
||||
|
||||
#: vrtManager/instance.py:2439
|
||||
#: vrtManager/instance.py:2448
|
||||
msgid "Shut the VM down to revert to an internal snapshot"
|
||||
msgstr "Dahili bir anlık görüntüye geri dönmek için sanal makineyi kapatın"
|
||||
|
||||
#: vrtManager/instance.py:2526
|
||||
#: vrtManager/instance.py:2535
|
||||
msgid "A VM with a host's or an external TPM is not cloned; remove it first"
|
||||
msgstr ""
|
||||
"Ana makinenin ya da harici bir TPM'i olan sanal makine klonlanmaz; önce onu "
|
||||
"kaldırın"
|
||||
|
||||
#: vrtManager/instance.py:2557
|
||||
#: vrtManager/instance.py:2566
|
||||
msgid "Cannot clone a VM whose NVRAM is not a file"
|
||||
msgstr "NVRAM'i dosya olmayan bir sanal makine klonlanamaz"
|
||||
|
||||
#: vrtManager/instance.py:2627
|
||||
#: vrtManager/instance.py:2636
|
||||
#, python-format
|
||||
msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s"
|
||||
msgstr ""
|
||||
"Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(path)s"
|
||||
|
||||
#: vrtManager/instance.py:2638
|
||||
#: vrtManager/instance.py:2647
|
||||
msgid "Shut the VM down before cloning it"
|
||||
msgstr "Klonlamadan önce sanal makineyi kapatın"
|
||||
|
||||
#: vrtManager/instance.py:2665
|
||||
#: vrtManager/instance.py:2674
|
||||
#, python-format
|
||||
msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s"
|
||||
msgstr ""
|
||||
"Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(leftovers)s"
|
||||
|
||||
#: vrtManager/instance.py:2676
|
||||
#: vrtManager/instance.py:2685
|
||||
msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it"
|
||||
msgstr ""
|
||||
"Canlı klonlama libvirt 11.10 veya sonrasını gerektirir; klonlamak için sanal "
|
||||
"makineyi kapatın"
|
||||
|
||||
#: vrtManager/instance.py:2679
|
||||
#: vrtManager/instance.py:2688
|
||||
msgid "A VM with a TPM is cloned only shut down"
|
||||
msgstr "TPM'i olan bir sanal makine yalnızca kapalıyken klonlanır"
|
||||
|
||||
#: vrtManager/instance.py:2682
|
||||
#: vrtManager/instance.py:2691
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a local file; shut the VM down to clone it"
|
||||
msgstr ""
|
||||
"Disk %(dev)s yerel bir dosya değil; klonlamak için sanal makineyi kapatın"
|
||||
|
||||
#: vrtManager/instance.py:2684
|
||||
#: vrtManager/instance.py:2693
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is shareable; shut the VM down to clone it"
|
||||
msgstr "Disk %(dev)s paylaşılabilir; klonlamak için sanal makineyi kapatın"
|
||||
|
||||
#: vrtManager/instance.py:2689
|
||||
#: vrtManager/instance.py:2698
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it"
|
||||
msgstr ""
|
||||
"Disk %(dev)s sonraki başlatmada değişiyor; klonlamak için sanal makineyi "
|
||||
"kapatın"
|
||||
|
||||
#: vrtManager/instance.py:2691
|
||||
#: vrtManager/instance.py:2700
|
||||
msgid "Another job is running on the VM; clone it when that ends"
|
||||
msgstr "Sanal makinede başka bir iş çalışıyor; o bittiğinde klonlayın"
|
||||
|
||||
#: vrtManager/instance.py:2717
|
||||
#: vrtManager/instance.py:2726
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB"
|
||||
|
|
@ -10128,25 +10149,25 @@ msgstr ""
|
|||
"gerektiriyor (kopyalanan diskler, artı bunların %%%(percent)g kadarı, en az "
|
||||
"%(minimum)g GiB)"
|
||||
|
||||
#: vrtManager/instance.py:2734
|
||||
#: vrtManager/instance.py:2743
|
||||
#, python-format
|
||||
msgid "Volume %(name)s already exists in storage pool %(pool)s"
|
||||
msgstr "%(name)s birimi %(pool)s depolama havuzunda zaten var"
|
||||
|
||||
#: vrtManager/instance.py:2888
|
||||
#: vrtManager/instance.py:2897
|
||||
msgid "A network interface that is a host device is removed in the XML editor"
|
||||
msgstr "Sunucu aygıtı olan bir ağ arabirimi XML düzenleyicide kaldırılır"
|
||||
|
||||
#: vrtManager/instance.py:2904
|
||||
#: vrtManager/instance.py:2913
|
||||
#, python-format
|
||||
msgid "No network interface with MAC %(old_mac)s"
|
||||
msgstr "MAC adresi %(old_mac)s olan ağ arabirimi yok"
|
||||
|
||||
#: vrtManager/instance.py:2907
|
||||
#: vrtManager/instance.py:2916
|
||||
msgid "A network interface that is a host device is changed in the XML editor"
|
||||
msgstr "Sunucu aygıtı olan bir ağ arabirimi XML düzenleyicide değiştirilir"
|
||||
|
||||
#: vrtManager/instance.py:3001
|
||||
#: vrtManager/instance.py:3010
|
||||
msgid ""
|
||||
"A VM changes its PCI devices while it runs, or is shut off without a saved "
|
||||
"state"
|
||||
|
|
@ -10154,43 +10175,43 @@ msgstr ""
|
|||
"Sanal makine PCI aygıtlarını çalışırken veya kaydedilmiş durumu olmadan "
|
||||
"kapalıyken değiştirir"
|
||||
|
||||
#: vrtManager/instance.py:3022
|
||||
#: vrtManager/instance.py:3031
|
||||
#, python-format
|
||||
msgid "%(err)s; whether the VM has %(device)s now is not known"
|
||||
msgstr "%(err)s; sanal makinede şu anda %(device)s olup olmadığı bilinmiyor"
|
||||
|
||||
#: vrtManager/instance.py:3024
|
||||
#: vrtManager/instance.py:3033
|
||||
#, python-format
|
||||
msgid "%(err)s; %(device)s: the VM is not running, its next start has it"
|
||||
msgstr "%(err)s; %(device)s: sanal makine çalışmıyor, sonraki başlatmada var"
|
||||
|
||||
#: vrtManager/instance.py:3025
|
||||
#: vrtManager/instance.py:3034
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(err)s; %(device)s: the VM is not running, its next start does not have it"
|
||||
msgstr "%(err)s; %(device)s: sanal makine çalışmıyor, sonraki başlatmada yok"
|
||||
|
||||
#: vrtManager/instance.py:3026
|
||||
#: vrtManager/instance.py:3035
|
||||
#, python-format
|
||||
msgid "%(err)s; %(device)s: the running VM has it, its next start has it"
|
||||
msgstr ""
|
||||
"%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada var"
|
||||
|
||||
#: vrtManager/instance.py:3027
|
||||
#: vrtManager/instance.py:3036
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(err)s; %(device)s: the running VM has it, its next start does not have it"
|
||||
msgstr ""
|
||||
"%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada yok"
|
||||
|
||||
#: vrtManager/instance.py:3028
|
||||
#: vrtManager/instance.py:3037
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(err)s; %(device)s: the running VM does not have it, its next start has it"
|
||||
msgstr ""
|
||||
"%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada var"
|
||||
|
||||
#: vrtManager/instance.py:3030
|
||||
#: vrtManager/instance.py:3039
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(err)s; %(device)s: the running VM does not have it, its next start does not"
|
||||
|
|
@ -10198,48 +10219,48 @@ msgid ""
|
|||
msgstr ""
|
||||
"%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada yok"
|
||||
|
||||
#: vrtManager/instance.py:3064
|
||||
#: vrtManager/instance.py:3073
|
||||
#, python-format
|
||||
msgid "The VM has no PCI device %(address)s"
|
||||
msgstr "Sanal makinede %(address)s PCI aygıtı yok"
|
||||
|
||||
#: vrtManager/instance.py:3085
|
||||
#: vrtManager/instance.py:3094
|
||||
msgid "The VM has no USB controller"
|
||||
msgstr "Sanal makinede USB denetleyicisi yok"
|
||||
|
||||
#: vrtManager/instance.py:3119
|
||||
#: vrtManager/instance.py:3128
|
||||
msgid "The VM has no such USB device"
|
||||
msgstr "Sanal makinede böyle bir USB aygıtı yok"
|
||||
|
||||
#: vrtManager/instance.py:3133
|
||||
#: vrtManager/instance.py:3142
|
||||
#, python-format
|
||||
msgid "The VM has no network interface %(mac)s"
|
||||
msgstr "Sanal makinede %(mac)s ağ arabirimi yok"
|
||||
|
||||
#: vrtManager/instance.py:3164
|
||||
#: vrtManager/instance.py:3173
|
||||
msgid "The VM has its own RNG device: change it in the XML editor"
|
||||
msgstr ""
|
||||
"Sanal makinenin kendi RNG aygıtı var: bunu XML düzenleyicide değiştirin"
|
||||
|
||||
#: vrtManager/instance.py:3191
|
||||
#: vrtManager/instance.py:3200
|
||||
msgid "The VM has its own TPM: change it in the XML editor"
|
||||
msgstr "Sanal makinenin kendi TPM'i var: bunu XML düzenleyicide değiştirin"
|
||||
|
||||
#: vrtManager/instance.py:3210
|
||||
#: vrtManager/instance.py:3219
|
||||
#, python-format
|
||||
msgid "Unknown crash action %(action)s"
|
||||
msgstr "Bilinmeyen çökme eylemi %(action)s"
|
||||
|
||||
#: vrtManager/instance.py:3237
|
||||
#: vrtManager/instance.py:3246
|
||||
#, python-format
|
||||
msgid "Network interface %(mac)s is not in the definition"
|
||||
msgstr "%(mac)s ağ arayüzü tanımda yok"
|
||||
|
||||
#: vrtManager/instance.py:3328
|
||||
#: vrtManager/instance.py:3337
|
||||
msgid "The guest agent did not answer in time; nothing was changed"
|
||||
msgstr "Konuk ajanı zamanında yanıt vermedi; hiçbir şey değiştirilmedi"
|
||||
|
||||
#: vrtManager/instance.py:3331
|
||||
#: vrtManager/instance.py:3340
|
||||
msgid "The VM runs Windows: its guest agent sets no root password or SSH key"
|
||||
msgstr ""
|
||||
"Sanal makinede Windows çalışıyor: konuk ajanı root parolası ya da SSH "
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-16 06:19+0000\n"
|
||||
"POT-Creation-Date: 2026-11-16 07:18+0000\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
|
@ -63,7 +63,7 @@ msgstr "无效的密钥"
|
|||
|
||||
#: accounts/forms.py:95 computes/templates/computes/balance.html:57
|
||||
#: computes/templates/computes/balance.html:104
|
||||
#: computes/templates/computes/bulk_migrate.html:47
|
||||
#: computes/templates/computes/bulk_migrate.html:53
|
||||
#: computes/templates/computes/instances.html:46
|
||||
#: instances/templates/add_instance_volume.html:39
|
||||
#: instances/templates/allinstances_index_grouped.html:11
|
||||
|
|
@ -749,7 +749,7 @@ msgid "vCPUs"
|
|||
msgstr "vCPU"
|
||||
|
||||
#: admin/forms.py:209 computes/templates/computes/balance.html:58
|
||||
#: computes/templates/computes/bulk_migrate.html:49
|
||||
#: computes/templates/computes/bulk_migrate.html:55
|
||||
#: computes/templates/computes/instances.html:50
|
||||
#: computes/templates/computes/list.html:62 computes/templates/overview.html:66
|
||||
#: computes/templates/overview.html:150
|
||||
|
|
@ -1916,16 +1916,20 @@ msgstr "批量迁移已停止:已启动的迁移作为各自的任务继续进
|
|||
msgid "Bulk migrate"
|
||||
msgstr "批量迁移"
|
||||
|
||||
#: computes/jobs.py:171 computes/templates/computes/balance.html:6
|
||||
#: computes/jobs.py:156 computes/jobs.py:195
|
||||
msgid "A VM is already on its destination"
|
||||
msgstr "有虚拟机已在其目标主机上"
|
||||
|
||||
#: computes/jobs.py:158
|
||||
msgid "A destination host was deleted"
|
||||
msgstr "有目标主机已被删除"
|
||||
|
||||
#: computes/jobs.py:181 computes/templates/computes/balance.html:6
|
||||
#: computes/templates/computes/balance.html:12
|
||||
#: computes/templates/computes/list.html:12
|
||||
msgid "Balance"
|
||||
msgstr "均衡"
|
||||
|
||||
#: computes/jobs.py:185
|
||||
msgid "A VM is already on its destination"
|
||||
msgstr "有虚拟机已在其目标主机上"
|
||||
|
||||
#: computes/models.py:21
|
||||
msgid "hostname"
|
||||
msgstr "主机名"
|
||||
|
|
@ -1986,6 +1990,11 @@ msgstr "其虚拟机所在的主机尚不明确:请在面板通过当前连接
|
|||
msgid "This is another host than the one its VMs are on: add it as a new host"
|
||||
msgstr "这不是其虚拟机所在的主机:请将其添加为新主机"
|
||||
|
||||
#: computes/reach.py:56
|
||||
msgid ""
|
||||
"A disk file is not on storage both hosts share: migrate it from its page"
|
||||
msgstr "有磁盘文件不在两台主机共享的存储上:请在该虚拟机的页面上迁移它"
|
||||
|
||||
#: computes/templates/computes/balance.html:11
|
||||
#: computes/templates/computes/list.html:6
|
||||
#: computes/templates/computes/list.html:14 templates/navbar.html:18
|
||||
|
|
@ -1999,6 +2008,7 @@ msgid ""
|
|||
msgstr "在各主机之间均衡分配运行中虚拟机的内存(其次是 vCPU)的迁移。"
|
||||
|
||||
#: computes/templates/computes/balance.html:17
|
||||
#: computes/templates/computes/bulk_migrate.html:20
|
||||
msgid "These hosts cannot be read and are left out:"
|
||||
msgstr "以下主机无法读取,已排除:"
|
||||
|
||||
|
|
@ -2038,7 +2048,7 @@ msgid_plural "Proposed migrations (%(counter)s)"
|
|||
msgstr[0] "建议的迁移(%(counter)s)"
|
||||
|
||||
#: computes/templates/computes/balance.html:56
|
||||
#: computes/templates/computes/bulk_migrate.html:46
|
||||
#: computes/templates/computes/bulk_migrate.html:52
|
||||
msgid "Select all"
|
||||
msgstr "全选"
|
||||
|
||||
|
|
@ -2047,7 +2057,7 @@ msgid "Migration"
|
|||
msgstr "迁移"
|
||||
|
||||
#: computes/templates/computes/balance.html:81
|
||||
#: computes/templates/computes/bulk_migrate.html:73
|
||||
#: computes/templates/computes/bulk_migrate.html:87
|
||||
msgid "Migrations at once"
|
||||
msgstr "同时迁移数"
|
||||
|
||||
|
|
@ -2062,7 +2072,7 @@ msgid "Migrate the VMs listed?"
|
|||
msgstr "迁移列出的虚拟机?"
|
||||
|
||||
#: computes/templates/computes/balance.html:88
|
||||
#: computes/templates/computes/bulk_migrate.html:22
|
||||
#: computes/templates/computes/bulk_migrate.html:27
|
||||
msgid ""
|
||||
"The worker runs one job at a time: set Worker Concurrency to 2 or more on the"
|
||||
" Settings page."
|
||||
|
|
@ -2082,7 +2092,7 @@ msgid "Let it move"
|
|||
msgstr "允许迁移"
|
||||
|
||||
#: computes/templates/computes/balance.html:106
|
||||
#: computes/templates/computes/bulk_migrate.html:51
|
||||
#: computes/templates/computes/bulk_migrate.html:58
|
||||
msgid "Why"
|
||||
msgstr "原因"
|
||||
|
||||
|
|
@ -2106,31 +2116,41 @@ msgid ""
|
|||
"one offline. A VM that fails stays on this host."
|
||||
msgstr "每台选中的虚拟机在各自的任务中迁移:运行中的虚拟机在线迁移,已关机的离线迁移。迁移失败的虚拟机留在此主机上。"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:24
|
||||
#: computes/templates/computes/bulk_migrate.html:29
|
||||
msgid "The host has no VMs."
|
||||
msgstr "此主机没有虚拟机。"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:31
|
||||
#: computes/templates/computes/bulk_migrate.html:36
|
||||
#: computes/templates/computes/bulk_migrate.html:57
|
||||
msgid "Destination"
|
||||
msgstr "目标主机"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:39
|
||||
#: computes/templates/computes/bulk_migrate.html:37
|
||||
msgid "Spread over the other hosts"
|
||||
msgstr "分散到其他主机"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:45
|
||||
msgid "Also migrate the shut-off VMs"
|
||||
msgstr "同时迁移已关机的虚拟机"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:48
|
||||
#: computes/templates/computes/bulk_migrate.html:54
|
||||
#: computes/templates/computes/instances.html:48
|
||||
#: instances/templates/allinstances_index_grouped.html:12
|
||||
#: instances/templates/allinstances_index_nongrouped.html:10
|
||||
msgid "Status"
|
||||
msgstr "状态"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:77
|
||||
#: computes/templates/computes/bulk_migrate.html:92
|
||||
#, python-format
|
||||
msgid "Migrate the chosen VMs from %(source)s to the hosts shown?"
|
||||
msgstr "将所选虚拟机从 %(source)s 迁移到所示主机?"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:94
|
||||
#, python-format
|
||||
msgid "Migrate the chosen VMs from %(source)s to %(dest)s?"
|
||||
msgstr "将选中的虚拟机从 %(source)s 迁移到 %(dest)s?"
|
||||
|
||||
#: computes/templates/computes/bulk_migrate.html:79
|
||||
#: computes/templates/computes/bulk_migrate.html:97
|
||||
msgid "Migrate the chosen VMs"
|
||||
msgstr "迁移所选虚拟机"
|
||||
|
||||
|
|
@ -2600,22 +2620,21 @@ msgid ""
|
|||
"/etc/default/webvirt-gstfsd"
|
||||
msgstr "请输入主机 /etc/default/webvirt-gstfsd 中 GSTFSD_KEY 的 64 个十六进制字符"
|
||||
|
||||
#: computes/views.py:151
|
||||
#: computes/views.py:150
|
||||
#, python-format
|
||||
msgid "The host did not answer within %(seconds)s seconds"
|
||||
msgstr "主机未在 %(seconds)s 秒内响应"
|
||||
|
||||
#: computes/views.py:246
|
||||
msgid ""
|
||||
"A disk file is not on storage both hosts share: migrate it from its page"
|
||||
msgstr "有磁盘文件不在两台主机共享的存储上:请在该虚拟机的页面上迁移它"
|
||||
#: computes/views.py:324
|
||||
msgid "No other host has room for it"
|
||||
msgstr "没有其他主机能容纳它"
|
||||
|
||||
#: computes/views.py:366
|
||||
#: computes/views.py:397
|
||||
#, python-format
|
||||
msgid "The host was saved, but the panel cannot connect to it: %(error)s"
|
||||
msgstr "主机已保存,但面板无法连接到它:%(error)s"
|
||||
|
||||
#: computes/views.py:422
|
||||
#: computes/views.py:453
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Its VMs keep running on the host and leave the panel; their owners are kept "
|
||||
|
|
@ -2944,7 +2963,7 @@ msgstr "VNC 密码最多 8 个字母、数字或符号,不能有带重音的
|
|||
msgid "A password takes no line breaks or other control characters."
|
||||
msgstr "密码不能包含换行或其他控制字符。"
|
||||
|
||||
#: instances/forms.py:114 vrtManager/instance.py:1658
|
||||
#: instances/forms.py:114 vrtManager/instance.py:1667
|
||||
msgid ""
|
||||
"The console listens on no address (on a network, a socket or nowhere); change"
|
||||
" it in the XML editor"
|
||||
|
|
@ -3031,7 +3050,7 @@ msgstr "虚拟机未定义;请检查这些卷,然后处理此任务:%(volu
|
|||
msgid "Delete snapshot"
|
||||
msgstr "删除快照"
|
||||
|
||||
#: instances/jobs.py:356 vrtManager/instance.py:2417
|
||||
#: instances/jobs.py:356 vrtManager/instance.py:2426
|
||||
#, python-format
|
||||
msgid "The VM has no external snapshot named %(name)s"
|
||||
msgstr "虚拟机没有名为 %(name)s 的外部快照"
|
||||
|
|
@ -3063,7 +3082,7 @@ msgstr "虚拟机已不在运行该任务的计算节点上"
|
|||
msgid "Take snapshot"
|
||||
msgstr "创建快照"
|
||||
|
||||
#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:2008
|
||||
#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:2017
|
||||
#, python-format
|
||||
msgid "A snapshot named %(name)s already exists"
|
||||
msgstr "名为 %(name)s 的快照已存在"
|
||||
|
|
@ -3202,12 +3221,12 @@ msgstr "镜像已存在。请检查卷或更改虚拟机名称"
|
|||
msgid "Each network card needs a network"
|
||||
msgstr "每个网卡都需要一个网络"
|
||||
|
||||
#: instances/jobs.py:851 vrtManager/instance.py:2849
|
||||
#: instances/jobs.py:851 vrtManager/instance.py:2858
|
||||
#, python-format
|
||||
msgid "This host has no network %(name)s"
|
||||
msgstr "此主机没有网络 %(name)s"
|
||||
|
||||
#: instances/jobs.py:853 vrtManager/instance.py:2851
|
||||
#: instances/jobs.py:853 vrtManager/instance.py:2860
|
||||
#, python-format
|
||||
msgid "This host has no network filter %(name)s"
|
||||
msgstr "此主机没有网络过滤器 %(name)s"
|
||||
|
|
@ -3277,7 +3296,7 @@ msgstr "cloud-init 种子需要为磁盘使用目录类型的存储池"
|
|||
msgid "This host offers no firmware %(firmware)s"
|
||||
msgstr "此主机不提供固件 %(firmware)s"
|
||||
|
||||
#: instances/jobs.py:939 vrtManager/instance.py:3198
|
||||
#: instances/jobs.py:939 vrtManager/instance.py:3207
|
||||
msgid "This host offers no TPM 2.0: install swtpm on it"
|
||||
msgstr "此主机不提供 TPM 2.0:请在主机上安装 swtpm"
|
||||
|
||||
|
|
@ -4511,7 +4530,7 @@ msgid "Add USB device"
|
|||
msgstr "添加 USB 设备"
|
||||
|
||||
#: instances/templates/instances/host_devices_form.html:18
|
||||
#: vrtManager/instance.py:3102
|
||||
#: vrtManager/instance.py:3111
|
||||
msgid ""
|
||||
"A VM with a saved state does not change its USB devices: start it, or start "
|
||||
"it without its saved state"
|
||||
|
|
@ -6369,7 +6388,7 @@ msgstr "卷已成功更改。"
|
|||
msgid "Disk %(dev)s is not a storage volume of this instance"
|
||||
msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷"
|
||||
|
||||
#: instances/views.py:1594 vrtManager/instance.py:2427
|
||||
#: instances/views.py:1594 vrtManager/instance.py:2436
|
||||
msgid "The VM has a saved state; start it or remove the saved state first"
|
||||
msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态"
|
||||
|
||||
|
|
@ -6423,7 +6442,7 @@ msgstr "快照未删除:%(err)s"
|
|||
msgid "Add at least one device to the boot order."
|
||||
msgstr "请至少向启动顺序中添加一个设备。"
|
||||
|
||||
#: instances/views.py:1906 vrtManager/instance.py:1199
|
||||
#: instances/views.py:1906 vrtManager/instance.py:1208
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "启动顺序的设备类型无效"
|
||||
|
||||
|
|
@ -9048,323 +9067,323 @@ msgid ""
|
|||
"from cannot be checked; start the pool first"
|
||||
msgstr "存储池 %(pool)s 未激活:无法检查其中虚拟机磁盘所基于的文件;请先启动该存储池"
|
||||
|
||||
#: vrtManager/instance.py:170
|
||||
#: vrtManager/instance.py:178
|
||||
msgid "The VM is not running"
|
||||
msgstr "虚拟机未在运行"
|
||||
|
||||
#: vrtManager/instance.py:175
|
||||
#: vrtManager/instance.py:183
|
||||
msgid "A running or paused VM cannot be migrated offline"
|
||||
msgstr "运行中或已暂停的虚拟机不能离线迁移"
|
||||
|
||||
#: vrtManager/instance.py:178
|
||||
#: vrtManager/instance.py:186
|
||||
msgid "The VM can be migrated when it is running, paused or shut off"
|
||||
msgstr "虚拟机在运行、暂停或关机时可以迁移"
|
||||
|
||||
#: vrtManager/instance.py:201
|
||||
#: vrtManager/instance.py:209
|
||||
msgid "A VM with snapshots cannot be migrated"
|
||||
msgstr "有快照的虚拟机不能迁移"
|
||||
|
||||
#: vrtManager/instance.py:204
|
||||
#: vrtManager/instance.py:212
|
||||
msgid "A VM with a saved state cannot be migrated"
|
||||
msgstr "有保存的状态的虚拟机不能迁移"
|
||||
|
||||
#: vrtManager/instance.py:211
|
||||
#: vrtManager/instance.py:219
|
||||
msgid "A VM with host devices cannot be migrated; remove them first"
|
||||
msgstr "有主机设备的虚拟机不能迁移;请先移除它们"
|
||||
|
||||
#: vrtManager/instance.py:215
|
||||
#: vrtManager/instance.py:223
|
||||
#, python-format
|
||||
msgid "The destination host does not have these networks of the VM: %(names)s"
|
||||
msgstr "目标主机没有该虚拟机的这些网络:%(names)s"
|
||||
|
||||
#: vrtManager/instance.py:219
|
||||
#: vrtManager/instance.py:227
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The destination host does not have these network filters of the VM: %(names)s"
|
||||
msgstr "目标主机没有该虚拟机的这些网络过滤器:%(names)s"
|
||||
|
||||
#: vrtManager/instance.py:222
|
||||
#: vrtManager/instance.py:230
|
||||
#, python-format
|
||||
msgid ""
|
||||
"These network filters of the VM have other rules on the destination host: "
|
||||
"%(names)s"
|
||||
msgstr "该虚拟机的这些网络过滤器在目标主机上的规则不同:%(names)s"
|
||||
|
||||
#: vrtManager/instance.py:225
|
||||
#: vrtManager/instance.py:233
|
||||
#, python-format
|
||||
msgid "The destination host does not have these secrets of the VM: %(names)s"
|
||||
msgstr "目标主机没有该虚拟机的这些机密:%(names)s"
|
||||
|
||||
#: vrtManager/instance.py:232
|
||||
#: vrtManager/instance.py:240
|
||||
#, python-format
|
||||
msgid "The destination host does not have these disks of the VM: %(disks)s"
|
||||
msgstr "目标主机没有该虚拟机的这些磁盘:%(disks)s"
|
||||
|
||||
#: vrtManager/instance.py:233
|
||||
#: vrtManager/instance.py:241
|
||||
#, python-format
|
||||
msgid "%(target)s (%(source)s)"
|
||||
msgstr "%(target)s(%(source)s)"
|
||||
|
||||
#: vrtManager/instance.py:241
|
||||
#: vrtManager/instance.py:249
|
||||
msgid "Destination host emulator is different. Cannot be migrated"
|
||||
msgstr "目标主机的模拟器不同,无法迁移"
|
||||
|
||||
#: vrtManager/instance.py:375
|
||||
#: vrtManager/instance.py:384
|
||||
msgid "an image is not copied; eject it first"
|
||||
msgstr "镜像不会被复制;请先弹出它"
|
||||
|
||||
#: vrtManager/instance.py:378
|
||||
#: vrtManager/instance.py:387
|
||||
msgid "a read-only or encrypted disk is not copied"
|
||||
msgstr "只读或加密的磁盘不会被复制"
|
||||
|
||||
#: vrtManager/instance.py:381
|
||||
#: vrtManager/instance.py:390
|
||||
msgid "only raw and qcow2 disks are copied"
|
||||
msgstr "只复制 raw 和 qcow2 磁盘"
|
||||
|
||||
#: vrtManager/instance.py:383
|
||||
#: vrtManager/instance.py:392
|
||||
msgid "no storage pool of the source host has it"
|
||||
msgstr "源主机的任何存储池中都没有它"
|
||||
|
||||
#: vrtManager/instance.py:385
|
||||
#: vrtManager/instance.py:394
|
||||
msgid "a disk with a backing file is not copied"
|
||||
msgstr "有后备文件的磁盘不会被复制"
|
||||
|
||||
#: vrtManager/instance.py:405
|
||||
#: vrtManager/instance.py:414
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): the destination host does not share it; choose a pool "
|
||||
"to copy it to"
|
||||
msgstr "%(target)s (%(path)s):目标主机不共享它;请选择要复制到的存储池"
|
||||
|
||||
#: vrtManager/instance.py:409
|
||||
#: vrtManager/instance.py:418
|
||||
#, python-format
|
||||
msgid "%(target)s (%(path)s): %(refusal)s"
|
||||
msgstr "%(target)s (%(path)s):%(refusal)s"
|
||||
|
||||
#: vrtManager/instance.py:414
|
||||
#: vrtManager/instance.py:423
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): the destination host has no pool %(pool)s for disk "
|
||||
"files"
|
||||
msgstr "%(target)s (%(path)s):目标主机没有用于磁盘文件的存储池 %(pool)s"
|
||||
|
||||
#: vrtManager/instance.py:421
|
||||
#: vrtManager/instance.py:430
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): pool %(pool)s of the destination host already has a "
|
||||
"file %(file)s"
|
||||
msgstr "%(target)s (%(path)s):目标主机的存储池 %(pool)s 中已有文件 %(file)s"
|
||||
|
||||
#: vrtManager/instance.py:428
|
||||
#: vrtManager/instance.py:437
|
||||
#, python-format
|
||||
msgid "%(target)s (%(path)s): another disk is copied to %(dest)s"
|
||||
msgstr "%(target)s (%(path)s):另一个磁盘已复制到 %(dest)s"
|
||||
|
||||
#: vrtManager/instance.py:433
|
||||
#: vrtManager/instance.py:442
|
||||
#, python-format
|
||||
msgid "%(target)s: the VM has no disk file to copy"
|
||||
msgstr "%(target)s:虚拟机没有可复制的磁盘文件"
|
||||
|
||||
#: vrtManager/instance.py:437
|
||||
#: vrtManager/instance.py:446
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s) of the next start: the destination host does not share "
|
||||
"it"
|
||||
msgstr "下次启动的 %(target)s (%(path)s):目标主机不共享它"
|
||||
|
||||
#: vrtManager/instance.py:441
|
||||
#: vrtManager/instance.py:450
|
||||
#, python-format
|
||||
msgid "The disks cannot be migrated: %(problems)s"
|
||||
msgstr "磁盘无法迁移:%(problems)s"
|
||||
|
||||
#: vrtManager/instance.py:454
|
||||
#: vrtManager/instance.py:463
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; remove the partial disk copies from the destination host: "
|
||||
"%(copies)s"
|
||||
msgstr "%(error)s;请从目标主机删除不完整的磁盘副本:%(copies)s"
|
||||
|
||||
#: vrtManager/instance.py:471
|
||||
#: vrtManager/instance.py:480
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; remove the partial disk copies from the destination host: %(left)s"
|
||||
msgstr "%(error)s;请从目标主机删除不完整的磁盘副本:%(left)s"
|
||||
|
||||
#: vrtManager/instance.py:485
|
||||
#: vrtManager/instance.py:494
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The NVRAM file %(path)s is not in libvirt's NVRAM directory %(dir)s and "
|
||||
"cannot be copied"
|
||||
msgstr "NVRAM 文件 %(path)s 不在 libvirt 的 NVRAM 目录 %(dir)s 中,无法复制"
|
||||
|
||||
#: vrtManager/instance.py:494
|
||||
#: vrtManager/instance.py:503
|
||||
#, python-format
|
||||
msgid "The destination host cannot see the NVRAM file %(path)s"
|
||||
msgstr "目标主机看不到 NVRAM 文件 %(path)s"
|
||||
|
||||
#: vrtManager/instance.py:585
|
||||
#: vrtManager/instance.py:594
|
||||
#, python-format
|
||||
msgid "%(type)s disk, cannot be checked"
|
||||
msgstr "%(type)s 磁盘,无法检查"
|
||||
|
||||
#: vrtManager/instance.py:625
|
||||
#: vrtManager/instance.py:634
|
||||
#, python-format
|
||||
msgid "The destination host already has a VM %(key)s"
|
||||
msgstr "目标主机上已有虚拟机 %(key)s"
|
||||
|
||||
#: vrtManager/instance.py:647
|
||||
#: vrtManager/instance.py:656
|
||||
msgid "The VM was started on the source host during the migration"
|
||||
msgstr "迁移期间虚拟机在源主机上被启动"
|
||||
|
||||
#: vrtManager/instance.py:663
|
||||
#: vrtManager/instance.py:672
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; the VM may now be defined only on the destination host: check both"
|
||||
" hosts"
|
||||
msgstr "%(error)s;虚拟机现在可能只在目标主机上定义:请检查两台主机"
|
||||
|
||||
#: vrtManager/instance.py:669
|
||||
#: vrtManager/instance.py:678
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; the VM is now defined on both hosts, remove it from the "
|
||||
"destination: %(undo_error)s"
|
||||
msgstr "%(error)s;虚拟机现在在两台主机上都有定义,请从目标主机删除它:%(undo_error)s"
|
||||
|
||||
#: vrtManager/instance.py:675
|
||||
#: vrtManager/instance.py:684
|
||||
msgid ""
|
||||
"Snapshot names are 1-64 letters, digits, '.', '_' or '-' and do not start "
|
||||
"with '.'"
|
||||
msgstr "快照名称为 1-64 个字母、数字、'.'、'_' 或 '-',且不能以 '.' 开头"
|
||||
|
||||
#: vrtManager/instance.py:1187
|
||||
#: vrtManager/instance.py:1196
|
||||
msgid ""
|
||||
"A device other than a disk or NIC is in the boot order: change it in the XML "
|
||||
"editor"
|
||||
msgstr "启动顺序中有磁盘或网卡以外的设备:请在 XML 编辑器中修改"
|
||||
|
||||
#: vrtManager/instance.py:1202
|
||||
#: vrtManager/instance.py:1211
|
||||
#, python-format
|
||||
msgid "Boot device %(dev)s is not in the definition"
|
||||
msgstr "启动设备 %(dev)s 不在定义中"
|
||||
|
||||
#: vrtManager/instance.py:1222
|
||||
#: vrtManager/instance.py:1231
|
||||
#, python-format
|
||||
msgid "CD-ROM %(dev)s is not in the running definition"
|
||||
msgstr "CD-ROM %(dev)s 不在运行中的定义中"
|
||||
|
||||
#: vrtManager/instance.py:1223
|
||||
#: vrtManager/instance.py:1232
|
||||
#, python-format
|
||||
msgid "CD-ROM %(dev)s is not in the persistent definition"
|
||||
msgstr "CD-ROM %(dev)s 不在持久定义中"
|
||||
|
||||
#: vrtManager/instance.py:1236
|
||||
#: vrtManager/instance.py:1245
|
||||
#, python-format
|
||||
msgid "Media of %(dev)s changed in the running VM only: %(err)s"
|
||||
msgstr "%(dev)s 的介质仅在运行中的虚拟机中更改:%(err)s"
|
||||
|
||||
#: vrtManager/instance.py:1247
|
||||
#: vrtManager/instance.py:1256
|
||||
#, python-format
|
||||
msgid "ISO image %(image)s was not found"
|
||||
msgstr "未找到 ISO 镜像 %(image)s"
|
||||
|
||||
#: vrtManager/instance.py:1249
|
||||
#: vrtManager/instance.py:1258
|
||||
#, python-format
|
||||
msgid "ISO image %(image)s is in more than one storage pool"
|
||||
msgstr "ISO 镜像 %(image)s 位于多个存储池中"
|
||||
|
||||
#: vrtManager/instance.py:1344
|
||||
#: vrtManager/instance.py:1353
|
||||
#, python-format
|
||||
msgid "Disk %(target_dev)s is not in the VM's definition"
|
||||
msgstr "磁盘 %(target_dev)s 不在虚拟机的定义中"
|
||||
|
||||
#: vrtManager/instance.py:1476
|
||||
#: vrtManager/instance.py:1485
|
||||
msgid "Please shutdown the instance then try to enable vCPU hotplug"
|
||||
msgstr "请先关闭虚拟机,再启用 vCPU 热插拔"
|
||||
|
||||
#: vrtManager/instance.py:1679
|
||||
#: vrtManager/instance.py:1688
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The serial console is a %(type)s one, the browser opens only a pty one; "
|
||||
"change it in the XML editor"
|
||||
msgstr "串行控制台的类型是 %(type)s,浏览器只能打开 pty 类型的;请在 XML 编辑器中更改"
|
||||
|
||||
#: vrtManager/instance.py:1790
|
||||
#: vrtManager/instance.py:1799
|
||||
msgid "The VM has no video card"
|
||||
msgstr "虚拟机没有显卡"
|
||||
|
||||
#: vrtManager/instance.py:1800
|
||||
#: vrtManager/instance.py:1809
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set"
|
||||
" another maximum"
|
||||
msgstr "该虚拟机的 CPU 拓扑为 %(count)s 个 vCPU:要设置其他最大值,请在 XML 编辑器中修改拓扑"
|
||||
|
||||
#: vrtManager/instance.py:1826
|
||||
#: vrtManager/instance.py:1835
|
||||
#, python-format
|
||||
msgid "The VM's next start has a maximum memory of %(max)s MiB"
|
||||
msgstr "虚拟机下次启动时的最大内存为 %(max)s MiB"
|
||||
|
||||
#: vrtManager/instance.py:1967
|
||||
#: vrtManager/instance.py:1976
|
||||
msgid ""
|
||||
"The VM has external snapshots; internal snapshots cannot be mixed with them"
|
||||
msgstr "虚拟机有外部快照;内部快照不能与其混用"
|
||||
|
||||
#: vrtManager/instance.py:1999
|
||||
#: vrtManager/instance.py:2008
|
||||
msgid "A snapshot with memory is not quiesced; it keeps the whole guest state"
|
||||
msgstr "含内存的快照不会静默文件系统;它保存整个客户机状态"
|
||||
|
||||
#: vrtManager/instance.py:2001
|
||||
#: vrtManager/instance.py:2010
|
||||
msgid "Only a running VM's file systems can be frozen"
|
||||
msgstr "只有运行中的虚拟机的文件系统可以冻结"
|
||||
|
||||
#: vrtManager/instance.py:2003
|
||||
#: vrtManager/instance.py:2012
|
||||
msgid "The QEMU guest agent is not connected; it freezes the file systems"
|
||||
msgstr "QEMU 客户机代理未连接;文件系统由它冻结"
|
||||
|
||||
#: vrtManager/instance.py:2006
|
||||
#: vrtManager/instance.py:2015
|
||||
msgid ""
|
||||
"The VM has internal snapshots; external snapshots cannot be mixed with them"
|
||||
msgstr "虚拟机有内部快照;外部快照不能与其混用"
|
||||
|
||||
#: vrtManager/instance.py:2011
|
||||
#: vrtManager/instance.py:2020
|
||||
msgid "Newer snapshots exist after the last revert; delete them first"
|
||||
msgstr "上次还原后存在更新的快照;请先删除它们"
|
||||
|
||||
#: vrtManager/instance.py:2014
|
||||
#: vrtManager/instance.py:2023
|
||||
msgid "No snapshot is current; revert to a snapshot first"
|
||||
msgstr "没有当前快照;请先还原到某个快照"
|
||||
|
||||
#: vrtManager/instance.py:2020
|
||||
#: vrtManager/instance.py:2029
|
||||
#, python-format
|
||||
msgid "Eject the media from %(dev)s first"
|
||||
msgstr "请先弹出 %(dev)s 中的介质"
|
||||
|
||||
#: vrtManager/instance.py:2022
|
||||
#: vrtManager/instance.py:2031
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a file; external snapshots need file disks"
|
||||
msgstr "磁盘 %(dev)s 不是文件;外部快照需要文件磁盘"
|
||||
|
||||
#: vrtManager/instance.py:2030
|
||||
#: vrtManager/instance.py:2039
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The storage pools could not be refreshed, so their free space is unknown: "
|
||||
"%(err)s"
|
||||
msgstr "无法刷新存储池,其可用空间未知:%(err)s"
|
||||
|
||||
#: vrtManager/instance.py:2051
|
||||
#: vrtManager/instance.py:2060
|
||||
msgid "Memory is saved only from a running VM"
|
||||
msgstr "只能保存运行中的虚拟机的内存"
|
||||
|
||||
#: vrtManager/instance.py:2053
|
||||
#: vrtManager/instance.py:2062
|
||||
msgid "The VM has no disk to keep its memory next to"
|
||||
msgstr "虚拟机没有可存放其内存的磁盘"
|
||||
|
||||
#: vrtManager/instance.py:2057
|
||||
#: vrtManager/instance.py:2066
|
||||
#, python-format
|
||||
msgid "%(disk)s is not in a storage pool; memory is saved only into one"
|
||||
msgstr "%(disk)s 不在存储池中;内存只能保存到存储池中"
|
||||
|
||||
#: vrtManager/instance.py:2088
|
||||
#: vrtManager/instance.py:2097
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f "
|
||||
|
|
@ -9374,151 +9393,151 @@ msgstr ""
|
|||
"存储池 %(pool)s 可用 %(free).1f GiB;快照需要 %(size).1f GiB(其中虚拟机磁盘的 %(percent)g%%,至少 "
|
||||
"%(minimum)g GiB,若保存内存则另加内存)"
|
||||
|
||||
#: vrtManager/instance.py:2106
|
||||
#: vrtManager/instance.py:2115
|
||||
msgid ""
|
||||
"This snapshot was taken by an older version on a UEFI VM and cannot be "
|
||||
"reverted; delete it instead"
|
||||
msgstr "此快照由旧版本在 UEFI 虚拟机上创建,无法还原;请将其删除"
|
||||
|
||||
#: vrtManager/instance.py:2136
|
||||
#: vrtManager/instance.py:2145
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The revert failed twice; try again in a moment (%(error)s). The VM is "
|
||||
"running."
|
||||
msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机正在运行。"
|
||||
|
||||
#: vrtManager/instance.py:2138
|
||||
#: vrtManager/instance.py:2147
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The revert failed twice; try again in a moment (%(error)s). The VM is shut "
|
||||
"off."
|
||||
msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机已关机。"
|
||||
|
||||
#: vrtManager/instance.py:2306
|
||||
#: vrtManager/instance.py:2315
|
||||
msgid "A disk moves when its VM is defined and running, paused or shut off"
|
||||
msgstr "仅当虚拟机已定义且处于运行、暂停或关机状态时才能移动磁盘"
|
||||
|
||||
#: vrtManager/instance.py:2308
|
||||
#: vrtManager/instance.py:2317
|
||||
msgid ""
|
||||
"A disk of a VM with snapshots, a saved state or a running block job does not "
|
||||
"move"
|
||||
msgstr "有快照、保存的状态或正在运行块任务的虚拟机的磁盘不能移动"
|
||||
|
||||
#: vrtManager/instance.py:2316
|
||||
#: vrtManager/instance.py:2325
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(dev)s is not a disk file of the VM, the same in its running and next "
|
||||
"start's definition"
|
||||
msgstr "%(dev)s 不是该虚拟机在运行中的定义和下次启动定义中相同的磁盘文件"
|
||||
|
||||
#: vrtManager/instance.py:2321
|
||||
#: vrtManager/instance.py:2330
|
||||
#, python-format
|
||||
msgid "%(dev)s does not move: only writable raw and qcow2 disks do"
|
||||
msgstr "%(dev)s 不能移动:只能移动可写的 raw 和 qcow2 磁盘"
|
||||
|
||||
#: vrtManager/instance.py:2328
|
||||
#: vrtManager/instance.py:2337
|
||||
#, python-format
|
||||
msgid "%(dev)s does not move: no storage pool has %(path)s"
|
||||
msgstr "%(dev)s 不能移动:没有存储池包含 %(path)s"
|
||||
|
||||
#: vrtManager/instance.py:2330
|
||||
#: vrtManager/instance.py:2339
|
||||
#, python-format
|
||||
msgid "%(dev)s does not move: it has a backing file"
|
||||
msgstr "%(dev)s 不能移动:它有后备文件"
|
||||
|
||||
#: vrtManager/instance.py:2333
|
||||
#: vrtManager/instance.py:2342
|
||||
#, python-format
|
||||
msgid "%(pool_name)s is not an active pool of disk files of this host"
|
||||
msgstr "%(pool_name)s 不是此主机上活动的磁盘文件存储池"
|
||||
|
||||
#: vrtManager/instance.py:2336
|
||||
#: vrtManager/instance.py:2345
|
||||
#, python-format
|
||||
msgid "%(dev)s is in pool %(pool_name)s already"
|
||||
msgstr "%(dev)s 已在存储池 %(pool_name)s 中"
|
||||
|
||||
#: vrtManager/instance.py:2340
|
||||
#: vrtManager/instance.py:2349
|
||||
#, python-format
|
||||
msgid "Pool %(pool_name)s already has a file %(name)s"
|
||||
msgstr "存储池 %(pool_name)s 中已有文件 %(name)s"
|
||||
|
||||
#: vrtManager/instance.py:2364
|
||||
#: vrtManager/instance.py:2373
|
||||
#, python-format
|
||||
msgid "The copy of %(dev)s ended before it was complete"
|
||||
msgstr "%(dev)s 的复制在完成前结束"
|
||||
|
||||
#: vrtManager/instance.py:2409
|
||||
#: vrtManager/instance.py:2418
|
||||
#, python-format
|
||||
msgid "%(error)s; remove %(dest)s if it is there: %(cleanup_error)s"
|
||||
msgstr "%(error)s;如果 %(dest)s 存在请将其删除:%(cleanup_error)s"
|
||||
|
||||
#: vrtManager/instance.py:2411
|
||||
#: vrtManager/instance.py:2420
|
||||
#, python-format
|
||||
msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s"
|
||||
msgstr "%(error)s;虚拟机现在可能在使用 %(dest)s:请检查其磁盘 %(dev)s"
|
||||
|
||||
#: vrtManager/instance.py:2418
|
||||
#: vrtManager/instance.py:2427
|
||||
#, python-format
|
||||
msgid "The VM has no internal snapshot named %(name)s"
|
||||
msgstr "虚拟机没有名为 %(name)s 的内部快照"
|
||||
|
||||
#: vrtManager/instance.py:2429
|
||||
#: vrtManager/instance.py:2438
|
||||
msgid "A snapshot job is still running on this VM; try again when it ends"
|
||||
msgstr "此虚拟机上仍有快照任务在运行;请在其结束后重试"
|
||||
|
||||
#: vrtManager/instance.py:2439
|
||||
#: vrtManager/instance.py:2448
|
||||
msgid "Shut the VM down to revert to an internal snapshot"
|
||||
msgstr "请关闭虚拟机后再还原到内部快照"
|
||||
|
||||
#: vrtManager/instance.py:2526
|
||||
#: vrtManager/instance.py:2535
|
||||
msgid "A VM with a host's or an external TPM is not cloned; remove it first"
|
||||
msgstr "带有主机 TPM 或外部 TPM 的虚拟机无法克隆;请先将其移除"
|
||||
|
||||
#: vrtManager/instance.py:2557
|
||||
#: vrtManager/instance.py:2566
|
||||
msgid "Cannot clone a VM whose NVRAM is not a file"
|
||||
msgstr "NVRAM 不是文件的虚拟机无法克隆"
|
||||
|
||||
#: vrtManager/instance.py:2627
|
||||
#: vrtManager/instance.py:2636
|
||||
#, python-format
|
||||
msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s"
|
||||
msgstr "克隆失败(%(err)s);请手动删除这些副本:%(path)s"
|
||||
|
||||
#: vrtManager/instance.py:2638
|
||||
#: vrtManager/instance.py:2647
|
||||
msgid "Shut the VM down before cloning it"
|
||||
msgstr "请先关闭虚拟机再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2665
|
||||
#: vrtManager/instance.py:2674
|
||||
#, python-format
|
||||
msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s"
|
||||
msgstr "克隆失败(%(err)s);请手动删除这些副本:%(leftovers)s"
|
||||
|
||||
#: vrtManager/instance.py:2676
|
||||
#: vrtManager/instance.py:2685
|
||||
msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it"
|
||||
msgstr "在线克隆需要 libvirt 11.10 或更高版本;请关闭虚拟机后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2679
|
||||
#: vrtManager/instance.py:2688
|
||||
msgid "A VM with a TPM is cloned only shut down"
|
||||
msgstr "带 TPM 的虚拟机只能在关机时克隆"
|
||||
|
||||
#: vrtManager/instance.py:2682
|
||||
#: vrtManager/instance.py:2691
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a local file; shut the VM down to clone it"
|
||||
msgstr "磁盘 %(dev)s 不是本地文件;请关闭虚拟机后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2684
|
||||
#: vrtManager/instance.py:2693
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is shareable; shut the VM down to clone it"
|
||||
msgstr "磁盘 %(dev)s 是可共享的;请关闭虚拟机后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2689
|
||||
#: vrtManager/instance.py:2698
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it"
|
||||
msgstr "磁盘 %(dev)s 在下次启动时会改变;请关闭虚拟机后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2691
|
||||
#: vrtManager/instance.py:2700
|
||||
msgid "Another job is running on the VM; clone it when that ends"
|
||||
msgstr "虚拟机上有另一个任务正在运行;请在其结束后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2717
|
||||
#: vrtManager/instance.py:2726
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB"
|
||||
|
|
@ -9527,111 +9546,111 @@ msgstr ""
|
|||
"存储池 %(pool)s 可用 %(free).1f GiB;克隆需要 %(size).1f GiB(复制的磁盘,再加其 %(percent)g%%,至少"
|
||||
" %(minimum)g GiB)"
|
||||
|
||||
#: vrtManager/instance.py:2734
|
||||
#: vrtManager/instance.py:2743
|
||||
#, python-format
|
||||
msgid "Volume %(name)s already exists in storage pool %(pool)s"
|
||||
msgstr "卷 %(name)s 已存在于存储池 %(pool)s 中"
|
||||
|
||||
#: vrtManager/instance.py:2888
|
||||
#: vrtManager/instance.py:2897
|
||||
msgid "A network interface that is a host device is removed in the XML editor"
|
||||
msgstr "作为主机设备的网络接口需在 XML 编辑器中删除"
|
||||
|
||||
#: vrtManager/instance.py:2904
|
||||
#: vrtManager/instance.py:2913
|
||||
#, python-format
|
||||
msgid "No network interface with MAC %(old_mac)s"
|
||||
msgstr "没有 MAC 为 %(old_mac)s 的网络接口"
|
||||
|
||||
#: vrtManager/instance.py:2907
|
||||
#: vrtManager/instance.py:2916
|
||||
msgid "A network interface that is a host device is changed in the XML editor"
|
||||
msgstr "作为主机设备的网络接口需在 XML 编辑器中修改"
|
||||
|
||||
#: vrtManager/instance.py:3001
|
||||
#: vrtManager/instance.py:3010
|
||||
msgid ""
|
||||
"A VM changes its PCI devices while it runs, or is shut off without a saved "
|
||||
"state"
|
||||
msgstr "虚拟机只能在运行时或无保存的状态的关机时更改其 PCI 设备"
|
||||
|
||||
#: vrtManager/instance.py:3022
|
||||
#: vrtManager/instance.py:3031
|
||||
#, python-format
|
||||
msgid "%(err)s; whether the VM has %(device)s now is not known"
|
||||
msgstr "%(err)s;虚拟机现在是否有 %(device)s 未知"
|
||||
|
||||
#: vrtManager/instance.py:3024
|
||||
#: vrtManager/instance.py:3033
|
||||
#, python-format
|
||||
msgid "%(err)s; %(device)s: the VM is not running, its next start has it"
|
||||
msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时有它"
|
||||
|
||||
#: vrtManager/instance.py:3025
|
||||
#: vrtManager/instance.py:3034
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(err)s; %(device)s: the VM is not running, its next start does not have it"
|
||||
msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时没有它"
|
||||
|
||||
#: vrtManager/instance.py:3026
|
||||
#: vrtManager/instance.py:3035
|
||||
#, python-format
|
||||
msgid "%(err)s; %(device)s: the running VM has it, its next start has it"
|
||||
msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时有它"
|
||||
|
||||
#: vrtManager/instance.py:3027
|
||||
#: vrtManager/instance.py:3036
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(err)s; %(device)s: the running VM has it, its next start does not have it"
|
||||
msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时没有它"
|
||||
|
||||
#: vrtManager/instance.py:3028
|
||||
#: vrtManager/instance.py:3037
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(err)s; %(device)s: the running VM does not have it, its next start has it"
|
||||
msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时有它"
|
||||
|
||||
#: vrtManager/instance.py:3030
|
||||
#: vrtManager/instance.py:3039
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(err)s; %(device)s: the running VM does not have it, its next start does not"
|
||||
" have it"
|
||||
msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时没有它"
|
||||
|
||||
#: vrtManager/instance.py:3064
|
||||
#: vrtManager/instance.py:3073
|
||||
#, python-format
|
||||
msgid "The VM has no PCI device %(address)s"
|
||||
msgstr "虚拟机没有 PCI 设备 %(address)s"
|
||||
|
||||
#: vrtManager/instance.py:3085
|
||||
#: vrtManager/instance.py:3094
|
||||
msgid "The VM has no USB controller"
|
||||
msgstr "虚拟机没有 USB 控制器"
|
||||
|
||||
#: vrtManager/instance.py:3119
|
||||
#: vrtManager/instance.py:3128
|
||||
msgid "The VM has no such USB device"
|
||||
msgstr "虚拟机没有此 USB 设备"
|
||||
|
||||
#: vrtManager/instance.py:3133
|
||||
#: vrtManager/instance.py:3142
|
||||
#, python-format
|
||||
msgid "The VM has no network interface %(mac)s"
|
||||
msgstr "虚拟机没有网络接口 %(mac)s"
|
||||
|
||||
#: vrtManager/instance.py:3164
|
||||
#: vrtManager/instance.py:3173
|
||||
msgid "The VM has its own RNG device: change it in the XML editor"
|
||||
msgstr "虚拟机有自己的 RNG 设备:请在 XML 编辑器中修改"
|
||||
|
||||
#: vrtManager/instance.py:3191
|
||||
#: vrtManager/instance.py:3200
|
||||
msgid "The VM has its own TPM: change it in the XML editor"
|
||||
msgstr "虚拟机有自己的 TPM:请在 XML 编辑器中修改"
|
||||
|
||||
#: vrtManager/instance.py:3210
|
||||
#: vrtManager/instance.py:3219
|
||||
#, python-format
|
||||
msgid "Unknown crash action %(action)s"
|
||||
msgstr "未知的崩溃操作 %(action)s"
|
||||
|
||||
#: vrtManager/instance.py:3237
|
||||
#: vrtManager/instance.py:3246
|
||||
#, python-format
|
||||
msgid "Network interface %(mac)s is not in the definition"
|
||||
msgstr "网络接口 %(mac)s 不在定义中"
|
||||
|
||||
#: vrtManager/instance.py:3328
|
||||
#: vrtManager/instance.py:3337
|
||||
msgid "The guest agent did not answer in time; nothing was changed"
|
||||
msgstr "客户机代理未及时响应;未做任何更改"
|
||||
|
||||
#: vrtManager/instance.py:3331
|
||||
#: vrtManager/instance.py:3340
|
||||
msgid "The VM runs Windows: its guest agent sets no root password or SSH key"
|
||||
msgstr "该虚拟机运行 Windows:其客户机代理不能设置 root 密码或 SSH 密钥"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,18 @@
|
|||
// The Bulk Migrate page: another destination reloads the list; the header
|
||||
// box ticks or unticks every VM that can migrate, "Also migrate the
|
||||
// shut-off VMs" the shut-off ones. The Migrate button counts the ticked
|
||||
// VMs and is off while none is.
|
||||
// shut-off VMs" the shut-off ones. Spread over the hosts, a change reloads
|
||||
// the list too: where each VM goes depends on the others. The Migrate
|
||||
// button counts the ticked VMs and is off while none is.
|
||||
const choose = document.getElementById("bulk-migrate-choose");
|
||||
const spreading = choose?.dataset.spread !== undefined;
|
||||
|
||||
function tick(selector, checked) {
|
||||
document.querySelectorAll(selector).forEach(function (box) {
|
||||
box.checked = checked;
|
||||
});
|
||||
}
|
||||
function count() {
|
||||
const ticked = document.querySelectorAll("input[name=instance]:checked").length;
|
||||
const ticked = document.querySelectorAll(".bulk-migrate-vm:checked").length;
|
||||
const button = document.getElementById("bulk-migrate-submit");
|
||||
if (button) {
|
||||
button.disabled = ticked === 0;
|
||||
|
|
@ -16,13 +20,23 @@ function count() {
|
|||
}
|
||||
}
|
||||
document.getElementById("bulk-migrate-target")?.addEventListener("change", function (event) {
|
||||
if (event.target.value !== "spread") {
|
||||
// one host: the VMs ticked are the page's own choice again
|
||||
choose.querySelectorAll("input[name=shown]").forEach((input) => input.remove());
|
||||
}
|
||||
event.target.form.submit();
|
||||
});
|
||||
document.getElementById("bulk-migrate-all")?.addEventListener("change", function (event) {
|
||||
tick("input[name=instance]:not(:disabled)", event.target.checked);
|
||||
tick(".bulk-migrate-vm:not(:disabled)", event.target.checked);
|
||||
});
|
||||
document.getElementById("bulk-migrate-shut-off")?.addEventListener("change", function (event) {
|
||||
tick("input[data-shut-off]:not(:disabled)", event.target.checked);
|
||||
tick(".bulk-migrate-vm[data-shut-off]:not(:disabled)", event.target.checked);
|
||||
});
|
||||
document.addEventListener("change", function (event) {
|
||||
if (spreading && event.target.id !== "bulk-migrate-parallel" && event.target.id !== "bulk-migrate-target") {
|
||||
choose.submit();
|
||||
return;
|
||||
}
|
||||
count();
|
||||
});
|
||||
document.addEventListener("change", count);
|
||||
count();
|
||||
|
|
|
|||
|
|
@ -119,6 +119,14 @@ def _rate(before, after, seconds, scale=1):
|
|||
return scale * (after - before) / seconds
|
||||
|
||||
|
||||
def file_disks(xml):
|
||||
"""The disks of the definition xml that are files: (disk element, path)."""
|
||||
for disk in ElementTree.fromstring(xml).iter("disk"):
|
||||
source = disk.find("source")
|
||||
if disk.get("type") == "file" and source is not None and source.get("file"):
|
||||
yield disk, source.get("file")
|
||||
|
||||
|
||||
class wvmInstances(wvmConnect):
|
||||
def nwfilters_unlike(self, source, names):
|
||||
"""Of the network filters named and those they reference: the ones
|
||||
|
|
@ -310,26 +318,27 @@ class wvmInstances(wvmConnect):
|
|||
source.set("file", dest)
|
||||
return etree.tostring(tree, encoding="unicode")
|
||||
|
||||
def shares(self, conn, directory):
|
||||
"""Whether this host and that of conn see directory as one, as the
|
||||
storage pools both have there are one (same_directory); False when
|
||||
not, or when it cannot be told."""
|
||||
here, there = self.pool_at(directory), conn.pool_at(directory)
|
||||
try:
|
||||
return here is not None and there is not None and self.same_directory(there, here)
|
||||
except libvirtError:
|
||||
return False # not known to be shared: copied, never assumed
|
||||
|
||||
def disk_plan(self, conn, xml):
|
||||
"""How the file disks of the VM of conn (on the source) in xml, the
|
||||
definition the migration carries, can reach this host: a list of
|
||||
{target, path, capacity, shared, refusal}. shared: both hosts see the
|
||||
file at its path, as the directory both have as a storage pool is
|
||||
one (same_directory); False when not, or when it cannot be told.
|
||||
file at its path (shares); False when not, or when it cannot be told.
|
||||
refusal: why the disk cannot be copied, or None."""
|
||||
rows, shared = [], {}
|
||||
for disk in ElementTree.fromstring(xml).iter("disk"):
|
||||
source = disk.find("source")
|
||||
if disk.get("type") != "file" or source is None or not source.get("file"):
|
||||
continue
|
||||
path = source.get("file")
|
||||
for disk, path in file_disks(xml):
|
||||
directory = os.path.dirname(path)
|
||||
if directory not in shared:
|
||||
here, there = self.pool_at(directory), conn.pool_at(directory)
|
||||
try:
|
||||
shared[directory] = here is not None and there is not None and self.same_directory(there, here)
|
||||
except libvirtError:
|
||||
shared[directory] = False # not known to be shared: copied, never assumed
|
||||
shared[directory] = self.shares(conn, directory)
|
||||
try:
|
||||
volume = conn.wvm.storageVolLookupByPath(path)
|
||||
except libvirtError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue