diff --git a/computes/tests/test_attention.py b/computes/tests/test_attention.py
index 4a9ca307..55170874 100644
--- a/computes/tests/test_attention.py
+++ b/computes/tests/test_attention.py
@@ -1,6 +1,7 @@
"""The box above the Computes page's hosts: what wants a look, each with a link to where it is handled."""
import datetime
+import threading
import time
from types import SimpleNamespace
from unittest.mock import MagicMock, patch
@@ -38,13 +39,79 @@ class AttentionBoxTests(TestCase):
def read(self, compute):
return (False, "refused", None, "") if compute.name == "down" else (True, None, None, "")
- def page(self, pools=(), snapshots=(), needs=None):
+ def page(self, pools=(), snapshots=(), needs=None, read_needs=None, fresh=True):
with patch("computes.views._read_host", side_effect=self.read), patch(
"computes.views._read_attention", return_value={"pools": list(pools), "snapshots": list(snapshots)}), \
- patch("computes.views._read_needs", side_effect=lambda compute: (needs or {}).get(compute.name)):
- views._reading.clear() # no read of what VMs need kept from another test
+ patch("computes.views._read_needs", side_effect=read_needs or (lambda compute: (needs or {}).get(compute.name))):
+ if fresh: # no read of what VMs need kept from another test
+ views._reading.clear()
return self.client.get(reverse("computes"))
+ def test_what_vms_need_is_read_on_each_load_the_last_standing_in_when_late(self):
+ self.down.delete()
+ Compute.objects.create(name="up2", hostname="192.0.2.3", login="wvc", password="", type=1,
+ host_uuid="44444444-0000-0000-0000-000000000000")
+ none = {"networks": [], "filters": [], "secrets": [], "usages": []}
+ lacking = {"up": {"uses": {**none, "networks": ["lab"]}, "has": {**none, "networks": ["lab"], "filters": {}}},
+ "up2": {"uses": none, "has": {**none, "filters": {}}}}
+ fixed = {**lacking, "up2": {"uses": none, "has": {**none, "networks": ["lab"], "filters": {}}}}
+ held = threading.Event()
+ self.addCleanup(held.set)
+
+ def settle(): # every read of the load ended: the next load starts its own
+ held.set()
+ for read in list(views._reading.values()):
+ read.join(5)
+ held.clear()
+
+ def text(**kwargs):
+ page = self.page(fresh=False, **kwargs)
+ settle()
+ return " ".join(html.fromstring(page.content).text_content().split())
+
+ def late(compute): # a read that outlasts the wait, then says the network is added
+ held.wait(5)
+ return fixed.get(compute.name)
+
+ self.page(needs=lacking)
+ settle()
+ self.assertNotIn("could not migrate", text(needs=fixed)) # the network added: told at the next load
+ # a host whose listing could not be read: the others still count
+ unread = {**lacking, "up2": {"uses": none, "has": {**none, "networks": None, "filters": {}, "secrets": None,
+ "usages": None}}}
+ self.assertNotIn("could not migrate", text(needs=unread))
+ secrets_unread = {**lacking, "up2": {"uses": none, "has": {**none, "filters": {}, "secrets": None, "usages": None}}}
+ self.assertIn("could not migrate here: no active network lab", text(needs=secrets_unread))
+
+ # a late read: the last stands in, waited for NEEDS_GRACE only, not ATTENTION_WAIT
+ self.assertIn("could not migrate", text(needs=lacking))
+ with patch("computes.views.NEEDS_GRACE", 0.1), patch("computes.views.ATTENTION_WAIT", 5):
+ began = time.monotonic()
+ page = self.page(fresh=False, read_needs=late)
+ self.assertLess(time.monotonic() - began, 2)
+ settle()
+ self.assertContains(page, "could not migrate")
+
+ # a host that stopped answering: its stand-in, with the warning, is not told, nor waited for
+ self.assertIn("could not migrate", text(needs=lacking))
+ with patch.object(self, "read", lambda compute: (False, "refused", None, "") if compute.name == "up2"
+ else (True, None, None, "")), patch("computes.views.NEEDS_GRACE", 5):
+ began = time.monotonic() # only the silent host's read is late: it would be waited 5 s
+ page = self.page(fresh=False, read_needs=lambda c: late(c) if c.name == "up2" else lacking.get(c.name))
+ self.assertLess(time.monotonic() - began, 2)
+ settle()
+ shown = " ".join(html.fromstring(page.content).text_content().split())
+ self.assertIn("up2: not answering", shown)
+ self.assertNotIn("could not migrate", shown)
+
+ # a read that failed leaves no stand-in: a late read after it tells no older warning
+ self.assertIn("could not migrate", text(needs=lacking))
+ text(needs={}) # this load's read fails (None)
+ with patch("computes.views.ATTENTION_WAIT", 0.1):
+ page = self.page(fresh=False, read_needs=late)
+ settle()
+ self.assertNotContains(page, "could not migrate")
+
def test_what_a_vm_could_not_find_on_another_host(self):
# a network, a filter or a secret its VMs use that another host lacks, or a filter of other rules there
self.down.delete()
@@ -70,6 +137,11 @@ class AttentionBoxTests(TestCase):
# its read failing or slow hides no full pool; it reads the host's migration_needs
page = self.page(pools=[{"name": "default", "percent": 91}], needs={})
self.assertContains(page, "91% full")
+ late = threading.Event()
+ with patch("computes.views.ATTENTION_WAIT", 0.2):
+ page = self.page(pools=[{"name": "default", "percent": 91}], read_needs=lambda compute: late.wait(5) and None)
+ late.set()
+ self.assertContains(page, "91% full")
compute = SimpleNamespace(status=True, proxy=MagicMock(**{"migration_needs.return_value": {"uses": {}}}))
self.assertEqual(views._read_needs(compute), {"uses": {}})
compute.proxy.migration_needs.side_effect = libvirtError("refused")
@@ -200,3 +272,26 @@ class HostAttentionTests(TestCase):
"filters": {"web": " ",
"base": " "}}})
+ def test_a_listing_that_cannot_be_read_is_none_and_the_others_count(self):
+ host = wvmHostDetails.__new__(wvmHostDetails)
+ refused = MagicMock(side_effect=libvirtError("secrets driver down"))
+ host.wvm = SimpleNamespace(listAllDomains=lambda flags=0: [], listAllNWFilters=lambda flags=0: [],
+ listAllSecrets=refused,
+ listAllNetworks=lambda flags=0: [MagicMock(**{"name.return_value": "prod"})])
+ has = host.migration_needs()["has"]
+ self.assertEqual((has["networks"], has["filters"], has["secrets"], has["usages"]), (["prod"], {}, None, None))
+
+ def test_a_host_whose_vms_cannot_be_listed_is_still_a_destination(self):
+ host = wvmHostDetails.__new__(wvmHostDetails)
+ host.wvm = SimpleNamespace(listAllDomains=MagicMock(side_effect=libvirtError("refused")),
+ listAllNWFilters=lambda flags=0: [], listAllSecrets=lambda flags=0: [],
+ listAllNetworks=lambda flags=0: [MagicMock(**{"name.return_value": "prod"})])
+ needs = host.migration_needs()
+ self.assertIsNone(needs["uses"])
+ self.assertEqual(needs["has"]["networks"], ["prod"])
+ none = {"networks": [], "filters": [], "secrets": [], "usages": []}
+ source = MagicMock(status=True, maintenance=False, needs={"uses": {**none, "networks": ["lab"]},
+ "has": {**none, "filters": {}}})
+ target = MagicMock(status=True, maintenance=False, needs=needs)
+ self.assertEqual([(t, s) for t, s, _what in views.lacking([source, target])], [(target, source)])
+
diff --git a/computes/views.py b/computes/views.py
index f4b59df2..ba6fa53e 100644
--- a/computes/views.py
+++ b/computes/views.py
@@ -136,9 +136,10 @@ class _HostRead(threading.Thread):
"""One read of a host (read: _read_host, _read_attention or _read_needs) on a daemon
thread: one stuck on its host does not hold the process when it exits."""
- def __init__(self, compute, read):
+ def __init__(self, compute, read, stand_in=(None, 0)):
super().__init__(daemon=True, name=f"wvc-host-{compute.pk}")
self.compute, self.read, self.result, self.ended = compute, read, None, None
+ self.stand_in = stand_in # a "needs" read's: (the result, when it ended) of the one before, if it read
def run(self):
self.result = self.read(self.compute)
@@ -152,9 +153,10 @@ _reading_lock = threading.Lock()
# the box's reads (_read_attention, _read_needs) are waited for this long at most: one slow does not hold the page
ATTENTION_WAIT = 2
-# a read of what a host's VMs need is used again for this long (seconds): a host of many VMs, whose
-# read outlasts ATTENTION_WAIT, is still compared, and networks and filters seldom change
+# what a host's VMs need is read again on each load; the last read that ended stands in for this
+# long (seconds) when the new one outlasts ATTENTION_WAIT, so a host of many VMs is still compared
NEEDS_KEPT = 300
+NEEDS_GRACE = 0.5 # how long a new read is waited for when one stands in for it (seconds)
READ_KINDS = ("host", "attention", "needs") # _read_host, _read_attention, _read_needs
@@ -166,19 +168,26 @@ def _read_key(compute):
def _start(compute, kind):
- """compute's read of kind (READ_KINDS): one of an earlier load still running, or for "needs" one
- ended within NEEDS_KEPT, else a new one. Callers hold _reading_lock."""
+ """compute's read of kind (READ_KINDS): one of an earlier load still running, else a new one.
+ Callers hold _reading_lock."""
key = (kind, *_read_key(compute))
read = _reading.get(key)
- kept = kind == "needs" and read is not None and read.ended is not None and read.result is not None \
- and time.monotonic() - read.ended < NEEDS_KEPT
- if read is None or not (read.is_alive() or kept):
+ if read is None or not read.is_alive():
+ # a "needs" read that ended stands in for the new one; one that failed leaves none
+ stand_in = (read.result, read.ended) if kind == "needs" and read is not None and read.result is not None \
+ else (None, 0)
_reading[key] = _HostRead(copy(compute), {"host": _read_host, "attention": _read_attention,
- "needs": _read_needs}[kind])
+ "needs": _read_needs}[kind], stand_in)
_reading[key].start()
return _reading[key]
+def _stand_in(read):
+ """What the read of what VMs need before read said, if it ended within NEEDS_KEPT, else None."""
+ result, ended = read.stand_in
+ return result if time.monotonic() - ended < NEEDS_KEPT else None
+
+
def read_hosts(computes, attention=False):
"""Reads each of computes (_read_host) on its own thread: a slow host
holds back only itself, and one not read within LIST_WAIT is shown as
@@ -195,16 +204,26 @@ def read_hosts(computes, attention=False):
reads = {compute: _start(compute, "host") for compute in computes}
scans = {compute: _start(compute, "attention") for compute in computes} if attention else {}
needs = {compute: _start(compute, "needs") for compute in computes} if attention else {}
+ stand_ins = {compute: _stand_in(read) for compute, read in needs.items()}
started = time.monotonic()
for read in reads.values():
read.join(max(0, started + LIST_WAIT - time.monotonic()))
- for scan in [*scans.values(), *needs.values()]:
+ for scan in scans.values():
scan.join(max(0, started + ATTENTION_WAIT - time.monotonic()))
+ # a host's needs with a stand-in are waited for NEEDS_GRACE at most, not ATTENTION_WAIT; those of a
+ # host that does not answer not at all: they are not told
+ for compute, read in needs.items():
+ if reads[compute].result is not None and reads[compute].result[0] is True:
+ read.join(max(0, started + (ATTENTION_WAIT if stand_ins[compute] is None else NEEDS_GRACE) - time.monotonic()))
for compute, read in reads.items():
compute.attention = scans[compute].result if compute in scans else None
- compute.needs = needs[compute].result if compute in needs else None
+ # this load's read if it ended, else the stand-in
+ compute.needs = (stand_ins[compute] if needs[compute].is_alive() else needs[compute].result) \
+ if compute in needs else None
if read.result is not None:
compute.status, compute.connection_error, compute.shown_capacity, compute.read_uuid = read.result
+ if compute.status is not True: # what it said before it stopped answering is not told
+ compute.attention = compute.needs = None
else:
compute.status, compute.shown_capacity, compute.read_uuid, compute.attention = False, None, "", None
compute.needs = None
@@ -267,24 +286,29 @@ def attention(computes):
def lacking(computes):
"""[(host, other host, [what])]: what the VMs of a host use (migration_needs) that the other
host lacks or has otherwise, so that the migration check refuses moving them there: an active
- network, a network filter or one of other rules, a secret (by UUID or usage). Only hosts whose
- needs were read; a host in maintenance is no destination, but its VMs still need one."""
- needs = {c: c.needs for c in computes if c.needs}
+ network, a network filter or one of other rules, a secret (by UUID or usage). Only hosts that
+ answer and whose needs were read, and of these only the listings read; a host in maintenance
+ is no destination, but its VMs still need one."""
+ needs = {c: c.needs for c in computes if c.status is True and c.needs}
found = []
for source, need in needs.items():
for target, other in needs.items():
- if target is source or target.maintenance:
+ if target is source or target.maintenance or need["uses"] is None: # its VMs not read: no source
continue
- uses, has, own = need["uses"], other["has"], need["has"]["filters"]
- usages = {tuple(usage) for usage in has["usages"]}
- what = [(gettext_noop("no active network %(names)s"), sorted(set(uses["networks"]) - set(has["networks"]))),
- (gettext_noop("no network filter %(names)s"), sorted(set(uses["filters"]) - set(has["filters"]))),
- # compared only with the source's own filter: one it lacks too is not another's rules
- (gettext_noop("network filter %(names)s with other rules"),
- sorted(n for n in uses["filters"] if n in has["filters"] and n in own and has["filters"][n] != own[n])),
- (gettext_noop("no secret %(names)s"),
- sorted([*(set(uses["secrets"]) - set(has["secrets"])),
- *(usage for usage_type, usage in uses["usages"] if (usage_type, usage) not in usages)]))]
+ uses, has, own = need["uses"], other["has"], need["has"]["filters"] or {}
+ what = []
+ if has["networks"] is not None:
+ what.append((gettext_noop("no active network %(names)s"), sorted(set(uses["networks"]) - set(has["networks"]))))
+ if has["filters"] is not None:
+ what.append((gettext_noop("no network filter %(names)s"), sorted(set(uses["filters"]) - set(has["filters"]))))
+ # compared only with the source's own filter: one it lacks too is not another's rules
+ what.append((gettext_noop("network filter %(names)s with other rules"),
+ sorted(n for n in uses["filters"] if n in has["filters"] and n in own and has["filters"][n] != own[n])))
+ if has["secrets"] is not None:
+ usages = {tuple(usage) for usage in has["usages"]}
+ what.append((gettext_noop("no secret %(names)s"),
+ sorted([*(set(uses["secrets"]) - set(has["secrets"])),
+ *(usage for usage_type, usage in uses["usages"] if (usage_type, usage) not in usages)])))
what = [_(text) % {"names": ", ".join(names)} for text, names in what if names]
if what:
found.append((target, source, what))
diff --git a/instances/templates/allinstances.html b/instances/templates/allinstances.html
index fbc6f014..7c6ca2db 100644
--- a/instances/templates/allinstances.html
+++ b/instances/templates/allinstances.html
@@ -63,7 +63,8 @@
{% trans "Choose the VMs shown" %}
-
+
{% trans "Start" %}
BULK_MAX:
+ messages.error(request, _("Choose at most %(count)s VMs at once") % {"count": BULK_MAX})
+ return redirect("instances:index")
remove, changed = action == "tag_remove", 0
with transaction.atomic():
lock_ownership()
@@ -757,8 +761,8 @@ def bulk_power(request):
if action not in POWER or not vms or not KEY_RE.fullmatch(key) or len(key) > 50:
messages.error(request, _("Choose the VMs you may power, and Start, Shut down or Force off"))
return redirect("instances:index")
- if len(vms) > BULK_POWER_MAX:
- messages.error(request, _("Choose at most %(count)s VMs at once") % {"count": BULK_POWER_MAX})
+ if len(vms) > BULK_MAX:
+ messages.error(request, _("Choose at most %(count)s VMs at once") % {"count": BULK_MAX})
return redirect("instances:index")
names = dict(Instance.objects.filter(pk__in=vms).values_list("pk", "name"))
seen = names if request.user.is_superuser else dict(Instance.objects.filter(
diff --git a/locale/tr/LC_MESSAGES/django.mo b/locale/tr/LC_MESSAGES/django.mo
index 86eb4967..33908eaa 100644
Binary files a/locale/tr/LC_MESSAGES/django.mo and b/locale/tr/LC_MESSAGES/django.mo differ
diff --git a/locale/tr/LC_MESSAGES/django.po b/locale/tr/LC_MESSAGES/django.po
index 55f5e49e..c87a1dc9 100644
--- a/locale/tr/LC_MESSAGES/django.po
+++ b/locale/tr/LC_MESSAGES/django.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2026-11-20 10:00+0000\n"
+"POT-Creation-Date: 2026-11-20 10:25+0000\n"
"PO-Revision-Date: 2020-11-04 12:00+0000\n"
"Last-Translator: catborise , 2020\n"
"Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n"
@@ -226,7 +226,7 @@ msgstr "Kullanıcı bölümleri"
#: admin/forms.py:221 admin/templates/admin/tag_list.html:25
#: computes/templates/computes/list.html:34
#: computes/templates/computes/list.html:62 computes/templates/overview.html:90
-#: instances/views.py:273 vmbackups/templates/vmbackups/policies.html:17
+#: instances/views.py:274 vmbackups/templates/vmbackups/policies.html:17
msgid "VMs"
msgstr "Sanal makineler"
@@ -247,10 +247,10 @@ msgstr "Sanal makine ekle"
#: accounts/templates/account.html:68 admin/templates/admin/logs.html:40
#: computes/templates/computes/balance.html:109
#: computes/templates/computes/list.html:61
-#: instances/templates/allinstances.html:136
+#: instances/templates/allinstances.html:137
#: instances/templates/allinstances_index_nongrouped.html:9
#: instances/templates/create_steps.html:6
-#: instances/templates/create_steps.html:8 instances/views.py:249
+#: instances/templates/create_steps.html:8 instances/views.py:250
#: operations/templates/operations/jobs.html:24
msgid "Host"
msgstr "Sunucu"
@@ -798,7 +798,7 @@ msgstr ""
#: instances/templates/allinstances_index_nongrouped.html:15
#: instances/templates/create_instance_w2.html:63
#: instances/templates/instances/resize_tab.html:30
-#: instances/templates/instances/settings_tab.html:878 instances/views.py:249
+#: instances/templates/instances/settings_tab.html:878 instances/views.py:250
msgid "vCPUs"
msgstr "vCPU"
@@ -1014,7 +1014,7 @@ msgid "IP"
msgstr "IP"
#: admin/templates/admin/logs.html:56 admin/views.py:398 instances/states.py:19
-#: instances/views.py:497 logs/views.py:18
+#: instances/views.py:498 logs/views.py:18
msgid "Unknown"
msgstr "Bilinmeyen"
@@ -1032,7 +1032,7 @@ msgstr "Başarısız"
#: admin/templates/admin/tag_list.html:6 admin/templates/admin/tag_list.html:8
#: admin/templates/admin/tag_list.html:17 computes/forms.py:55
-#: instances/templates/instances/settings_tab.html:958 instances/views.py:250
+#: instances/templates/instances/settings_tab.html:958 instances/views.py:251
#: templates/common/tag_filter.html:6 templates/navbar.html:39
msgid "Tags"
msgstr "Etiketler"
@@ -1055,7 +1055,7 @@ msgid "Search tags"
msgstr "Etiket ara"
#: admin/templates/admin/tag_list.html:24
-#: instances/templates/allinstances.html:77
+#: instances/templates/allinstances.html:78
msgid "Tag"
msgstr "Etiket"
@@ -1124,7 +1124,7 @@ msgstr "Korumalı"
msgid "Left"
msgstr "Ayrıldığı sunucu"
-#: admin/templates/admin/tombstone_list.html:36 instances/views.py:250
+#: admin/templates/admin/tombstone_list.html:36 instances/views.py:251
msgid "Owners"
msgstr "Sahipler"
@@ -2599,7 +2599,7 @@ msgstr "Sunucu, sanal makineleri taşınmadan bakıma alınsın mı?"
msgid "Put in maintenance without migrating"
msgstr "Taşımadan bakıma al"
-#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:390
+#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:391
msgid "There is no other host to migrate to."
msgstr "Taşınacak başka bir sunucu yok."
@@ -2979,7 +2979,7 @@ msgid "No host matches the filters."
msgstr "Filtrelerle eşleşen sunucu yok."
#: computes/templates/computes/list.html:128
-#: instances/templates/allinstances.html:98
+#: instances/templates/allinstances.html:99
msgid "Clear the filters"
msgstr "Filtreleri temizle"
@@ -3234,41 +3234,41 @@ msgstr ""
"Sunucudaki /etc/default/webvirt-gstfsd içindeki GSTFSD_KEY değerinin 64 "
"onaltılık karakterini girin"
-#: computes/views.py:211
+#: computes/views.py:225
#, 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:280
+#: computes/views.py:296
#, python-format
msgid "no active network %(names)s"
msgstr "etkin %(names)s ağı yok"
-#: computes/views.py:281
+#: computes/views.py:298
#, python-format
msgid "no network filter %(names)s"
msgstr "%(names)s ağ filtresi yok"
-#: computes/views.py:283
+#: computes/views.py:300
#, python-format
msgid "network filter %(names)s with other rules"
msgstr "%(names)s ağ filtresinin kuralları farklı"
-#: computes/views.py:285
+#: computes/views.py:304
#, python-format
msgid "no secret %(names)s"
msgstr "%(names)s secret'ı yok"
-#: computes/views.py:468
+#: computes/views.py:487
msgid "No other host has room for it"
msgstr "Başka hiçbir sunucuda ona yer yok"
-#: computes/views.py:547
+#: computes/views.py:566
#, 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:620
+#: computes/views.py:639
#, python-format
msgid ""
"Its VMs keep running on the host and leave the panel; their owners are kept "
@@ -3438,7 +3438,7 @@ msgstr "Bağlan"
#: instances/templates/add_instance_owner_block.html:11
#: instances/templates/add_instance_volume.html:15
#: instances/templates/allinstances.html:33
-#: instances/templates/allinstances.html:118
+#: instances/templates/allinstances.html:119
#: instances/templates/create_inst_block.html:12
#: instances/templates/create_instance_w2.html:367
#: instances/templates/instances/edit_instance_volume.html:13
@@ -3546,13 +3546,13 @@ msgstr ""
"VNC olarak değiştirin."
#: instances/api/viewsets.py:160 instances/api/viewsets.py:178
-#: instances/jobs.py:1602 instances/views.py:957 instances/views.py:979
-#: instances/views.py:1969
+#: instances/jobs.py:1602 instances/views.py:961 instances/views.py:983
+#: instances/views.py:1973
msgid "Templates cannot be started."
msgstr "Şablon makineler başlatılamaz."
#: instances/forms.py:14 instances/templates/create_instance_w2.html:69
-#: instances/templates/instances/settings_tab.html:882 instances/views.py:249
+#: instances/templates/instances/settings_tab.html:882 instances/views.py:250
msgid "Memory (MiB)"
msgstr "Bellek (MiB)"
@@ -3951,7 +3951,7 @@ msgstr ""
msgid "Create VM"
msgstr "Sanal makine oluştur"
-#: instances/jobs.py:937 instances/jobs.py:984 instances/views.py:2765
+#: instances/jobs.py:937 instances/jobs.py:984 instances/views.py:2769
msgid "A virtual machine with this name already exists"
msgstr "Bu isimde bir sanal makine mevcut"
@@ -4136,7 +4136,7 @@ msgstr "Sanal makine silinmedi; kapatılmış olabilir"
msgid "The VM was not powered"
msgstr "Sanal makineye güç işlemi yapılmadı"
-#: instances/jobs.py:1597 instances/templates/allinstances.html:68
+#: instances/jobs.py:1597 instances/templates/allinstances.html:69
#: instances/templates/instance_actions.html:17
#: instances/templates/instance_actions.html:33
#: interfaces/templates/interface.html:18 networks/templates/network.html:18
@@ -4148,7 +4148,7 @@ msgstr "Başlat"
msgid "The VM is not shut off"
msgstr "Sanal makine kapalı değil"
-#: instances/jobs.py:1618 instances/templates/allinstances.html:70
+#: instances/jobs.py:1618 instances/templates/allinstances.html:71
#: instances/templates/instance_actions.html:27
msgid "Shut down"
msgstr "Kapat"
@@ -4165,7 +4165,7 @@ msgstr ""
"İş denetlendiğinde sanal makine hâlâ çalışıyordu: konuk sistem onu yine de "
"kapatabilir"
-#: instances/jobs.py:1637 instances/templates/allinstances.html:72
+#: instances/jobs.py:1637 instances/templates/allinstances.html:73
#: instances/templates/instance_actions.html:50
msgid "Force off"
msgstr "Zorla kapat"
@@ -4301,7 +4301,7 @@ msgid "Add instance network form"
msgstr "Sanal makine ağı ekleme formu"
#: instances/templates/add_instance_network_block.html:16
-#: instances/templates/allinstances.html:135
+#: instances/templates/allinstances.html:136
#: instances/templates/instances/edit_instance_volume.html:21
#: instances/templates/instances/settings_tab.html:225
#: instances/templates/instances/settings_tab.html:396
@@ -4319,7 +4319,7 @@ msgid "NWFilter"
msgstr "AğFiltresi"
#: instances/templates/add_instance_network_block.html:48
-#: instances/templates/allinstances.html:134
+#: instances/templates/allinstances.html:135
#: instances/templates/instances/settings_tab.html:430
#: interfaces/templates/interface.html:60
#: interfaces/templates/interface.html:121
@@ -4357,7 +4357,7 @@ msgid "Disk source"
msgstr "Disk kaynağı"
#: instances/templates/add_instance_volume.html:21
-#: instances/templates/create_instance_w2.html:134 instances/views.py:2795
+#: instances/templates/create_instance_w2.html:134 instances/views.py:2799
msgid "New disk"
msgstr "Yeni disk"
@@ -4459,16 +4459,21 @@ msgid "%%(count)s chosen"
msgstr "%%(count)s seçili"
#: instances/templates/allinstances.html:67
+#, python-format
+msgid "%%(count)s chosen: at most %(max)s at once"
+msgstr "%%(count)s seçili: en fazla %(max)s"
+
+#: instances/templates/allinstances.html:68
msgid "Power the chosen VMs"
msgstr "Seçilen sanal makinelerin gücü"
-#: instances/templates/allinstances.html:70
+#: instances/templates/allinstances.html:71
msgid "Shut down the chosen VMs? Their guests are asked to power off."
msgstr ""
"Seçilen sanal makineler kapatılsın mı? Konuk sistemlerden kapanmaları "
"istenir."
-#: instances/templates/allinstances.html:72
+#: instances/templates/allinstances.html:73
msgid ""
"Force off the chosen VMs? They stop at once, as if unplugged, and may lose "
"unsaved data."
@@ -4476,53 +4481,53 @@ msgstr ""
"Seçilen sanal makineler zorla kapatılsın mı? Fişi çekilmiş gibi hemen "
"dururlar ve kaydedilmemiş veriler kaybolabilir."
-#: instances/templates/allinstances.html:79
+#: instances/templates/allinstances.html:80
msgid "Add tag"
msgstr "Etiket ekle"
-#: instances/templates/allinstances.html:80
+#: instances/templates/allinstances.html:81
msgid "Remove tag"
msgstr "Etiketi kaldır"
-#: instances/templates/allinstances.html:85
+#: instances/templates/allinstances.html:86
#, python-format
msgid "%%(shown)s of %%(all)s VMs match"
msgstr "%%(all)s sanal makineden %%(shown)s eşleşiyor"
-#: instances/templates/allinstances.html:88
+#: instances/templates/allinstances.html:89
msgid "There are no VMs here yet."
msgstr "Burada henüz sanal makine yok."
-#: instances/templates/allinstances.html:97
+#: instances/templates/allinstances.html:98
msgid "No VM matches the filters."
msgstr "Filtrelerle eşleşen sanal makine yok."
-#: instances/templates/allinstances.html:103
+#: instances/templates/allinstances.html:104
msgid "The search did not go through. Try again."
msgstr "Arama tamamlanamadı. Yeniden deneyin."
-#: instances/templates/allinstances.html:104
+#: instances/templates/allinstances.html:105
msgid "No running VM reports this address."
msgstr "Bu adresi bildiren çalışan sanal makine yok."
-#: instances/templates/allinstances.html:105
+#: instances/templates/allinstances.html:106
msgid "No VM has a network card with this MAC address."
msgstr "Bu MAC adresine sahip ağ kartı olan sanal makine yok."
-#: instances/templates/allinstances.html:106
+#: instances/templates/allinstances.html:107
msgid "(not registered in the panel)"
msgstr "(panelde kayıtlı değil)"
-#: instances/templates/allinstances.html:106
+#: instances/templates/allinstances.html:107
msgid "possible conflict"
msgstr "olası çakışma"
-#: instances/templates/allinstances.html:107
+#: instances/templates/allinstances.html:108
#, python-format
msgid "Running VMs checked: %%(n)s."
msgstr "Denetlenen çalışan sanal makine: %%(n)s."
-#: instances/templates/allinstances.html:108
+#: instances/templates/allinstances.html:109
#, python-format
msgid ""
"%%(n)s had no connected guest agent; a static address on them cannot be seen."
@@ -4530,7 +4535,7 @@ msgstr ""
"%%(n)s sanal makinede bağlı konuk ajanı yoktu; bunlardaki statik adresler "
"görülemez."
-#: instances/templates/allinstances.html:109
+#: instances/templates/allinstances.html:110
#, python-format
msgid ""
"Guest agents not read (a paused VM, no answer in time, or an error): %%(n)s."
@@ -4538,49 +4543,49 @@ msgstr ""
"Okunamayan konuk ajanları (duraklatılmış sanal makine, zamanında yanıt yok ya"
" da hata): %%(n)s."
-#: instances/templates/allinstances.html:110
+#: instances/templates/allinstances.html:111
#, python-format
msgid "Not reached: %%(hosts)s."
msgstr "Ulaşılamadı: %%(hosts)s."
-#: instances/templates/allinstances.html:111
+#: instances/templates/allinstances.html:112
#, python-format
msgid "Not finished in time: %%(hosts)s."
msgstr "Zamanında bitmedi: %%(hosts)s."
-#: instances/templates/allinstances.html:112
+#: instances/templates/allinstances.html:113
#, python-format
msgid "Read at %%(time)s."
msgstr "Okunma zamanı: %%(time)s."
-#: instances/templates/allinstances.html:113
+#: instances/templates/allinstances.html:114
msgid "Some of your VMs could not be checked."
msgstr "Sanal makinelerinizin bazıları denetlenemedi."
-#: instances/templates/allinstances.html:117
+#: instances/templates/allinstances.html:118
msgid "Find the VMs using an IP or MAC address"
msgstr "Bir IP veya MAC adresini kullanan sanal makineleri bul"
-#: instances/templates/allinstances.html:122
+#: instances/templates/allinstances.html:123
msgid "IP address, network or MAC address"
msgstr "IP adresi, ağ veya MAC adresi"
-#: instances/templates/allinstances.html:124
+#: instances/templates/allinstances.html:125
msgid "or"
msgstr "veya"
-#: instances/templates/allinstances.html:125
+#: instances/templates/allinstances.html:126
msgid "Find"
msgstr "Bul"
-#: instances/templates/allinstances.html:132
+#: instances/templates/allinstances.html:133
#: interfaces/templates/interface.html:101 networks/templates/network.html:143
#: networks/templates/network.html:199 networks/templates/network.html:364
#: nodedevs/templates/nodedevs.html:32
msgid "Address"
msgstr "Adres"
-#: instances/templates/allinstances.html:133 instances/views.py:249
+#: instances/templates/allinstances.html:134 instances/views.py:250
#: interfaces/templates/interface.html:153 networks/templates/network.html:202
#: vmbackups/templates/vmbackups/index.html:18
#: vmbackups/templates/vmbackups/index.html:50
@@ -4793,7 +4798,7 @@ msgstr "Özel CPU modelleri"
msgid "Size (GiB)"
msgstr "Boyut (GiB)"
-#: instances/templates/create_instance_w2.html:161 instances/views.py:2796
+#: instances/templates/create_instance_w2.html:161 instances/views.py:2800
msgid "Existing volumes"
msgstr "Mevcut birimler"
@@ -4830,7 +4835,7 @@ msgstr "Aygıt"
msgid "Remove"
msgstr "Kaldır"
-#: instances/templates/create_instance_w2.html:194 instances/views.py:2797
+#: instances/templates/create_instance_w2.html:194 instances/views.py:2801
msgid "Clone from template"
msgstr "Şablondan klonla"
@@ -7137,15 +7142,15 @@ msgstr "Geçersiz MAC adresi"
msgid "More MAC addresses than networks"
msgstr "Ağlardan daha fazla MAC adresi"
-#: instances/views.py:200
+#: instances/views.py:201
msgid "Enter an IP address, a network such as 192.0.2.0/24, or a MAC address."
msgstr "Bir IP adresi, 192.0.2.0/24 gibi bir ağ ya da bir MAC adresi girin."
-#: instances/views.py:206 instances/views.py:240
+#: instances/views.py:207 instances/views.py:241
msgid "Too many searches are still running; try again shortly."
msgstr "Çok fazla arama hâlâ çalışıyor; birazdan yeniden deneyin."
-#: instances/views.py:249 interfaces/templates/interface.html:46
+#: instances/views.py:250 interfaces/templates/interface.html:46
#: networks/templates/network.html:51
#: operations/templates/operations/jobs.html:38
#: operations/templates/operations/jobs.html:62
@@ -7157,54 +7162,54 @@ msgstr "Çok fazla arama hâlâ çalışıyor; birazdan yeniden deneyin."
msgid "State"
msgstr "Durum"
-#: instances/views.py:249
+#: instances/views.py:250
msgid "OS"
msgstr "İşletim sistemi"
-#: instances/views.py:249
+#: instances/views.py:250
msgid "OS family"
msgstr "İşletim sistemi ailesi"
-#: instances/views.py:249
+#: instances/views.py:250
msgid "IP addresses"
msgstr "IP adresleri"
-#: instances/views.py:250
+#: instances/views.py:251
msgid "Address sources"
msgstr "Adres kaynakları"
-#: instances/views.py:250
+#: instances/views.py:251
msgid "MAC addresses"
msgstr "MAC adresleri"
-#: instances/views.py:250
+#: instances/views.py:251
msgid "In the panel"
msgstr "Panelde"
-#: instances/views.py:262
+#: instances/views.py:263
msgid "yes"
msgstr "evet"
-#: instances/views.py:262
+#: instances/views.py:263
msgid "no"
msgstr "hayır"
-#: instances/views.py:264
+#: instances/views.py:265
#, python-format
msgid "Created: %(time)s"
msgstr "Oluşturulma: %(time)s"
-#: instances/views.py:265
+#: instances/views.py:266
#, python-format
msgid "VMs listed: %(n)s"
msgstr "Listelenen sanal makineler: %(n)s"
-#: instances/views.py:266
+#: instances/views.py:267
#, python-format
msgid "Running VMs read: %(n)s"
msgstr "Okunan çalışan sanal makineler: %(n)s"
-#: instances/views.py:267
+#: instances/views.py:268
#, python-format
msgid ""
"Without a connected guest agent (a static address on them cannot be seen): "
@@ -7212,7 +7217,7 @@ msgid ""
msgstr ""
"Bağlı konuk ajanı olmayanlar (üzerlerindeki statik adres görülemez): %(n)s"
-#: instances/views.py:268
+#: instances/views.py:269
#, python-format
msgid ""
"Guest agents not read (a paused VM, no answer in time, or an error): %(n)s"
@@ -7220,45 +7225,45 @@ msgstr ""
"Okunamayan konuk ajanları (duraklatılmış VM, zamanında yanıt yok ya da hata):"
" %(n)s"
-#: instances/views.py:270
+#: instances/views.py:271
#, python-format
msgid "Hosts not reached: %(hosts)s"
msgstr "Ulaşılamayan sunucular: %(hosts)s"
-#: instances/views.py:272
+#: instances/views.py:273
#, python-format
msgid "Hosts not finished in time: %(hosts)s"
msgstr "Zamanında bitmeyen sunucular: %(hosts)s"
-#: instances/views.py:273
+#: instances/views.py:274
msgid "Coverage"
msgstr "Kapsam"
-#: instances/views.py:288
+#: instances/views.py:289
#, python-format
msgid "The host %(host)s of '%(name)s' cannot be reached: %(error)s"
msgstr "'%(name)s' sanal makinesinin sunucusu %(host)s erişilemiyor: %(error)s"
-#: instances/views.py:294
+#: instances/views.py:295
#, python-format
msgid "The host of '%(name)s' cannot be reached right now."
msgstr "'%(name)s' sanal makinesinin sunucusuna şu anda erişilemiyor."
-#: instances/views.py:295
+#: instances/views.py:296
msgid " Jobs on it can be followed under Jobs in the menu."
msgstr " Üzerindeki işler menüdeki İşler bölümünden izlenebilir."
-#: instances/views.py:303
+#: instances/views.py:304
#, python-format
msgid "'%(name)s' is no longer on its host."
msgstr "'%(name)s' artık sunucusunda yok."
-#: instances/views.py:392
+#: instances/views.py:393
msgid "A VM migrates when it is running, paused or shut off."
msgstr ""
"Sanal makine çalışırken, duraklatılmışken ya da kapalıyken taşınabilir."
-#: instances/views.py:394
+#: instances/views.py:395
msgid ""
"A VM with snapshots cannot be migrated: its snapshots stay on this host. "
"Delete them first."
@@ -7266,7 +7271,7 @@ msgstr ""
"Anlık görüntüsü olan bir sanal makine taşınamaz: anlık görüntüleri bu "
"sunucuda kalır. Önce onları silin."
-#: instances/views.py:396
+#: instances/views.py:397
msgid ""
"A VM with host devices cannot be migrated: the destination may not have them."
" Remove them first."
@@ -7274,55 +7279,55 @@ msgstr ""
"Sunucu aygıtları olan bir sanal makine taşınamaz: hedefte bu aygıtlar "
"olmayabilir. Önce onları kaldırın."
-#: instances/views.py:646
+#: instances/views.py:647
#, python-format
msgid "Disk %(dev)s has changed since the page was loaded; reload the page"
msgstr "%(dev)s diski sayfa yüklendikten sonra değişti; sayfayı yenileyin"
-#: instances/views.py:721 instances/views.py:729
+#: instances/views.py:722 instances/views.py:733
msgid "Choose the VMs and write the tag"
msgstr "Sanal makineleri seçin ve etiketi yazın"
-#: instances/views.py:734
+#: instances/views.py:725 instances/views.py:765
+#, python-format
+msgid "Choose at most %(count)s VMs at once"
+msgstr "En fazla %(count)s sanal makine seçin"
+
+#: instances/views.py:738
#, python-format
msgid "There is no tag %(tag)s"
msgstr "%(tag)s etiketi yok"
-#: instances/views.py:741
+#: instances/views.py:745
#, python-format
msgid "Tag %(tag)s removed from %(count)s VM"
msgid_plural "Tag %(tag)s removed from %(count)s VMs"
msgstr[0] "%(tag)s etiketi %(count)s sanal makineden kaldırıldı"
msgstr[1] "%(tag)s etiketi %(count)s sanal makineden kaldırıldı"
-#: instances/views.py:742
+#: instances/views.py:746
#, python-format
msgid "Tag %(tag)s added to %(count)s VM"
msgid_plural "Tag %(tag)s added to %(count)s VMs"
msgstr[0] "%(tag)s etiketi %(count)s sanal makineye eklendi"
msgstr[1] "%(tag)s etiketi %(count)s sanal makineye eklendi"
-#: instances/views.py:758
+#: instances/views.py:762
msgid "Choose the VMs you may power, and Start, Shut down or Force off"
msgstr ""
"Güç işlemi yapabileceğiniz sanal makineleri seçin; ardından Başlat, Kapat ya "
"da Zorla kapat"
-#: instances/views.py:761
-#, python-format
-msgid "Choose at most %(count)s VMs at once"
-msgstr "En fazla %(count)s sanal makine seçin"
-
-#: instances/views.py:768
+#: instances/views.py:772
msgid "a chosen VM"
msgstr "seçilen bir sanal makine"
-#: instances/views.py:776
+#: instances/views.py:780
#, python-format
msgid "%(vm)s: you may not power it now"
msgstr "%(vm)s: şu anda güç işlemi yapamazsınız"
-#: instances/views.py:781
+#: instances/views.py:785
#, python-format
msgid "%(count)s VM is queued; the Jobs page follows it."
msgid_plural "%(count)s VMs are queued; the Jobs page follows them."
@@ -7330,11 +7335,11 @@ msgstr[0] "%(count)s sanal makine kuyruğa alındı; İşler sayfası onu izliyo
msgstr[1] ""
"%(count)s sanal makine kuyruğa alındı; İşler sayfası onları izliyor."
-#: instances/views.py:803 instances/views.py:804
+#: instances/views.py:807 instances/views.py:808
msgid "The VM was moved meanwhile; try again."
msgstr "Sanal makine bu arada taşındı; yeniden deneyin."
-#: instances/views.py:920
+#: instances/views.py:924
msgid ""
"The running VM has no free PCI slot for another disk on this bus: choose the "
"scsi bus if the VM has a SCSI controller, or shut the VM down and add the "
@@ -7347,7 +7352,7 @@ msgstr ""
"yuvaları ekle, sonraki başlatmadan itibaren ona boş yuvalar verir. Yeni bir "
"birim havuzunda kalır, mevcut birim olarak eklenebilir."
-#: instances/views.py:924
+#: instances/views.py:928
msgid ""
"The running VM has no free PCI slot for the SCSI controller the disk needs: "
"shut the VM down and add the disk then; Add PCIe slots on the Disks tab gives"
@@ -7359,195 +7364,195 @@ msgstr ""
"PCIe yuvaları ekle, sonraki başlatmadan itibaren ona boş yuvalar verir. Yeni "
"bir birim havuzunda kalır, mevcut birim olarak eklenebilir."
-#: instances/views.py:942
+#: instances/views.py:946
#, python-format
msgid "Invalid disk options: %(options)s"
msgstr "Geçersiz disk seçenekleri: %(options)s"
-#: instances/views.py:954 instances/views.py:1049
+#: instances/views.py:958 instances/views.py:1053
#, python-format
msgid "Invalid options: %(options)s"
msgstr "Geçersiz seçenekler: %(options)s"
-#: instances/views.py:989
+#: instances/views.py:993
msgid "The VM was forced off but did not start again: it stays off."
msgstr "Sanal makine zorla kapatıldı ancak yeniden başlamadı: kapalı kalıyor."
-#: instances/views.py:1177
+#: instances/views.py:1181
#, python-format
msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)"
msgstr ""
"Önce %(compute)s sunucusunun gstfsd anahtarını ayarlayın (Sunucular, sunucuyu"
" düzenle)"
-#: instances/views.py:1184 instances/views.py:1202 instances/views.py:1211
+#: instances/views.py:1188 instances/views.py:1206 instances/views.py:1215
#, python-format
msgid "gstfsd error: %(err)s"
msgstr "gstfsd hatası: %(err)s"
-#: instances/views.py:1212
+#: instances/views.py:1216
msgid "the reply is not signed with the key"
msgstr "yanıt anahtarla imzalanmamış"
-#: instances/views.py:1220
+#: instances/views.py:1224
msgid "Shut the VM down, or start its QEMU guest agent, and try again"
msgstr ""
"Sanal makineyi kapatın ya da QEMU konuk ajanını başlatın ve yeniden deneyin"
-#: instances/views.py:1228
+#: instances/views.py:1232
msgid "The change may still be made when the agent answers again."
msgstr "Ajan yeniden yanıt verdiğinde değişiklik yine de yapılabilir."
-#: instances/views.py:1243
+#: instances/views.py:1247
msgid "Enter a password"
msgstr "Bir parola girin"
-#: instances/views.py:1248
+#: instances/views.py:1252
msgid "Enter a password of at most 4096 characters, without NUL characters"
msgstr "En fazla 4096 karakterlik, NUL karakteri içermeyen bir parola girin"
-#: instances/views.py:1264
+#: instances/views.py:1268
msgid "Reset root password"
msgstr "Root parolasını sıfırla"
-#: instances/views.py:1280
+#: instances/views.py:1284
msgid "Select an SSH public key"
msgstr "Bir SSH açık anahtarı seçin"
-#: instances/views.py:1302
+#: instances/views.py:1306
#, python-format
msgid "Installed new SSH public key %(keyname)s"
msgstr "Yeni %(keyname)s SSH açık anahtarı yüklendi"
-#: instances/views.py:1322
+#: instances/views.py:1326
msgid "Enter a whole number of vCPUs"
msgstr "vCPU sayısı için bir tam sayı girin"
-#: instances/views.py:1326
+#: instances/views.py:1330
msgid "Shut off the VM to change its vCPUs"
msgstr "vCPU'larını değiştirmek için sanal makineyi kapatın"
-#: instances/views.py:1329
+#: instances/views.py:1333
msgid "The current vCPUs cannot be more than the maximum"
msgstr "Geçerli vCPU sayısı en fazla değerden büyük olamaz"
-#: instances/views.py:1336
+#: instances/views.py:1340
#, python-format
msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'."
msgstr "%(quota)s: '%(instance_name)s' CPU'su yeniden boyutlandırılamıyor."
-#: instances/views.py:1344
+#: instances/views.py:1348
#, python-format
msgid "vCPUs set to %(cur)s (maximum %(max)s)"
msgstr "vCPU sayısı %(cur)s olarak ayarlandı (en fazla %(max)s)"
-#: instances/views.py:1363
+#: instances/views.py:1367
msgid "Enter a whole number for memory"
msgstr "Bellek için bir tam sayı girin"
-#: instances/views.py:1366
+#: instances/views.py:1370
msgid "The current memory cannot be more than the maximum"
msgstr "Geçerli bellek en fazla değerden büyük olamaz"
-#: instances/views.py:1370
+#: instances/views.py:1374
#, python-format
msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'."
msgstr "%(quota)s: '%(instance_name)s' belleği yeniden boyutlandırılamıyor."
-#: instances/views.py:1376
+#: instances/views.py:1380
#, python-format
msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)"
msgstr "Bellek %(cur)s MiB olarak ayarlandı (en fazla %(max)s MiB)"
-#: instances/views.py:1396
+#: instances/views.py:1400
msgid "Enter disk sizes as whole GiB"
msgstr "Disk boyutlarını tam GiB olarak girin"
-#: instances/views.py:1400
+#: instances/views.py:1404
#, python-format
msgid "Disk %(dev)s was changed meanwhile; reload the page"
msgstr "%(dev)s diski bu arada değişti; sayfayı yeniden yükleyin"
-#: instances/views.py:1404
+#: instances/views.py:1408
#, python-format
msgid "%(dev)s is %(size)s: a disk cannot shrink"
msgstr "%(dev)s boyutu %(size)s: disk küçültülemez"
-#: instances/views.py:1412
+#: instances/views.py:1416
msgid "No disks were selected or valid for resizing."
msgstr "Boyutlandırma için seçilmiş ya da geçerli disk yok."
-#: instances/views.py:1421
+#: instances/views.py:1425
#, python-format
msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'."
msgstr "%(quota)s: '%(instance_name)s' diskleri yeniden boyutlandırılamıyor."
-#: instances/views.py:1433
+#: instances/views.py:1437
#, python-format
msgid "The storage pool of %(dev)s cannot resize its volumes"
msgstr "%(dev)s diskinin depolama havuzu birimlerini boyutlandıramaz"
-#: instances/views.py:1435
+#: instances/views.py:1439
#, python-format
msgid "Disk is resized: %(dev)s"
msgstr "Disk boyutu değiştirildi: %(dev)s"
-#: instances/views.py:1529
+#: instances/views.py:1533
msgid "The VM's machine has no PCIe slots to add"
msgstr "Sanal makinenin makine tipinde eklenecek PCIe yuvası yok"
-#: instances/views.py:1534
+#: instances/views.py:1538
#, python-format
msgid "%(count)s PCIe slots added"
msgstr "%(count)s PCIe yuvası eklendi"
-#: instances/views.py:1536
+#: instances/views.py:1540
#, python-format
msgid "%(count)s PCIe slots added: the VM gets them at its next start"
msgstr ""
"%(count)s PCIe yuvası eklendi: sanal makine bunları sonraki başlatmasında "
"alır"
-#: instances/views.py:1587
+#: instances/views.py:1591
#, python-format
msgid "%(volume)s is already a disk of this VM"
msgstr "%(volume)s zaten bu sanal makinenin bir diski"
-#: instances/views.py:1677
+#: instances/views.py:1681
msgid "Volume changes are applied. But it will be activated after shutdown"
msgstr ""
"Birim değişiklikleri uygulandı. Ama yeniden başlatıldıktan sonra uygulanacak"
-#: instances/views.py:1682
+#: instances/views.py:1686
msgid "Volume is changed successfully."
msgstr "Birim başarıyla değiştirildi."
-#: instances/views.py:1702
+#: instances/views.py:1706
#, python-format
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:1707 vrtManager/instance.py:2594
+#: instances/views.py:1711 vrtManager/instance.py:2594
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"
" kaldırın"
-#: instances/views.py:1713
+#: instances/views.py:1717
#, python-format
msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down"
msgstr ""
"%(dev)s diskinin bekleyen bir değişikliği var; sanal makine kapatıldığında "
"silin"
-#: instances/views.py:1728
+#: instances/views.py:1732
#, python-format
msgid "Volume %(vol)s is used by another VM; detach it instead"
msgstr ""
"%(vol)s birimi başka bir sanal makine tarafından kullanılıyor; onun yerine "
"ayırın"
-#: instances/views.py:1746
+#: instances/views.py:1750
#, python-format
msgid ""
"The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete "
@@ -7556,66 +7561,66 @@ msgstr ""
"Konuk sistem %(dev)s diskini henüz bırakmadı; %(vol)s birimi korundu. Sanal "
"makine kapatıldığında depolama havuzundan silin."
-#: instances/views.py:1757
+#: instances/views.py:1761
#, python-format
msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s"
msgstr "%(dev)s diski ayrıldı, ancak birimi korundu: %(err)s"
-#: instances/views.py:1785
+#: instances/views.py:1789
#, python-format
msgid "This VM cannot take a CD-ROM on the %(bus)s bus now"
msgstr "Bu sanal makineye şu anda %(bus)s veri yolunda CD-ROM eklenemez"
-#: instances/views.py:1788
+#: instances/views.py:1792
msgid "A USB CD-ROM needs an ISO image: libvirt has no empty USB drive"
msgstr "USB CD-ROM bir ISO imajı ister: libvirt boş USB sürücü desteklemiyor"
-#: instances/views.py:1793
+#: instances/views.py:1797
#, python-format
msgid "%(image)s is already in a CD-ROM of this VM"
msgstr "%(image)s bu sanal makinenin bir CD-ROM'unda zaten takılı"
-#: instances/views.py:1874
+#: instances/views.py:1878
#, python-format
msgid "Pool %(pool)s was not read again: %(err)s"
msgstr "%(pool)s havuzu yeniden okunamadı: %(err)s"
-#: instances/views.py:1895
+#: instances/views.py:1899
#, python-format
msgid "Snapshot was not deleted: %(err)s"
msgstr "Anlık görüntü silinmedi: %(err)s"
-#: instances/views.py:2014
+#: instances/views.py:2018
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:2020 vrtManager/instance.py:1364
+#: instances/views.py:2024 vrtManager/instance.py:1364
msgid "Invalid Device Type for boot order"
msgstr "Ön yükleme sırası için geçersiz aygıt türü"
-#: instances/views.py:2031
+#: instances/views.py:2035
msgid "Boot order changed. It applies at the next start."
msgstr "Ön yükleme sırası değiştirildi. Sonraki başlatmada uygulanır."
-#: instances/views.py:2033
+#: instances/views.py:2037
msgid "Boot order changed successfully."
msgstr "Ön yükleme sırası başarıyla değiştirildi."
-#: instances/views.py:2053
+#: instances/views.py:2057
msgid "The XML is empty"
msgstr "XML boş"
-#: instances/views.py:2057 instances/views.py:2777
+#: instances/views.py:2061 instances/views.py:2781
#, python-format
msgid "The XML is not well-formed: %(error)s"
msgstr "XML düzgün biçimlendirilmemiş: %(error)s"
-#: instances/views.py:2059
+#: instances/views.py:2063
#, python-format
msgid "The XML must keep the VM's UUID %(uuid)s."
msgstr "XML, sanal makinenin %(uuid)s UUID'sini korumalıdır."
-#: instances/views.py:2063
+#: instances/views.py:2067
msgid ""
"The definition has changed since the editor was opened. Reload the page to "
"edit the current one."
@@ -7623,45 +7628,45 @@ msgstr ""
"Düzenleyici açıldığından beri tanım değişti. Geçerli tanımı düzenlemek için "
"sayfayı yeniden yükleyin."
-#: instances/views.py:2079
+#: instances/views.py:2083
msgid "The XML definition was saved."
msgstr "XML tanımı kaydedildi."
-#: instances/views.py:2081
+#: instances/views.py:2085
msgid "The XML definition was saved; the VM uses it from its next start."
msgstr ""
"XML tanımı kaydedildi; sanal makine onu sonraki başlatmasından itibaren "
"kullanır."
-#: instances/views.py:2162
+#: instances/views.py:2166
msgid "Select one network interface to change"
msgstr "Değiştirilecek bir ağ arabirimi seçin"
-#: instances/views.py:2176
+#: instances/views.py:2180
#, python-format
msgid "Network interface %(mac)s was changed meanwhile; reload the page"
msgstr "%(mac)s ağ arayüzü bu arada değişti; sayfayı yeniden yükleyin"
-#: instances/views.py:2206
+#: instances/views.py:2210
msgid "Network Device Config is changed. Please shutdown instance to activate."
msgstr ""
"Ağ aygıtı yapılandırması değiştirildi. Aktifleştirmek için lütfen sanal "
"makineyi kapatın."
-#: instances/views.py:2208
+#: instances/views.py:2212
msgid "Network device changed"
msgstr "Ağ aygıtı değiştirildi"
-#: instances/views.py:2220
+#: instances/views.py:2224
msgid "No network selected"
msgstr "Ağ seçilmedi"
-#: instances/views.py:2225
+#: instances/views.py:2229
#, python-format
msgid "The VM already has a network device with MAC %(mac)s"
msgstr "Sanal makinede %(mac)s MAC adresli bir ağ aygıtı zaten var"
-#: instances/views.py:2244
+#: instances/views.py:2248
msgid ""
"The running VM has no free PCI slot for another network device: shut it down "
"and add the device then; Add PCIe slots on the Disks tab gives it free ones "
@@ -7671,21 +7676,21 @@ msgstr ""
"aygıtı sonra ekleyin; Diskler sekmesindeki PCIe yuvaları ekle, sonraki "
"başlatmadan itibaren ona boş yuvalar verir."
-#: instances/views.py:2290 instances/views.py:2296
+#: instances/views.py:2294 instances/views.py:2300
msgid "The VM has it"
msgstr "Sanal makinede var"
-#: instances/views.py:2331
+#: instances/views.py:2335
#, python-format
msgid "The host has no USB device %(device)s; reload the page"
msgstr "Sunucuda %(device)s USB aygıtı yok; sayfayı yeniden yükleyin"
-#: instances/views.py:2352
+#: instances/views.py:2356
#, python-format
msgid "The host has no PCI device %(device)s"
msgstr "Sunucuda %(device)s PCI aygıtı yok"
-#: instances/views.py:2370
+#: instances/views.py:2374
#, python-format
msgid ""
"Removal of PCI device %(address)s requested: the guest has not let it go yet;"
@@ -7695,20 +7700,20 @@ msgstr ""
"bırakmadı; bırakana ya da sanal makine durana kadar çalışan sanal makinede "
"kalır."
-#: instances/views.py:2415 instances/views.py:2445
+#: instances/views.py:2419 instances/views.py:2449
msgid "Select a network interface and a QoS direction"
msgstr "Bir ağ arabirimi ve bir QoS yönü seçin"
-#: instances/views.py:2418 vrtManager/network.py:470
+#: instances/views.py:2422 vrtManager/network.py:470
msgid "QoS rates must be whole numbers"
msgstr "QoS hızları tam sayı olmalıdır"
-#: instances/views.py:2425 networks/views.py:235
+#: instances/views.py:2429 networks/views.py:235
#, python-format
msgid "%(qos_dir)s QoS is set"
msgstr "%(qos_dir)s QoS ayarlandı"
-#: instances/views.py:2430
+#: instances/views.py:2434
#, python-format
msgid ""
"%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on."
@@ -7716,12 +7721,12 @@ msgstr ""
"%(qos_dir)s QoS ayarlandı. Çalışan bir sanal makine, kapatılıp açıldıktan "
"sonra bunu alır."
-#: instances/views.py:2452 networks/views.py:261
+#: instances/views.py:2456 networks/views.py:261
#, python-format
msgid "%(qos_dir)s QoS is deleted"
msgstr "%(qos_dir)s QoS silindi"
-#: instances/views.py:2457
+#: instances/views.py:2461
#, python-format
msgid ""
"%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is "
@@ -7730,21 +7735,21 @@ msgstr ""
"%(qos_dir)s QoS silindi. Çalışan bir sanal makine, kapatılıp açılana kadar "
"eski sınırı korur."
-#: instances/views.py:2485
+#: instances/views.py:2489
msgid "Only one owner is allowed and the one already added"
msgstr "Sadece bir sahibe izin verilmiştir ve bir sahip zaten eklenmiş"
-#: instances/views.py:2487
+#: instances/views.py:2491
#, python-format
msgid "%(user)s is already an owner"
msgstr "%(user)s zaten bir sahip"
-#: instances/views.py:2552
+#: instances/views.py:2556
#, python-format
msgid "Console settings were not saved: %(errors)s"
msgstr "Konsol ayarları kaydedilmedi: %(errors)s"
-#: instances/views.py:2574
+#: instances/views.py:2578
msgid ""
"Error setting console password. You should check that your instance have an "
"graphic device."
@@ -7752,41 +7757,41 @@ msgstr ""
"Konsol parolası ayarlanırken hata oluştu. Sanal makinenin bir grafik aygıtına"
" sahip olduğundan emin olunuz."
-#: instances/views.py:2621
+#: instances/views.py:2625
msgid "Shut the VM down to change whether it is a template."
msgstr "Şablon olup olmadığını değiştirmek için sanal makineyi kapatın."
-#: instances/views.py:2627
+#: instances/views.py:2631
#, python-format
msgid "%(quota)s: '%(instance_name)s' stays a template."
msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor."
-#: instances/views.py:2649
+#: instances/views.py:2653
msgid "An I/O limit is whole numbers of IOPS and MiB/s, 0 for none"
msgstr "G/Ç sınırı, IOPS ve MiB/s için tam sayılardır; 0: sınır yok"
-#: instances/views.py:2763
+#: instances/views.py:2767
msgid "The XML has no name"
msgstr "XML'de ad yok"
-#: instances/views.py:2781 webvirtcloud/middleware.py:157
+#: instances/views.py:2785 webvirtcloud/middleware.py:157
#, python-format
msgid "libvirt Error - %(exception)s"
msgstr "libvirt Hatası - %(exception)s"
-#: instances/views.py:2795
+#: instances/views.py:2799
msgid "An empty disk of the size you set"
msgstr "Belirlediğiniz boyutta boş bir disk"
-#: instances/views.py:2796
+#: instances/views.py:2800
msgid "Volumes already in a pool"
msgstr "Bir havuzda zaten bulunan birimler"
-#: instances/views.py:2797
+#: instances/views.py:2801
msgid "A copy of a template volume"
msgstr "Bir şablon biriminin kopyası"
-#: instances/views.py:2887
+#: instances/views.py:2891
msgid ""
"This host has no running storage pool for the VM's disks: add or start one on"
" its Storage page."
@@ -7794,29 +7799,29 @@ msgstr ""
"Bu sunucuda sanal makinenin diskleri için çalışan bir depolama havuzu yok: "
"Depolama sayfasından bir tane ekleyin ya da başlatın."
-#: instances/views.py:2889
+#: instances/views.py:2893
msgid "This host has no network for the VM: add one on its Networks page."
msgstr ""
"Bu sunucuda sanal makine için ağ yok: Ağlar sayfasından bir tane ekleyin."
-#: instances/views.py:2921
+#: instances/views.py:2925
#, python-format
msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it"
msgstr "Makine türü %(machine)s değil q35: UEFI Secure Boot bunu gerektiriyor"
-#: instances/views.py:2950
+#: instances/views.py:2954
msgid "Flavor Created"
msgstr "Flavor Oluşturuldu"
-#: instances/views.py:2958
+#: instances/views.py:2962
msgid "Create Flavor"
msgstr "Kullanıcı Oluştur"
-#: instances/views.py:2970
+#: instances/views.py:2974
msgid "Flavor Deleted"
msgstr "Flavor Silindi"
-#: instances/views.py:2976
+#: instances/views.py:2980
msgid "Only the size template goes; VMs made from it keep their size."
msgstr ""
"Yalnızca boyut şablonu silinir; ondan oluşturulan sanal makineler boyutlarını"
diff --git a/locale/zh/LC_MESSAGES/django.mo b/locale/zh/LC_MESSAGES/django.mo
index 018e0518..dbd614b6 100644
Binary files a/locale/zh/LC_MESSAGES/django.mo and b/locale/zh/LC_MESSAGES/django.mo differ
diff --git a/locale/zh/LC_MESSAGES/django.po b/locale/zh/LC_MESSAGES/django.po
index fad83dca..acae21e6 100644
--- a/locale/zh/LC_MESSAGES/django.po
+++ b/locale/zh/LC_MESSAGES/django.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2026-11-20 10:00+0000\n"
+"POT-Creation-Date: 2026-11-20 10:25+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -221,7 +221,7 @@ msgstr "用户页面导航"
#: admin/forms.py:221 admin/templates/admin/tag_list.html:25
#: computes/templates/computes/list.html:34
#: computes/templates/computes/list.html:62 computes/templates/overview.html:90
-#: instances/views.py:273 vmbackups/templates/vmbackups/policies.html:17
+#: instances/views.py:274 vmbackups/templates/vmbackups/policies.html:17
msgid "VMs"
msgstr "虚拟机"
@@ -242,10 +242,10 @@ msgstr "添加虚拟机"
#: accounts/templates/account.html:68 admin/templates/admin/logs.html:40
#: computes/templates/computes/balance.html:109
#: computes/templates/computes/list.html:61
-#: instances/templates/allinstances.html:136
+#: instances/templates/allinstances.html:137
#: instances/templates/allinstances_index_nongrouped.html:9
#: instances/templates/create_steps.html:6
-#: instances/templates/create_steps.html:8 instances/views.py:249
+#: instances/templates/create_steps.html:8 instances/views.py:250
#: operations/templates/operations/jobs.html:24
msgid "Host"
msgstr "主机"
@@ -772,7 +772,7 @@ msgstr "NEW_USER_DEFAULT_INSTANCES:%(name)s 已有所有者,且只允许一
#: instances/templates/allinstances_index_nongrouped.html:15
#: instances/templates/create_instance_w2.html:63
#: instances/templates/instances/resize_tab.html:30
-#: instances/templates/instances/settings_tab.html:878 instances/views.py:249
+#: instances/templates/instances/settings_tab.html:878 instances/views.py:250
msgid "vCPUs"
msgstr "vCPU"
@@ -986,7 +986,7 @@ msgid "IP"
msgstr "IP"
#: admin/templates/admin/logs.html:56 admin/views.py:398 instances/states.py:19
-#: instances/views.py:497 logs/views.py:18
+#: instances/views.py:498 logs/views.py:18
msgid "Unknown"
msgstr "未知"
@@ -1004,7 +1004,7 @@ msgstr "失败"
#: admin/templates/admin/tag_list.html:6 admin/templates/admin/tag_list.html:8
#: admin/templates/admin/tag_list.html:17 computes/forms.py:55
-#: instances/templates/instances/settings_tab.html:958 instances/views.py:250
+#: instances/templates/instances/settings_tab.html:958 instances/views.py:251
#: templates/common/tag_filter.html:6 templates/navbar.html:39
msgid "Tags"
msgstr "标签"
@@ -1024,7 +1024,7 @@ msgid "Search tags"
msgstr "搜索标签"
#: admin/templates/admin/tag_list.html:24
-#: instances/templates/allinstances.html:77
+#: instances/templates/allinstances.html:78
msgid "Tag"
msgstr "标签"
@@ -1090,7 +1090,7 @@ msgstr "受保护"
msgid "Left"
msgstr "已离开"
-#: admin/templates/admin/tombstone_list.html:36 instances/views.py:250
+#: admin/templates/admin/tombstone_list.html:36 instances/views.py:251
msgid "Owners"
msgstr "所有者"
@@ -2473,7 +2473,7 @@ msgstr "不迁移其虚拟机,直接将主机置于维护状态?"
msgid "Put in maintenance without migrating"
msgstr "不迁移,直接进入维护"
-#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:390
+#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:391
msgid "There is no other host to migrate to."
msgstr "没有其他可迁移到的主机。"
@@ -2837,7 +2837,7 @@ msgid "No host matches the filters."
msgstr "没有主机匹配这些筛选条件。"
#: computes/templates/computes/list.html:128
-#: instances/templates/allinstances.html:98
+#: instances/templates/allinstances.html:99
msgid "Clear the filters"
msgstr "清除筛选"
@@ -3069,41 +3069,41 @@ msgid ""
"/etc/default/webvirt-gstfsd"
msgstr "请输入主机 /etc/default/webvirt-gstfsd 中 GSTFSD_KEY 的 64 个十六进制字符"
-#: computes/views.py:211
+#: computes/views.py:225
#, python-format
msgid "The host did not answer within %(seconds)s seconds"
msgstr "主机未在 %(seconds)s 秒内响应"
-#: computes/views.py:280
+#: computes/views.py:296
#, python-format
msgid "no active network %(names)s"
msgstr "没有活动网络 %(names)s"
-#: computes/views.py:281
+#: computes/views.py:298
#, python-format
msgid "no network filter %(names)s"
msgstr "没有网络过滤器 %(names)s"
-#: computes/views.py:283
+#: computes/views.py:300
#, python-format
msgid "network filter %(names)s with other rules"
msgstr "网络过滤器 %(names)s 的规则不同"
-#: computes/views.py:285
+#: computes/views.py:304
#, python-format
msgid "no secret %(names)s"
msgstr "没有密钥 %(names)s"
-#: computes/views.py:468
+#: computes/views.py:487
msgid "No other host has room for it"
msgstr "没有其他主机能容纳它"
-#: computes/views.py:547
+#: computes/views.py:566
#, python-format
msgid "The host was saved, but the panel cannot connect to it: %(error)s"
msgstr "主机已保存,但面板无法连接到它:%(error)s"
-#: computes/views.py:620
+#: computes/views.py:639
#, python-format
msgid ""
"Its VMs keep running on the host and leave the panel; their owners are kept "
@@ -3268,7 +3268,7 @@ msgstr "连接"
#: instances/templates/add_instance_owner_block.html:11
#: instances/templates/add_instance_volume.html:15
#: instances/templates/allinstances.html:33
-#: instances/templates/allinstances.html:118
+#: instances/templates/allinstances.html:119
#: instances/templates/create_inst_block.html:12
#: instances/templates/create_instance_w2.html:367
#: instances/templates/instances/edit_instance_volume.html:13
@@ -3363,13 +3363,13 @@ msgid ""
msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。"
#: instances/api/viewsets.py:160 instances/api/viewsets.py:178
-#: instances/jobs.py:1602 instances/views.py:957 instances/views.py:979
-#: instances/views.py:1969
+#: instances/jobs.py:1602 instances/views.py:961 instances/views.py:983
+#: instances/views.py:1973
msgid "Templates cannot be started."
msgstr "模板无法启动。"
#: instances/forms.py:14 instances/templates/create_instance_w2.html:69
-#: instances/templates/instances/settings_tab.html:882 instances/views.py:249
+#: instances/templates/instances/settings_tab.html:882 instances/views.py:250
msgid "Memory (MiB)"
msgstr "内存(MiB)"
@@ -3728,7 +3728,7 @@ msgstr "磁盘缓存 %(cache)s 与设置中的原生 (native) 磁盘 I/O 不兼
msgid "Create VM"
msgstr "创建虚拟机"
-#: instances/jobs.py:937 instances/jobs.py:984 instances/views.py:2765
+#: instances/jobs.py:937 instances/jobs.py:984 instances/views.py:2769
msgid "A virtual machine with this name already exists"
msgstr "同名虚拟机已存在"
@@ -3905,7 +3905,7 @@ msgstr "虚拟机未被删除;它可能已被关闭"
msgid "The VM was not powered"
msgstr "未对虚拟机执行电源操作"
-#: instances/jobs.py:1597 instances/templates/allinstances.html:68
+#: instances/jobs.py:1597 instances/templates/allinstances.html:69
#: instances/templates/instance_actions.html:17
#: instances/templates/instance_actions.html:33
#: interfaces/templates/interface.html:18 networks/templates/network.html:18
@@ -3917,7 +3917,7 @@ msgstr "启动"
msgid "The VM is not shut off"
msgstr "虚拟机未关机"
-#: instances/jobs.py:1618 instances/templates/allinstances.html:70
+#: instances/jobs.py:1618 instances/templates/allinstances.html:71
#: instances/templates/instance_actions.html:27
msgid "Shut down"
msgstr "关机"
@@ -3932,7 +3932,7 @@ msgid ""
"it down"
msgstr "检查任务时虚拟机仍在运行:其客户机可能仍会将其关闭"
-#: instances/jobs.py:1637 instances/templates/allinstances.html:72
+#: instances/jobs.py:1637 instances/templates/allinstances.html:73
#: instances/templates/instance_actions.html:50
msgid "Force off"
msgstr "强制关闭"
@@ -4065,7 +4065,7 @@ msgid "Add instance network form"
msgstr "添加虚拟机网络表单"
#: instances/templates/add_instance_network_block.html:16
-#: instances/templates/allinstances.html:135
+#: instances/templates/allinstances.html:136
#: instances/templates/instances/edit_instance_volume.html:21
#: instances/templates/instances/settings_tab.html:225
#: instances/templates/instances/settings_tab.html:396
@@ -4083,7 +4083,7 @@ msgid "NWFilter"
msgstr "网络过滤器"
#: instances/templates/add_instance_network_block.html:48
-#: instances/templates/allinstances.html:134
+#: instances/templates/allinstances.html:135
#: instances/templates/instances/settings_tab.html:430
#: interfaces/templates/interface.html:60
#: interfaces/templates/interface.html:121
@@ -4120,7 +4120,7 @@ msgid "Disk source"
msgstr "磁盘来源"
#: instances/templates/add_instance_volume.html:21
-#: instances/templates/create_instance_w2.html:134 instances/views.py:2795
+#: instances/templates/create_instance_w2.html:134 instances/views.py:2799
msgid "New disk"
msgstr "新磁盘"
@@ -4221,120 +4221,125 @@ msgid "%%(count)s chosen"
msgstr "已选 %%(count)s 台"
#: instances/templates/allinstances.html:67
+#, python-format
+msgid "%%(count)s chosen: at most %(max)s at once"
+msgstr "已选 %%(count)s 台:一次最多 %(max)s 台"
+
+#: instances/templates/allinstances.html:68
msgid "Power the chosen VMs"
msgstr "所选虚拟机的电源"
-#: instances/templates/allinstances.html:70
+#: instances/templates/allinstances.html:71
msgid "Shut down the chosen VMs? Their guests are asked to power off."
msgstr "关闭所选虚拟机?将请求其客户机关机。"
-#: instances/templates/allinstances.html:72
+#: instances/templates/allinstances.html:73
msgid ""
"Force off the chosen VMs? They stop at once, as if unplugged, and may lose "
"unsaved data."
msgstr "强制关闭所选虚拟机?它们会像断电一样立即停止,可能丢失未保存的数据。"
-#: instances/templates/allinstances.html:79
+#: instances/templates/allinstances.html:80
msgid "Add tag"
msgstr "添加标签"
-#: instances/templates/allinstances.html:80
+#: instances/templates/allinstances.html:81
msgid "Remove tag"
msgstr "移除标签"
-#: instances/templates/allinstances.html:85
+#: instances/templates/allinstances.html:86
#, python-format
msgid "%%(shown)s of %%(all)s VMs match"
msgstr "%%(shown)s / %%(all)s 台虚拟机匹配"
-#: instances/templates/allinstances.html:88
+#: instances/templates/allinstances.html:89
msgid "There are no VMs here yet."
msgstr "这里还没有虚拟机。"
-#: instances/templates/allinstances.html:97
+#: instances/templates/allinstances.html:98
msgid "No VM matches the filters."
msgstr "没有虚拟机匹配这些筛选条件。"
-#: instances/templates/allinstances.html:103
+#: instances/templates/allinstances.html:104
msgid "The search did not go through. Try again."
msgstr "搜索未完成。请重试。"
-#: instances/templates/allinstances.html:104
+#: instances/templates/allinstances.html:105
msgid "No running VM reports this address."
msgstr "没有运行中的虚拟机报告此地址。"
-#: instances/templates/allinstances.html:105
+#: instances/templates/allinstances.html:106
msgid "No VM has a network card with this MAC address."
msgstr "没有虚拟机的网卡使用此 MAC 地址。"
-#: instances/templates/allinstances.html:106
+#: instances/templates/allinstances.html:107
msgid "(not registered in the panel)"
msgstr "(未在面板中注册)"
-#: instances/templates/allinstances.html:106
+#: instances/templates/allinstances.html:107
msgid "possible conflict"
msgstr "可能冲突"
-#: instances/templates/allinstances.html:107
+#: instances/templates/allinstances.html:108
#, python-format
msgid "Running VMs checked: %%(n)s."
msgstr "已检查的运行中虚拟机:%%(n)s。"
-#: instances/templates/allinstances.html:108
+#: instances/templates/allinstances.html:109
#, python-format
msgid ""
"%%(n)s had no connected guest agent; a static address on them cannot be seen."
msgstr "%%(n)s 台没有已连接的客户机代理;无法看到其上的静态地址。"
-#: instances/templates/allinstances.html:109
+#: instances/templates/allinstances.html:110
#, python-format
msgid ""
"Guest agents not read (a paused VM, no answer in time, or an error): %%(n)s."
msgstr "未读取的客户机代理(虚拟机已暂停、未及时响应或出错):%%(n)s。"
-#: instances/templates/allinstances.html:110
+#: instances/templates/allinstances.html:111
#, python-format
msgid "Not reached: %%(hosts)s."
msgstr "未连接:%%(hosts)s。"
-#: instances/templates/allinstances.html:111
+#: instances/templates/allinstances.html:112
#, python-format
msgid "Not finished in time: %%(hosts)s."
msgstr "未及时完成:%%(hosts)s。"
-#: instances/templates/allinstances.html:112
+#: instances/templates/allinstances.html:113
#, python-format
msgid "Read at %%(time)s."
msgstr "读取于 %%(time)s。"
-#: instances/templates/allinstances.html:113
+#: instances/templates/allinstances.html:114
msgid "Some of your VMs could not be checked."
msgstr "您的部分虚拟机无法检查。"
-#: instances/templates/allinstances.html:117
+#: instances/templates/allinstances.html:118
msgid "Find the VMs using an IP or MAC address"
msgstr "通过 IP 或 MAC 地址查找虚拟机"
-#: instances/templates/allinstances.html:122
+#: instances/templates/allinstances.html:123
msgid "IP address, network or MAC address"
msgstr "IP 地址、网络或 MAC 地址"
-#: instances/templates/allinstances.html:124
+#: instances/templates/allinstances.html:125
msgid "or"
msgstr "或"
-#: instances/templates/allinstances.html:125
+#: instances/templates/allinstances.html:126
msgid "Find"
msgstr "查找"
-#: instances/templates/allinstances.html:132
+#: instances/templates/allinstances.html:133
#: interfaces/templates/interface.html:101 networks/templates/network.html:143
#: networks/templates/network.html:199 networks/templates/network.html:364
#: nodedevs/templates/nodedevs.html:32
msgid "Address"
msgstr "地址"
-#: instances/templates/allinstances.html:133 instances/views.py:249
+#: instances/templates/allinstances.html:134 instances/views.py:250
#: interfaces/templates/interface.html:153 networks/templates/network.html:202
#: vmbackups/templates/vmbackups/index.html:18
#: vmbackups/templates/vmbackups/index.html:50
@@ -4540,7 +4545,7 @@ msgstr "自定义 CPU 型号"
msgid "Size (GiB)"
msgstr "大小(GiB)"
-#: instances/templates/create_instance_w2.html:161 instances/views.py:2796
+#: instances/templates/create_instance_w2.html:161 instances/views.py:2800
msgid "Existing volumes"
msgstr "已有卷"
@@ -4577,7 +4582,7 @@ msgstr "设备"
msgid "Remove"
msgstr "移除"
-#: instances/templates/create_instance_w2.html:194 instances/views.py:2797
+#: instances/templates/create_instance_w2.html:194 instances/views.py:2801
msgid "Clone from template"
msgstr "从模板克隆"
@@ -6709,15 +6714,15 @@ msgstr "无效的 MAC 地址"
msgid "More MAC addresses than networks"
msgstr "MAC 地址数量多于网络数量"
-#: instances/views.py:200
+#: instances/views.py:201
msgid "Enter an IP address, a network such as 192.0.2.0/24, or a MAC address."
msgstr "请输入 IP 地址、网络(如 192.0.2.0/24)或 MAC 地址。"
-#: instances/views.py:206 instances/views.py:240
+#: instances/views.py:207 instances/views.py:241
msgid "Too many searches are still running; try again shortly."
msgstr "仍在运行的搜索过多;请稍后再试。"
-#: instances/views.py:249 interfaces/templates/interface.html:46
+#: instances/views.py:250 interfaces/templates/interface.html:46
#: networks/templates/network.html:51
#: operations/templates/operations/jobs.html:38
#: operations/templates/operations/jobs.html:62
@@ -6729,170 +6734,170 @@ msgstr "仍在运行的搜索过多;请稍后再试。"
msgid "State"
msgstr "状态"
-#: instances/views.py:249
+#: instances/views.py:250
msgid "OS"
msgstr "操作系统"
-#: instances/views.py:249
+#: instances/views.py:250
msgid "OS family"
msgstr "操作系统系列"
-#: instances/views.py:249
+#: instances/views.py:250
msgid "IP addresses"
msgstr "IP 地址"
-#: instances/views.py:250
+#: instances/views.py:251
msgid "Address sources"
msgstr "地址来源"
-#: instances/views.py:250
+#: instances/views.py:251
msgid "MAC addresses"
msgstr "MAC 地址"
-#: instances/views.py:250
+#: instances/views.py:251
msgid "In the panel"
msgstr "在面板中"
-#: instances/views.py:262
+#: instances/views.py:263
msgid "yes"
msgstr "是"
-#: instances/views.py:262
+#: instances/views.py:263
msgid "no"
msgstr "否"
-#: instances/views.py:264
+#: instances/views.py:265
#, python-format
msgid "Created: %(time)s"
msgstr "创建时间:%(time)s"
-#: instances/views.py:265
+#: instances/views.py:266
#, python-format
msgid "VMs listed: %(n)s"
msgstr "列出的虚拟机:%(n)s"
-#: instances/views.py:266
+#: instances/views.py:267
#, python-format
msgid "Running VMs read: %(n)s"
msgstr "已读取的运行中虚拟机:%(n)s"
-#: instances/views.py:267
+#: instances/views.py:268
#, python-format
msgid ""
"Without a connected guest agent (a static address on them cannot be seen): "
"%(n)s"
msgstr "没有已连接客户机代理的虚拟机(无法看到其上的静态地址):%(n)s"
-#: instances/views.py:268
+#: instances/views.py:269
#, python-format
msgid ""
"Guest agents not read (a paused VM, no answer in time, or an error): %(n)s"
msgstr "未读取的客户机代理(虚拟机已暂停、未及时响应或出错):%(n)s"
-#: instances/views.py:270
+#: instances/views.py:271
#, python-format
msgid "Hosts not reached: %(hosts)s"
msgstr "无法连接的主机:%(hosts)s"
-#: instances/views.py:272
+#: instances/views.py:273
#, python-format
msgid "Hosts not finished in time: %(hosts)s"
msgstr "未按时完成的主机:%(hosts)s"
-#: instances/views.py:273
+#: instances/views.py:274
msgid "Coverage"
msgstr "覆盖范围"
-#: instances/views.py:288
+#: instances/views.py:289
#, python-format
msgid "The host %(host)s of '%(name)s' cannot be reached: %(error)s"
msgstr "无法连接“%(name)s”所在的主机 %(host)s:%(error)s"
-#: instances/views.py:294
+#: instances/views.py:295
#, python-format
msgid "The host of '%(name)s' cannot be reached right now."
msgstr "目前无法连接“%(name)s”所在的主机。"
-#: instances/views.py:295
+#: instances/views.py:296
msgid " Jobs on it can be followed under Jobs in the menu."
msgstr " 其上的任务可在菜单的“任务”中跟踪。"
-#: instances/views.py:303
+#: instances/views.py:304
#, python-format
msgid "'%(name)s' is no longer on its host."
msgstr "“%(name)s”已不在其主机上。"
-#: instances/views.py:392
+#: instances/views.py:393
msgid "A VM migrates when it is running, paused or shut off."
msgstr "虚拟机在运行、暂停或关机状态下均可迁移。"
-#: instances/views.py:394
+#: instances/views.py:395
msgid ""
"A VM with snapshots cannot be migrated: its snapshots stay on this host. "
"Delete them first."
msgstr "有快照的虚拟机无法迁移:其快照保留在本主机上。请先删除快照。"
-#: instances/views.py:396
+#: instances/views.py:397
msgid ""
"A VM with host devices cannot be migrated: the destination may not have them."
" Remove them first."
msgstr "有主机设备的虚拟机无法迁移:目标主机可能没有这些设备。请先移除它们。"
-#: instances/views.py:646
+#: instances/views.py:647
#, python-format
msgid "Disk %(dev)s has changed since the page was loaded; reload the page"
msgstr "磁盘 %(dev)s 在页面加载后已更改;请刷新页面"
-#: instances/views.py:721 instances/views.py:729
+#: instances/views.py:722 instances/views.py:733
msgid "Choose the VMs and write the tag"
msgstr "请选择虚拟机并填写标签"
-#: instances/views.py:734
+#: instances/views.py:725 instances/views.py:765
+#, python-format
+msgid "Choose at most %(count)s VMs at once"
+msgstr "一次最多选择 %(count)s 台虚拟机"
+
+#: instances/views.py:738
#, python-format
msgid "There is no tag %(tag)s"
msgstr "没有标签 %(tag)s"
-#: instances/views.py:741
+#: instances/views.py:745
#, python-format
msgid "Tag %(tag)s removed from %(count)s VM"
msgid_plural "Tag %(tag)s removed from %(count)s VMs"
msgstr[0] "已从 %(count)s 台虚拟机移除标签 %(tag)s"
-#: instances/views.py:742
+#: instances/views.py:746
#, python-format
msgid "Tag %(tag)s added to %(count)s VM"
msgid_plural "Tag %(tag)s added to %(count)s VMs"
msgstr[0] "已为 %(count)s 台虚拟机添加标签 %(tag)s"
-#: instances/views.py:758
+#: instances/views.py:762
msgid "Choose the VMs you may power, and Start, Shut down or Force off"
msgstr "请选择您可操作电源的虚拟机,然后选择启动、关闭或强制关闭"
-#: instances/views.py:761
-#, python-format
-msgid "Choose at most %(count)s VMs at once"
-msgstr "一次最多选择 %(count)s 台虚拟机"
-
-#: instances/views.py:768
+#: instances/views.py:772
msgid "a chosen VM"
msgstr "所选的一台虚拟机"
-#: instances/views.py:776
+#: instances/views.py:780
#, python-format
msgid "%(vm)s: you may not power it now"
msgstr "%(vm)s:您现在无法对其进行电源操作"
-#: instances/views.py:781
+#: instances/views.py:785
#, python-format
msgid "%(count)s VM is queued; the Jobs page follows it."
msgid_plural "%(count)s VMs are queued; the Jobs page follows them."
msgstr[0] "已将 %(count)s 台虚拟机加入队列;可在任务页面查看。"
-#: instances/views.py:803 instances/views.py:804
+#: instances/views.py:807 instances/views.py:808
msgid "The VM was moved meanwhile; try again."
msgstr "该虚拟机在此期间已被移动;请重试。"
-#: instances/views.py:920
+#: instances/views.py:924
msgid ""
"The running VM has no free PCI slot for another disk on this bus: choose the "
"scsi bus if the VM has a SCSI controller, or shut the VM down and add the "
@@ -6902,7 +6907,7 @@ msgstr ""
"运行中的虚拟机在此总线上没有可用 PCI 插槽来添加磁盘:如果虚拟机有 SCSI 控制器,请选择 scsi "
"总线;或关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。"
-#: instances/views.py:924
+#: instances/views.py:928
msgid ""
"The running VM has no free PCI slot for the SCSI controller the disk needs: "
"shut the VM down and add the disk then; Add PCIe slots on the Disks tab gives"
@@ -6912,289 +6917,289 @@ msgstr ""
"运行中的虚拟机没有可用 PCI 插槽来添加磁盘所需的 SCSI 控制器:请关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe "
"插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。"
-#: instances/views.py:942
+#: instances/views.py:946
#, python-format
msgid "Invalid disk options: %(options)s"
msgstr "无效的磁盘选项:%(options)s"
-#: instances/views.py:954 instances/views.py:1049
+#: instances/views.py:958 instances/views.py:1053
#, python-format
msgid "Invalid options: %(options)s"
msgstr "无效的选项:%(options)s"
-#: instances/views.py:989
+#: instances/views.py:993
msgid "The VM was forced off but did not start again: it stays off."
msgstr "虚拟机已被强制关机,但没有再次启动:它保持关机状态。"
-#: instances/views.py:1177
+#: instances/views.py:1181
#, python-format
msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)"
msgstr "请先设置 %(compute)s 的 gstfsd 密钥(计算节点,编辑该主机)"
-#: instances/views.py:1184 instances/views.py:1202 instances/views.py:1211
+#: instances/views.py:1188 instances/views.py:1206 instances/views.py:1215
#, python-format
msgid "gstfsd error: %(err)s"
msgstr "gstfsd 错误:%(err)s"
-#: instances/views.py:1212
+#: instances/views.py:1216
msgid "the reply is not signed with the key"
msgstr "回复未使用该密钥签名"
-#: instances/views.py:1220
+#: instances/views.py:1224
msgid "Shut the VM down, or start its QEMU guest agent, and try again"
msgstr "请关闭虚拟机,或启动其 QEMU 客户机代理,然后重试"
-#: instances/views.py:1228
+#: instances/views.py:1232
msgid "The change may still be made when the agent answers again."
msgstr "当代理再次响应时,此更改仍可能生效。"
-#: instances/views.py:1243
+#: instances/views.py:1247
msgid "Enter a password"
msgstr "请输入密码"
-#: instances/views.py:1248
+#: instances/views.py:1252
msgid "Enter a password of at most 4096 characters, without NUL characters"
msgstr "请输入不超过 4096 个字符且不含 NUL 字符的密码"
-#: instances/views.py:1264
+#: instances/views.py:1268
msgid "Reset root password"
msgstr "重置 root 密码"
-#: instances/views.py:1280
+#: instances/views.py:1284
msgid "Select an SSH public key"
msgstr "请选择 SSH 公钥"
-#: instances/views.py:1302
+#: instances/views.py:1306
#, python-format
msgid "Installed new SSH public key %(keyname)s"
msgstr "已安装新的 SSH 公钥 %(keyname)s"
-#: instances/views.py:1322
+#: instances/views.py:1326
msgid "Enter a whole number of vCPUs"
msgstr "请输入整数个 vCPU"
-#: instances/views.py:1326
+#: instances/views.py:1330
msgid "Shut off the VM to change its vCPUs"
msgstr "请关闭虚拟机以更改其 vCPU"
-#: instances/views.py:1329
+#: instances/views.py:1333
msgid "The current vCPUs cannot be more than the maximum"
msgstr "当前 vCPU 数不能超过最大值"
-#: instances/views.py:1336
+#: instances/views.py:1340
#, python-format
msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'."
msgstr "%(quota)s:无法调整“%(instance_name)s”的 CPU。"
-#: instances/views.py:1344
+#: instances/views.py:1348
#, python-format
msgid "vCPUs set to %(cur)s (maximum %(max)s)"
msgstr "vCPU 已设为 %(cur)s(最大 %(max)s)"
-#: instances/views.py:1363
+#: instances/views.py:1367
msgid "Enter a whole number for memory"
msgstr "请输入整数内存值"
-#: instances/views.py:1366
+#: instances/views.py:1370
msgid "The current memory cannot be more than the maximum"
msgstr "当前内存不能超过最大值"
-#: instances/views.py:1370
+#: instances/views.py:1374
#, python-format
msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'."
msgstr "%(quota)s:无法调整“%(instance_name)s”的内存。"
-#: instances/views.py:1376
+#: instances/views.py:1380
#, python-format
msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)"
msgstr "内存已设为 %(cur)s MiB(最大 %(max)s MiB)"
-#: instances/views.py:1396
+#: instances/views.py:1400
msgid "Enter disk sizes as whole GiB"
msgstr "请以整数 GiB 输入磁盘大小"
-#: instances/views.py:1400
+#: instances/views.py:1404
#, python-format
msgid "Disk %(dev)s was changed meanwhile; reload the page"
msgstr "磁盘 %(dev)s 在此期间已更改;请重新加载页面"
-#: instances/views.py:1404
+#: instances/views.py:1408
#, python-format
msgid "%(dev)s is %(size)s: a disk cannot shrink"
msgstr "%(dev)s 为 %(size)s:磁盘不能缩小"
-#: instances/views.py:1412
+#: instances/views.py:1416
msgid "No disks were selected or valid for resizing."
msgstr "未选择磁盘或没有可调整大小的有效磁盘。"
-#: instances/views.py:1421
+#: instances/views.py:1425
#, python-format
msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'."
msgstr "%(quota)s:无法调整“%(instance_name)s”的磁盘。"
-#: instances/views.py:1433
+#: instances/views.py:1437
#, python-format
msgid "The storage pool of %(dev)s cannot resize its volumes"
msgstr "%(dev)s 所在的存储池无法调整其卷的大小"
-#: instances/views.py:1435
+#: instances/views.py:1439
#, python-format
msgid "Disk is resized: %(dev)s"
msgstr "磁盘已调整大小:%(dev)s"
-#: instances/views.py:1529
+#: instances/views.py:1533
msgid "The VM's machine has no PCIe slots to add"
msgstr "该虚拟机的机器类型没有可添加的 PCIe 插槽"
-#: instances/views.py:1534
+#: instances/views.py:1538
#, python-format
msgid "%(count)s PCIe slots added"
msgstr "已添加 %(count)s 个 PCIe 插槽"
-#: instances/views.py:1536
+#: instances/views.py:1540
#, python-format
msgid "%(count)s PCIe slots added: the VM gets them at its next start"
msgstr "已添加 %(count)s 个 PCIe 插槽:虚拟机在下次启动时获得它们"
-#: instances/views.py:1587
+#: instances/views.py:1591
#, python-format
msgid "%(volume)s is already a disk of this VM"
msgstr "%(volume)s 已是此虚拟机的磁盘"
-#: instances/views.py:1677
+#: instances/views.py:1681
msgid "Volume changes are applied. But it will be activated after shutdown"
msgstr "卷更改已应用,但将在关机后生效"
-#: instances/views.py:1682
+#: instances/views.py:1686
msgid "Volume is changed successfully."
msgstr "卷已成功更改。"
-#: instances/views.py:1702
+#: instances/views.py:1706
#, python-format
msgid "Disk %(dev)s is not a storage volume of this instance"
msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷"
-#: instances/views.py:1707 vrtManager/instance.py:2594
+#: instances/views.py:1711 vrtManager/instance.py:2594
msgid "The VM has a saved state; start it or remove the saved state first"
msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态"
-#: instances/views.py:1713
+#: instances/views.py:1717
#, python-format
msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down"
msgstr "磁盘 %(dev)s 有待生效的更改;请在虚拟机关机后删除它"
-#: instances/views.py:1728
+#: instances/views.py:1732
#, python-format
msgid "Volume %(vol)s is used by another VM; detach it instead"
msgstr "卷 %(vol)s 正被另一台虚拟机使用;请改为分离它"
-#: instances/views.py:1746
+#: instances/views.py:1750
#, python-format
msgid ""
"The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete "
"it from the storage pool once the VM is shut down."
msgstr "客户机尚未释放磁盘 %(dev)s;卷 %(vol)s 已保留。请在虚拟机关机后从存储池中删除它。"
-#: instances/views.py:1757
+#: instances/views.py:1761
#, python-format
msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s"
msgstr "磁盘 %(dev)s 已分离,但其卷已保留:%(err)s"
-#: instances/views.py:1785
+#: instances/views.py:1789
#, python-format
msgid "This VM cannot take a CD-ROM on the %(bus)s bus now"
msgstr "该虚拟机现在无法在 %(bus)s 总线上添加 CD-ROM"
-#: instances/views.py:1788
+#: instances/views.py:1792
msgid "A USB CD-ROM needs an ISO image: libvirt has no empty USB drive"
msgstr "USB CD-ROM 需要 ISO 镜像:libvirt 不支持空的 USB 驱动器"
-#: instances/views.py:1793
+#: instances/views.py:1797
#, python-format
msgid "%(image)s is already in a CD-ROM of this VM"
msgstr "%(image)s 已在此虚拟机的某个光驱中"
-#: instances/views.py:1874
+#: instances/views.py:1878
#, python-format
msgid "Pool %(pool)s was not read again: %(err)s"
msgstr "未重新读取存储池 %(pool)s:%(err)s"
-#: instances/views.py:1895
+#: instances/views.py:1899
#, python-format
msgid "Snapshot was not deleted: %(err)s"
msgstr "快照未删除:%(err)s"
-#: instances/views.py:2014
+#: instances/views.py:2018
msgid "Add at least one device to the boot order."
msgstr "请至少向启动顺序中添加一个设备。"
-#: instances/views.py:2020 vrtManager/instance.py:1364
+#: instances/views.py:2024 vrtManager/instance.py:1364
msgid "Invalid Device Type for boot order"
msgstr "启动顺序的设备类型无效"
-#: instances/views.py:2031
+#: instances/views.py:2035
msgid "Boot order changed. It applies at the next start."
msgstr "启动顺序已更改,将在下次启动时生效。"
-#: instances/views.py:2033
+#: instances/views.py:2037
msgid "Boot order changed successfully."
msgstr "启动顺序已成功更改。"
-#: instances/views.py:2053
+#: instances/views.py:2057
msgid "The XML is empty"
msgstr "XML 为空"
-#: instances/views.py:2057 instances/views.py:2777
+#: instances/views.py:2061 instances/views.py:2781
#, python-format
msgid "The XML is not well-formed: %(error)s"
msgstr "XML 格式不正确:%(error)s"
-#: instances/views.py:2059
+#: instances/views.py:2063
#, python-format
msgid "The XML must keep the VM's UUID %(uuid)s."
msgstr "XML 必须保留虚拟机的 UUID %(uuid)s。"
-#: instances/views.py:2063
+#: instances/views.py:2067
msgid ""
"The definition has changed since the editor was opened. Reload the page to "
"edit the current one."
msgstr "自打开编辑器以来定义已被更改。请重新加载页面以编辑当前定义。"
-#: instances/views.py:2079
+#: instances/views.py:2083
msgid "The XML definition was saved."
msgstr "XML 定义已保存。"
-#: instances/views.py:2081
+#: instances/views.py:2085
msgid "The XML definition was saved; the VM uses it from its next start."
msgstr "XML 定义已保存;虚拟机从下次启动起使用它。"
-#: instances/views.py:2162
+#: instances/views.py:2166
msgid "Select one network interface to change"
msgstr "请选择一个要更改的网络接口"
-#: instances/views.py:2176
+#: instances/views.py:2180
#, python-format
msgid "Network interface %(mac)s was changed meanwhile; reload the page"
msgstr "网络接口 %(mac)s 在此期间已更改;请重新加载页面"
-#: instances/views.py:2206
+#: instances/views.py:2210
msgid "Network Device Config is changed. Please shutdown instance to activate."
msgstr "网络设备配置已更改。请关闭虚拟机以使其生效。"
-#: instances/views.py:2208
+#: instances/views.py:2212
msgid "Network device changed"
msgstr "网络设备已更改"
-#: instances/views.py:2220
+#: instances/views.py:2224
msgid "No network selected"
msgstr "未选择网络"
-#: instances/views.py:2225
+#: instances/views.py:2229
#, python-format
msgid "The VM already has a network device with MAC %(mac)s"
msgstr "虚拟机已有 MAC 地址为 %(mac)s 的网络设备"
-#: instances/views.py:2244
+#: instances/views.py:2248
msgid ""
"The running VM has no free PCI slot for another network device: shut it down "
"and add the device then; Add PCIe slots on the Disks tab gives it free ones "
@@ -7202,140 +7207,140 @@ msgid ""
msgstr ""
"运行中的虚拟机没有可用 PCI 插槽来添加网络设备:请关机后再添加设备。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。"
-#: instances/views.py:2290 instances/views.py:2296
+#: instances/views.py:2294 instances/views.py:2300
msgid "The VM has it"
msgstr "虚拟机已有此设备"
-#: instances/views.py:2331
+#: instances/views.py:2335
#, python-format
msgid "The host has no USB device %(device)s; reload the page"
msgstr "主机没有 USB 设备 %(device)s;请重新加载页面"
-#: instances/views.py:2352
+#: instances/views.py:2356
#, python-format
msgid "The host has no PCI device %(device)s"
msgstr "主机上没有 PCI 设备 %(device)s"
-#: instances/views.py:2370
+#: instances/views.py:2374
#, python-format
msgid ""
"Removal of PCI device %(address)s requested: the guest has not let it go yet;"
" it stays in the running VM until it does or the VM stops."
msgstr "已请求移除 PCI 设备 %(address)s:客户机尚未释放它;在客户机释放或虚拟机停止之前,它仍保留在运行中的虚拟机中。"
-#: instances/views.py:2415 instances/views.py:2445
+#: instances/views.py:2419 instances/views.py:2449
msgid "Select a network interface and a QoS direction"
msgstr "请选择网络接口和 QoS 方向"
-#: instances/views.py:2418 vrtManager/network.py:470
+#: instances/views.py:2422 vrtManager/network.py:470
msgid "QoS rates must be whole numbers"
msgstr "QoS 速率必须为整数"
-#: instances/views.py:2425 networks/views.py:235
+#: instances/views.py:2429 networks/views.py:235
#, python-format
msgid "%(qos_dir)s QoS is set"
msgstr "%(qos_dir)s QoS 已设置"
-#: instances/views.py:2430
+#: instances/views.py:2434
#, python-format
msgid ""
"%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on."
msgstr "%(qos_dir)s QoS 已设置。运行中的虚拟机需关机再开机后才能生效。"
-#: instances/views.py:2452 networks/views.py:261
+#: instances/views.py:2456 networks/views.py:261
#, python-format
msgid "%(qos_dir)s QoS is deleted"
msgstr "%(qos_dir)s QoS 已删除"
-#: instances/views.py:2457
+#: instances/views.py:2461
#, python-format
msgid ""
"%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is "
"powered off and on."
msgstr "%(qos_dir)s QoS 已删除。运行中的虚拟机在关机再开机之前保留旧的限制。"
-#: instances/views.py:2485
+#: instances/views.py:2489
msgid "Only one owner is allowed and the one already added"
msgstr "只允许一个所有者,且已添加"
-#: instances/views.py:2487
+#: instances/views.py:2491
#, python-format
msgid "%(user)s is already an owner"
msgstr "%(user)s 已是所有者"
-#: instances/views.py:2552
+#: instances/views.py:2556
#, python-format
msgid "Console settings were not saved: %(errors)s"
msgstr "控制台设置未保存:%(errors)s"
-#: instances/views.py:2574
+#: instances/views.py:2578
msgid ""
"Error setting console password. You should check that your instance have an "
"graphic device."
msgstr "设置控制台密码出错。请检查虚拟机是否有图形设备。"
-#: instances/views.py:2621
+#: instances/views.py:2625
msgid "Shut the VM down to change whether it is a template."
msgstr "请关闭虚拟机以更改其是否为模板。"
-#: instances/views.py:2627
+#: instances/views.py:2631
#, python-format
msgid "%(quota)s: '%(instance_name)s' stays a template."
msgstr "%(quota)s:“%(instance_name)s”仍为模板。"
-#: instances/views.py:2649
+#: instances/views.py:2653
msgid "An I/O limit is whole numbers of IOPS and MiB/s, 0 for none"
msgstr "I/O 限制须为 IOPS 和 MiB/s 的整数,0 表示不限"
-#: instances/views.py:2763
+#: instances/views.py:2767
msgid "The XML has no name"
msgstr "XML 中没有名称"
-#: instances/views.py:2781 webvirtcloud/middleware.py:157
+#: instances/views.py:2785 webvirtcloud/middleware.py:157
#, python-format
msgid "libvirt Error - %(exception)s"
msgstr "libvirt 错误 - %(exception)s"
-#: instances/views.py:2795
+#: instances/views.py:2799
msgid "An empty disk of the size you set"
msgstr "按设定大小创建的空磁盘"
-#: instances/views.py:2796
+#: instances/views.py:2800
msgid "Volumes already in a pool"
msgstr "存储池中已有的卷"
-#: instances/views.py:2797
+#: instances/views.py:2801
msgid "A copy of a template volume"
msgstr "模板卷的副本"
-#: instances/views.py:2887
+#: instances/views.py:2891
msgid ""
"This host has no running storage pool for the VM's disks: add or start one on"
" its Storage page."
msgstr "此主机没有可用于虚拟机磁盘的运行中存储池:请在其“存储”页面添加或启动一个。"
-#: instances/views.py:2889
+#: instances/views.py:2893
msgid "This host has no network for the VM: add one on its Networks page."
msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。"
-#: instances/views.py:2921
+#: instances/views.py:2925
#, python-format
msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it"
msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它"
-#: instances/views.py:2950
+#: instances/views.py:2954
msgid "Flavor Created"
msgstr "规格已创建"
-#: instances/views.py:2958
+#: instances/views.py:2962
msgid "Create Flavor"
msgstr "创建规格"
-#: instances/views.py:2970
+#: instances/views.py:2974
msgid "Flavor Deleted"
msgstr "规格已删除"
-#: instances/views.py:2976
+#: instances/views.py:2980
msgid "Only the size template goes; VMs made from it keep their size."
msgstr "仅删除此规格;由它创建的虚拟机保持其大小。"
diff --git a/static/js/bulk_power.js b/static/js/bulk_power.js
index 7768991a..130e2deb 100644
--- a/static/js/bulk_power.js
+++ b/static/js/bulk_power.js
@@ -13,8 +13,9 @@
function update() {
var boxes = onScreen();
var chosen = boxes.filter(function (box) { return box.checked; }).length;
- form.querySelectorAll("button[name='action']").forEach(function (button) { button.disabled = chosen === 0; });
- count.textContent = chosen ? count.dataset.text.replace("%(count)s", chosen) : "";
+ var tooMany = chosen > Number(count.dataset.max); // the server takes at most that many
+ form.querySelectorAll("button[name='action']").forEach(function (button) { button.disabled = chosen === 0 || tooMany; });
+ count.textContent = chosen ? (tooMany ? count.dataset.tooMany : count.dataset.text).replace("%(count)s", chosen) : "";
shown.disabled = boxes.length === 0;
shown.checked = boxes.length > 0 && chosen === boxes.length;
shown.indeterminate = chosen > 0 && chosen < boxes.length;
@@ -48,12 +49,17 @@
}
});
}
- form.addEventListener("submit", function () {
+ form.addEventListener("submit", function (event) {
document.querySelectorAll("input[name='vm'][form='bulk-power']:checked").forEach(function (box) {
if (!box.getClientRects().length) {
box.checked = false; // hidden: not sent
}
});
+ // counted again: rows may have come on screen since the buttons were last set
+ if (document.querySelectorAll("input[name='vm'][form='bulk-power']:checked").length > Number(count.dataset.max)) {
+ event.preventDefault();
+ update();
+ }
});
update();
})();
diff --git a/vrtManager/hostdetails.py b/vrtManager/hostdetails.py
index 9f38699f..810325ab 100644
--- a/vrtManager/hostdetails.py
+++ b/vrtManager/hostdetails.py
@@ -89,35 +89,53 @@ class wvmHostDetails(wvmConnect):
"has": {"networks" (active), "filters" {name: rules}, "secrets", "usages"}}. A VM's
running definition and the one for its next start count; its filters include those
these reference here; a secret is named by UUID ("secrets") or by usage type and
- usage ("usages", [type, usage]). A VM or filter gone meanwhile is passed over."""
+ usage ("usages", [type, usage]). A VM or filter gone meanwhile is passed over; a
+ listing that cannot be read is None (its VMs': "uses"), and the others still count."""
+ def read(listing):
+ try:
+ return listing()
+ except libvirtError:
+ return None
+
networks, filters_used, secrets, usages = set(), set(), set(), set()
- for _name, trees in self.domain_trees():
- for tree in trees:
- networks.update(tree.xpath("devices/interface[@type='network']/source/@network"))
- filters_used.update(tree.xpath("devices/interface/filterref/@filter"))
- for ref in tree.xpath("devices//secret"):
- if ref.get("uuid"):
- secrets.add(ref.get("uuid").lower())
- elif ref.get("usage"):
- usages.add((REF_USAGE_TYPES.get(ref.get("type")), ref.get("usage")))
- secrets.update(uuid.lower() for uuid in tree.xpath("devices/tpm/backend/encryption/@secret"))
- filters = {}
- for nwfilter in self.wvm.listAllNWFilters(0):
- with suppress(libvirtError): # undefined meanwhile
- filters[nwfilter.name()] = filter_rules(nwfilter)
+ def uses(): # one VM's definitions at a time
+ for _name, trees in self.domain_trees():
+ for tree in trees: # plain strings: none keeps its definition's tree alive
+ networks.update(tree.xpath("devices/interface[@type='network']/source/@network", smart_strings=False))
+ filters_used.update(tree.xpath("devices/interface/filterref/@filter", smart_strings=False))
+ for ref in tree.xpath("devices//secret"):
+ if ref.get("uuid"):
+ secrets.add(ref.get("uuid").lower())
+ elif ref.get("usage"):
+ usages.add((REF_USAGE_TYPES.get(ref.get("type")), ref.get("usage")))
+ secrets.update(uuid.lower() for uuid in tree.xpath("devices/tpm/backend/encryption/@secret",
+ smart_strings=False))
+ return True
+
+ vms_read = read(uses)
+
+ def own_filters():
+ filters = {}
+ for nwfilter in self.wvm.listAllNWFilters(0):
+ with suppress(libvirtError): # undefined meanwhile
+ filters[nwfilter.name()] = filter_rules(nwfilter)
+ return filters
+
+ filters = read(own_filters)
todo = list(filters_used)
while todo: # and those they reference
- for ref in filters.get(todo.pop(), ("", []))[1]:
+ for ref in (filters or {}).get(todo.pop(), ("", []))[1]:
if ref not in filters_used:
filters_used.add(ref)
todo.append(ref)
- have = self.get_secrets_info()
- return {"uses": {"networks": sorted(networks), "filters": sorted(filters_used), "secrets": sorted(secrets),
- "usages": sorted(usages, key=str)},
- "has": {"networks": sorted(n.name() for n in self.wvm.listAllNetworks(VIR_CONNECT_LIST_NETWORKS_ACTIVE)),
- "filters": {name: rules for name, (rules, _refs) in filters.items()},
- "secrets": sorted(secret["uuid"].lower() for secret in have),
- "usages": sorted(((secret["usage_type"], secret["usage"]) for secret in have), key=str)}}
+ have = read(self.get_secrets_info)
+ active = read(lambda: self.wvm.listAllNetworks(VIR_CONNECT_LIST_NETWORKS_ACTIVE))
+ return {"uses": None if vms_read is None else {"networks": sorted(networks), "filters": sorted(filters_used),
+ "secrets": sorted(secrets), "usages": sorted(usages, key=str)},
+ "has": {"networks": None if active is None else sorted(n.name() for n in active),
+ "filters": None if filters is None else {name: rules for name, (rules, _refs) in filters.items()},
+ "secrets": None if have is None else sorted(secret["uuid"].lower() for secret in have),
+ "usages": None if have is None else sorted(((s["usage_type"], s["usage"]) for s in have), key=str)}}
def get_memory_usage(self):
"""