diff --git a/instances/jobs.py b/instances/jobs.py index c70d3d7d..742766d5 100644 --- a/instances/jobs.py +++ b/instances/jobs.py @@ -8,6 +8,7 @@ from uuid import uuid4 from django.db import transaction from django.core.exceptions import PermissionDenied +from django.http import Http404 from django.shortcuts import get_object_or_404 from django.urls import reverse from django.template.loader import render_to_string @@ -1516,3 +1517,76 @@ class DeleteInstance(Kind): def log_entry(self, op, state): return _log(op, state, "delete") + + +# the power actions the VM list's chosen VMs take (instance.power), by the name its form sends, and their log words +POWER = { + "start": "power on", + "shutdown": "power off", + "force_off": "force off", +} + + +def _powerable(user, pk): + """The page's rule (_power_instance): an owner or a superuser, and not a VM an administrator paused.""" + from instances.views import _power_instance + + if user is None or not user.is_active: + raise PermissionDenied + try: + return _power_instance(user, pk) + except Http404: # gone, or no longer the user's + raise PermissionDenied from None + + +@register +class PowerVM(Kind): + """Starts, shuts down or forces off one VM chosen on the VM list: a job of + its own, so each VM is held, checked when it runs, scheduled and recovered + on its own, and has its own log row.""" + + name = "instance.power" + label = gettext_noop("Power") + + def normalize(self, raw): + if raw["action"] not in POWER: + raise ValueError(raw["action"]) + return {"instance": int(raw["instance"]), "action": raw["action"]} + + def validate(self, user, params): + # the owner only: whether an administrator paused it is read by the worker, not in the request + from instances.views import get_instance + + get_instance(user, params["instance"], perm_type="power") + + def plan(self, user, params): + return _vm_plan(params) + + def precheck(self, op, ctx): + if _powerable(op.user, op.params["instance"]).compute_id != op.intent["compute"]: + raise util.OperationError(MOVED) + + def run(self, op, ctx): + instance, action = _instance(op.params["instance"]), op.params["action"] + if action == "start": # the start button's checks, before anything changes + if instance.is_template: + raise util.OperationError(gettext_noop("Templates cannot be started.")) + instance.proxy.check_start_hostdevs() + instance.compute.refuse_start() + ctx.record_intent(powering=True) # libvirt is asked from here: recovery cannot tell what it did + if action == "start": + instance.proxy.start() + elif action == "shutdown": + instance.proxy.shutdown() + else: + instance.proxy.force_shutdown() + return {} + + def reconcile(self, op): + if not op.intent.get("powering"): + return Outcome(Operation.FAILED, error=say(gettext_noop("The job stopped before the VM was powered"))) + return Outcome(Operation.UNCERTAIN, error=say(gettext_noop( + "The job stopped while the VM was powered: check its state"))) + + def log_entry(self, op, state): + return _log(op, state, POWER[op.params["action"]]) diff --git a/instances/templates/allinstances.html b/instances/templates/allinstances.html index d15db790..10d188d6 100644 --- a/instances/templates/allinstances.html +++ b/instances/templates/allinstances.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load i18n %} {% load static %} +{% load operations %} {% block title %}{% trans "Instances" %}{% endblock %} {% block page_heading %}{% trans "Instances" %}{% endblock page_heading %} @@ -55,6 +56,23 @@ {% include 'common/tag_filter.html' %} + {% if powerable %} + {# the VMs chosen in the list (bulk_power_box.html), an instance.power job each; bulk_power.js counts those on screen #} +
{% csrf_token %}{% submission_key %} +
+ + +
+ +
+ + + +
+
+ {% endif %}
{% endif %} {% if not instances %} @@ -126,6 +144,8 @@ {% if app_settings.VIEW_INSTANCES_LIST_STYLE == 'grouped' and request.user.is_superuser %} {% endif %} + {# after host_groups.js: the hosts it collapses are off screen #} + {% if powerable %}{% endif %} {% if request.user.is_superuser %} {% endif %} diff --git a/instances/templates/allinstances_index_grouped.html b/instances/templates/allinstances_index_grouped.html index ea2f48e5..a0b206d9 100644 --- a/instances/templates/allinstances_index_grouped.html +++ b/instances/templates/allinstances_index_grouped.html @@ -60,7 +60,7 @@ {% for instance in compute.instance_set.all %} {# searched for its name, title and owners, not its buttons #} - + {% include 'instances/bulk_power_box.html' %} {% include 'instance_name_cell.html' with owners=True %} {% include 'instance_state.html' %} diff --git a/instances/templates/allinstances_index_nongrouped.html b/instances/templates/allinstances_index_nongrouped.html index e8918d31..2d9cd5a4 100644 --- a/instances/templates/allinstances_index_nongrouped.html +++ b/instances/templates/allinstances_index_nongrouped.html @@ -3,6 +3,7 @@ + {% if show_hosts %} @@ -20,6 +21,7 @@ {% for instance in instances %} {# searched for its name, title, host and owners, not its buttons #} + {% if show_hosts %}
{% trans "Chosen" %} {% trans 'Name' %}{% trans 'Host' %}
{% include 'instances/bulk_power_box.html' %} {% include 'instance_name_cell.html' with owners=show_hosts %} diff --git a/instances/templates/instances/bulk_power_box.html b/instances/templates/instances/bulk_power_box.html new file mode 100644 index 00000000..0d7f637b --- /dev/null +++ b/instances/templates/instances/bulk_power_box.html @@ -0,0 +1,2 @@ +{% load i18n %}{# a VM the user may power, chosen for the bulk power form (allinstances.html) #} +{% if instance.pk in powerable %}{% endif %} diff --git a/instances/tests/test_bulk_power.py b/instances/tests/test_bulk_power.py new file mode 100644 index 00000000..30605465 --- /dev/null +++ b/instances/tests/test_bulk_power.py @@ -0,0 +1,151 @@ +"""Start, shut down or force off the VMs chosen on the VM list: an +instance.power job each, so each VM is held, checked when it runs and +recovered on its own, with its own log row. A VM the user may not power, or +that another job holds, is named and the others are queued. Who may power a +VM may choose it, as on its own page.""" +from types import SimpleNamespace +from unittest.mock import MagicMock, patch + +from django.contrib.auth import get_user_model +from django.contrib.messages import get_messages +from django.core.exceptions import PermissionDenied +from django.test import TransactionTestCase +from django.urls import reverse +from lxml import html + +from accounts.models import UserInstance +from computes.models import Compute +from instances.jobs import PowerVM +from instances.models import Instance +from operations import claims +from operations.jobs import Context +from operations.models import Claim, Operation, acquire +from vrtManager.util import OperationError + + +class BulkPowerTestCase(TransactionTestCase): + def setUp(self): + self.admin = get_user_model().objects.create_superuser("bp-admin", "bp@example.com", "pw") + self.client.force_login(self.admin) + compute = Compute.objects.create(name="bp-host", hostname="127.0.0.1", login="", password="", type=4) + self.vms = [Instance.objects.create(compute=compute, name=f"bp-vm{n}", uuid=f"00000000-0000-4000-8000-00000000000{n}") + for n in (1, 2)] + self.proxies = {vm.name: MagicMock(**{"get_status.return_value": 5}) for vm in self.vms} + patch.object(Instance, "proxy", property(lambda vm: self.proxies[vm.name])).start() + patch.object(Compute, "refuse_start", lambda compute: None).start() + self.addCleanup(patch.stopall) + + def submit(self, action, vms, user=None): + if user: + self.client.force_login(user) + self.client.cookies.pop("messages", None) + response = self.client.post(reverse("instances:bulk_power"), {"action": action, "vm": [vm.pk for vm in vms], + "submission_key": "key-bulkpow1"}) + return response, [str(m) for m in get_messages(response.wsgi_request)] + + def run_job(self, op): + acquire("wvc-test:1:a", "wvc-test") + Operation.objects.filter(pk=op.pk).update(state=Operation.RUNNING, worker="wvc-test:1:a") + op.refresh_from_db() + ctx = Context(op, SimpleNamespace(identity="wvc-test:1:a")) + PowerVM().precheck(op, ctx) + return PowerVM().run(op, ctx) + + def test_the_list_queues_a_job_for_each_vm(self): + response, said = self.submit("start", self.vms) + self.assertRedirects(response, reverse("operations:jobs") + "?kind=instance.power", fetch_redirect_response=False) + self.assertEqual(said, ["2 VMs are queued; the Jobs page follows them."]) + ops = list(Operation.objects.order_by("resource_label")) + self.assertEqual([(op.kind, op.params, op.resource_label) for op in ops], + [("instance.power", {"instance": vm.pk, "action": "start"}, f"bp-host/{vm.name}") for vm in self.vms]) + # each holds its VM and shares its host, as a job on the VM's page does + self.assertEqual(set(Claim.objects.filter(operation=ops[0]).values_list("resource", "mode")), + {(f"compute:{self.vms[0].compute_id}", "shared"), (f"instance:{self.vms[0].uuid}", "exclusive")}) + # the form sent again queues none twice, and says so as the first time (not "busy") + _response, said = self.submit("start", self.vms) + self.assertEqual(said, ["2 VMs are queued; the Jobs page follows them."]) + self.assertEqual(Operation.objects.count(), 2) + + def test_each_job_powers_its_vm(self): + self.submit("force_off", self.vms) + for op in Operation.objects.all(): + self.run_job(op) + for proxy in self.proxies.values(): + proxy.force_shutdown.assert_called_once_with() + proxy.start.assert_not_called() + + def test_a_vm_another_job_holds_is_named_and_the_others_queued(self): + holder = Operation.objects.create(kind="instance.snapshot", user=self.admin, username="bp-admin", + state=Operation.RUNNING, resource="x", resource_label="bp-host/bp-vm1") + Claim.objects.create(resource=claims.instance_key(self.vms[0].uuid), mode=Claim.EXCLUSIVE, operation=holder) + _response, said = self.submit("shutdown", self.vms) + self.assertTrue(said[0].startswith("bp-vm1: "), said) + self.assertEqual(said[1:], ["1 VM is queued; the Jobs page follows it."]) + self.assertEqual(Operation.objects.get(kind="instance.power").params["instance"], self.vms[1].pk) + + def test_a_template_is_not_started_and_nothing_is_uncertain(self): + # refused before libvirt is asked: the job fails (its claims go), recovery is not needed + Instance.objects.filter(pk=self.vms[0].pk).update(is_template=True) + self.submit("start", self.vms[:1]) + op = Operation.objects.get() + with self.assertRaisesRegex(OperationError, "Templates cannot be started"): + self.run_job(op) + op.refresh_from_db() + self.assertNotIn("powering", op.intent) + self.assertEqual(PowerVM().reconcile(op).state, Operation.FAILED) + self.proxies["bp-vm1"].start.assert_not_called() + + def test_a_vm_paused_by_an_administrator_or_gone_is_refused_when_the_job_runs(self): + owner = get_user_model().objects.create_user("bp-owner3", password="pw") + UserInstance.objects.create(instance=self.vms[0], user=owner) + self.submit("start", self.vms[:1], user=owner) # the request reads no VM state + op = Operation.objects.get() + self.proxies["bp-vm1"].get_status.return_value = 3 # paused + with self.assertRaises(PermissionDenied): + self.run_job(op) + Instance.objects.filter(pk=self.vms[0].pk).delete() + with self.assertRaises(PermissionDenied): + PowerVM().precheck(op, None) + + def test_the_worker_checks_the_user_again(self): + # disabled after the form was sent: the job powers nothing + owner = get_user_model().objects.create_user("bp-owner2", password="pw") + UserInstance.objects.create(instance=self.vms[0], user=owner) + self.submit("start", self.vms[:1], user=owner) + get_user_model().objects.filter(pk=owner.pk).update(is_active=False) + with self.assertRaises(PermissionDenied): + self.run_job(Operation.objects.get()) + self.proxies["bp-vm1"].start.assert_not_called() + + def test_an_owner_powers_only_their_own_vms(self): + owner = get_user_model().objects.create_user("bp-owner", password="pw") + UserInstance.objects.create(instance=self.vms[0], user=owner) + _response, said = self.submit("start", self.vms, user=owner) + # another's VM is not named: the owner may not see it + self.assertEqual(said, ["a chosen VM: you may not power it now", "1 VM is queued; the Jobs page follows it."]) + self.assertEqual(Operation.objects.get().params["instance"], self.vms[0].pk) + + def test_an_unknown_action_or_too_many_vms_is_refused(self): + self.submit("reboot", self.vms) + response = self.client.post(reverse("instances:bulk_power"), {"action": "start", "vm": [str(n) for n in range(1, 502)], + "submission_key": "key-bulkpow1"}) + self.assertIn("at most 500 VMs", " ".join(map(str, get_messages(response.wsgi_request)))) + self.assertFalse(Operation.objects.exists()) + + def test_the_list_offers_a_box_for_each_vm_and_the_actions(self): + with patch("instances.views.utils.vm_states", return_value={}), \ + patch("instances.views.refresh_instance_database"), patch("instances.views.utils.read_list_rows"): + page = html.fromstring(self.client.get(reverse("instances:index")).content) + boxes = page.xpath("//input[@type='checkbox'][@name='vm']") + self.assertEqual(sorted(int(box.get("value")) for box in boxes), [vm.pk for vm in self.vms]) + (form,) = page.xpath("//form[@id='bulk-power']") + self.assertEqual(form.get("action"), reverse("instances:bulk_power")) + self.assertEqual(form.xpath(".//button[@name='action']/@value"), ["start", "shutdown", "force_off"]) + # an owner: a box on their own VM only + owner = get_user_model().objects.create_user("bp-lister", password="pw") + UserInstance.objects.create(instance=self.vms[1], user=owner) + self.client.force_login(owner) + with patch("instances.views.utils.vm_states", return_value={}), \ + patch("instances.views.refresh_instance_database"), patch("instances.views.utils.read_list_rows"): + page = html.fromstring(self.client.get(reverse("instances:index")).content) + self.assertEqual([int(box.get("value")) for box in page.xpath("//input[@name='vm']")], [self.vms[1].pk]) diff --git a/instances/urls.py b/instances/urls.py index 4ae75cf4..1758c090 100755 --- a/instances/urls.py +++ b/instances/urls.py @@ -12,6 +12,7 @@ urlpatterns = [ path("flavor/create/", views.flavor_create, name="flavor_create"), path("flavor//delete/", views.flavor_delete, name="flavor_delete"), path("/", views.instance, name="instance"), + path("bulk_power/", views.bulk_power, name="bulk_power"), path("/poweron/", views.poweron, name="poweron"), path("/powercycle/", views.powercycle, name="powercycle"), path("/poweroff/", views.poweroff, name="poweroff"), diff --git a/instances/views.py b/instances/views.py index 7d39e169..ea0b0378 100755 --- a/instances/views.py +++ b/instances/views.py @@ -38,7 +38,7 @@ from django.urls import reverse from django.template.defaultfilters import filesizeformat from django.utils import timezone from django.utils.translation import gettext as _ -from django.utils.translation import gettext_lazy, gettext_noop +from django.utils.translation import gettext_lazy, gettext_noop, ngettext from django.views.decorators.http import require_POST from django.views.decorators.debug import sensitive_post_parameters from passlib.exc import PasswordValueError @@ -54,6 +54,7 @@ from libvirt import (VIR_DOMAIN_PAUSED, from logs.audit import audit, audit_vm, failed_vm from lxml import etree from operations import claims, jobs +from operations.jobs import KEY_RE from operations.utils import HOST_BUSY, busy_message, summary from webvirtcloud.middleware import error_text, same_origin_referer from vrtManager import util @@ -130,7 +131,10 @@ def index(request): "unreachable_computes": [c for c in computes if c.status is not True], "states": [label for label, _color in STATES.values()] + [UNKNOWN[0]], "tags": Tag.counts(instances), - "states_url": reverse("instances:states"), "vm_states": vm_states}, + "states_url": reverse("instances:states"), "vm_states": vm_states, + # the VMs this user may power (_power_instance): theirs, or every one for a superuser + "powerable": {i.pk for i in instances} if request.user.is_superuser else + set(UserInstance.objects.filter(user=request.user).values_list("instance_id", flat=True))}, ) @@ -695,6 +699,49 @@ def _power_instance(user, pk): return instance +# the most VMs the VM list's bulk power form takes at once +BULK_POWER_MAX = 500 + + +@require_POST +def bulk_power(request): + """Starts, shuts down or forces off the VMs chosen on the VM list: an + instance.power job each, followed on the Jobs page. A VM the user may not + power, gone, or held by another job is named (if the user may see it); + the others are queued.""" + from instances.jobs import POWER # instances.jobs imports this module + + action, key = request.POST.get("action", ""), request.POST.get("submission_key", "") + vms = list(dict.fromkeys(int(pk) for pk in request.POST.getlist("vm") if pk.isascii() and pk.isdigit() and len(pk) <= 10)) + 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}) + 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( + pk__in=vms, userinstance__user=request.user).values_list("pk", "name")) + queued = 0 + for pk in vms: + name = seen.get(pk) or _("a chosen VM") # one the user may not see is not named + try: + # one key per VM: a resent form queues none twice + jobs.submit("instance.power", request.user, {"instance": pk, "action": action}, f"{key}-{pk}") + queued += 1 + except claims.Busy as busy: + messages.error(request, f"{name}: {busy_message(busy, request.user)}") + except (Http404, PermissionDenied, Instance.DoesNotExist): + messages.error(request, _("%(vm)s: you may not power it now") % {"vm": name}) + except (jobs.SubmissionConflict, libvirtError) as err: + messages.error(request, f"{name}: {error_text(request, err)}") + if not queued: + return redirect("instances:index") + messages.success(request, ngettext("%(count)s VM is queued; the Jobs page follows it.", + "%(count)s VMs are queued; the Jobs page follows them.", queued) % {"count": queued}) + return redirect(reverse("operations:jobs") + "?kind=instance.power") + + def from_script(request): """A form a page's script sends and answers itself: the create page's flavor forms (it swaps in the reply), the XML editor's dialog (JSON).""" diff --git a/locale/tr/LC_MESSAGES/django.mo b/locale/tr/LC_MESSAGES/django.mo index d1112a17..4b778910 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 0421e0d4..ce2f7dfb 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 07:56+0000\n" +"POT-Creation-Date: 2026-11-20 08:26+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" @@ -70,7 +70,7 @@ msgstr "Geçersiz anahtar" #: computes/templates/computes/instances.html:53 #: instances/templates/add_instance_volume.html:39 #: instances/templates/allinstances_index_grouped.html:11 -#: instances/templates/allinstances_index_nongrouped.html:6 +#: instances/templates/allinstances_index_nongrouped.html:7 #: instances/templates/create_instance_w2.html:42 #: interfaces/templates/interface.html:119 networks/templates/network.html:145 #: networks/templates/network.html:373 nwfilters/templates/nwfilters.html:29 @@ -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:267 vmbackups/templates/vmbackups/policies.html:17 +#: instances/views.py:271 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:109 -#: instances/templates/allinstances_index_nongrouped.html:8 +#: instances/templates/allinstances.html:127 +#: instances/templates/allinstances_index_nongrouped.html:9 #: instances/templates/create_steps.html:6 -#: instances/templates/create_steps.html:8 instances/views.py:243 +#: instances/templates/create_steps.html:8 instances/views.py:247 #: operations/templates/operations/jobs.html:24 msgid "Host" msgstr "Sunucu" @@ -703,7 +703,7 @@ msgstr "Sanal makineleri yedekleyebilir" msgid "Can clone instances" msgstr "Sanal makineleri klonlayabilir" -#: admin/forms.py:26 instances/models.py:451 +#: admin/forms.py:26 instances/models.py:452 msgid "Can access console without password" msgstr "Parolasız konsol erişimi yapabilir" @@ -795,10 +795,10 @@ msgstr "" #: admin/forms.py:222 computes/templates/computes/list.html:63 #: computes/templates/overview.html:102 instances/forms.py:15 #: instances/templates/allinstances_index_grouped.html:16 -#: instances/templates/allinstances_index_nongrouped.html:14 +#: 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:873 instances/views.py:243 +#: instances/templates/instances/settings_tab.html:873 instances/views.py:247 msgid "vCPUs" msgstr "vCPU" @@ -808,7 +808,7 @@ msgstr "vCPU" #: computes/templates/computes/list.html:64 #: computes/templates/overview.html:110 computes/templates/overview.html:194 #: instances/templates/allinstances_index_grouped.html:17 -#: instances/templates/allinstances_index_nongrouped.html:15 +#: instances/templates/allinstances_index_nongrouped.html:16 #: instances/templates/create_inst_block.html:40 #: instances/templates/instance.html:67 #: instances/templates/instances/resize_tab.html:18 @@ -816,7 +816,7 @@ msgstr "vCPU" msgid "Memory" msgstr "Bellek" -#: admin/forms.py:224 instances/models.py:248 +#: admin/forms.py:224 instances/models.py:249 #: instances/templates/create_instance_w2.html:118 #: instances/templates/instances/settings_tab.html:25 #: instances/templates/instances/stats_tab.html:53 vmbackups/forms.py:57 @@ -888,7 +888,7 @@ msgstr "Bu izinleri kimlerin alacağı." #: admin/templates/admin/logs.html:26 admin/templates/admin/tag_list.html:18 #: admin/templates/admin/tombstone_list.html:20 #: admin/templates/admin/user_list.html:20 -#: instances/templates/allinstances.html:11 networks/templates/network.html:130 +#: instances/templates/allinstances.html:12 networks/templates/network.html:130 #: nodedevs/templates/nodedevs.html:22 nwfilters/templates/nwfilters.html:23 #: templates/search_block.html:3 virtsecrets/templates/secrets.html:23 msgid "Search" @@ -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:491 logs/views.py:18 +#: instances/views.py:495 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:953 instances/views.py:244 +#: instances/templates/instances/settings_tab.html:953 instances/views.py:248 #: templates/common/tag_filter.html:6 templates/navbar.html:39 msgid "Tags" msgstr "Etiketler" @@ -1067,7 +1067,7 @@ msgstr "Sunucular" #: computes/templates/computes/instances.html:58 #: computes/templates/computes/list.html:65 #: instances/templates/allinstances_index_grouped.html:18 -#: instances/templates/allinstances_index_nongrouped.html:16 +#: instances/templates/allinstances_index_nongrouped.html:17 #: instances/templates/instances/settings_tab.html:469 #: instances/templates/instances/settings_tab.html:504 #: networks/templates/network.html:146 networks/templates/network.html:204 @@ -1123,7 +1123,7 @@ msgstr "Korumalı" msgid "Left" msgstr "Ayrıldığı sunucu" -#: admin/templates/admin/tombstone_list.html:36 instances/views.py:244 +#: admin/templates/admin/tombstone_list.html:36 instances/views.py:248 msgid "Owners" msgstr "Sahipler" @@ -2593,7 +2593,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:384 +#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:388 msgid "There is no other host to migrate to." msgstr "Taşınacak başka bir sunucu yok." @@ -2630,7 +2630,7 @@ msgstr "Kapalı sanal makineleri de taşı" #: computes/templates/computes/bulk_migrate.html:72 #: computes/templates/computes/instances.html:55 #: instances/templates/allinstances_index_grouped.html:12 -#: instances/templates/allinstances_index_nongrouped.html:10 +#: instances/templates/allinstances_index_nongrouped.html:11 msgid "Status" msgstr "Durum" @@ -2830,8 +2830,8 @@ msgstr "Genel Bakış" #: computes/templates/computes/host_nav.html:12 #: computes/templates/computes/instances.html:6 #: computes/templates/computes/instances.html:7 -#: computes/templates/overview.html:96 instances/templates/allinstances.html:4 -#: instances/templates/allinstances.html:5 +#: computes/templates/overview.html:96 instances/templates/allinstances.html:5 +#: instances/templates/allinstances.html:6 #: instances/templates/instances/host_link.html:7 #: instances/templates/instances/host_link.html:9 templates/navbar.html:14 msgid "Instances" @@ -2973,7 +2973,7 @@ msgid "No host matches the filters." msgstr "Filtrelerle eşleşen sunucu yok." #: computes/templates/computes/list.html:128 -#: instances/templates/allinstances.html:71 +#: instances/templates/allinstances.html:89 msgid "Clear the filters" msgstr "Filtreleri temizle" @@ -3411,8 +3411,8 @@ msgstr "Bağlan" #: instances/templates/add_instance_network_block.html:11 #: instances/templates/add_instance_owner_block.html:11 #: instances/templates/add_instance_volume.html:15 -#: instances/templates/allinstances.html:32 -#: instances/templates/allinstances.html:91 +#: instances/templates/allinstances.html:33 +#: instances/templates/allinstances.html:109 #: instances/templates/create_inst_block.html:12 #: instances/templates/create_instance_w2.html:367 #: instances/templates/instances/edit_instance_volume.html:13 @@ -3520,12 +3520,13 @@ msgstr "" "VNC olarak değiştirin." #: instances/api/viewsets.py:160 instances/api/viewsets.py:178 -#: instances/views.py:869 instances/views.py:891 instances/views.py:1881 +#: instances/jobs.py:1573 instances/views.py:916 instances/views.py:938 +#: instances/views.py:1928 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:877 instances/views.py:243 +#: instances/templates/instances/settings_tab.html:877 instances/views.py:247 msgid "Memory (MiB)" msgstr "Bellek (MiB)" @@ -3612,11 +3613,11 @@ msgstr "" msgid "The name of the virtual machine must not contain any special characters" msgstr "Sanal makine adı özel karakterler içeremez" -#: instances/jobs.py:73 vmbackups/jobs.py:143 +#: instances/jobs.py:74 vmbackups/jobs.py:143 msgid "The VM moved to another compute after the job was queued" msgstr "İş kuyruğa alındıktan sonra sanal makine başka bir sunucuya taşındı" -#: instances/jobs.py:79 +#: instances/jobs.py:80 #, python-format msgid "" "%(vm)s is protected: a superuser turns its protection off on its Settings tab" @@ -3625,64 +3626,64 @@ msgstr "" "%(vm)s korumalı: önce bir süperkullanıcı Ayarlar sekmesinde korumasını " "kapatmalı" -#: instances/jobs.py:154 +#: instances/jobs.py:155 msgid "Enter a whole number of vCPUs for the clone" msgstr "Klon için vCPU sayısını tam sayı olarak girin" -#: instances/jobs.py:156 +#: instances/jobs.py:157 msgid "Enter a whole number of memory (MiB) for the clone" msgstr "Klon için belleği (MiB) tam sayı olarak girin" -#: instances/jobs.py:183 +#: instances/jobs.py:184 msgid "Choose the clone's name from the list of free names" msgstr "Klonun adını boş adlar listesinden seçin" -#: instances/jobs.py:211 +#: instances/jobs.py:212 #, python-format msgid "%(quota)s: cannot create '%(clone_name)s'." msgstr "%(quota)s: '%(clone_name)s' oluşturulamıyor." -#: instances/jobs.py:214 instances/jobs.py:654 vmbackups/jobs.py:908 +#: instances/jobs.py:215 instances/jobs.py:655 vmbackups/jobs.py:908 #, python-format msgid "Instance '%(clone_name)s' already exists!" msgstr "'%(clone_name)s' sanal makinesi zaten mevcut!" -#: instances/jobs.py:216 vmbackups/jobs.py:910 +#: instances/jobs.py:217 vmbackups/jobs.py:910 #, python-format msgid "Instance name '%(clone_name)s' is longer than 64 characters" msgstr "'%(clone_name)s' sanal makine adı 64 karakterden uzun" -#: instances/jobs.py:219 vmbackups/jobs.py:912 +#: instances/jobs.py:220 vmbackups/jobs.py:912 #, python-format msgid "Instance name '%(clone_name)s' contains invalid characters!" msgstr "Sanal makine adı '%(clone_name)s' geçersiz karakterler içermektedir!" -#: instances/jobs.py:222 +#: instances/jobs.py:223 #, python-format msgid "Instance MAC '%(clone_mac)s' invalid format!" msgstr "Sanal makine MAC adresi '%(clone_mac)s' geçersiz biçemde belirtilmiş!" -#: instances/jobs.py:229 +#: instances/jobs.py:230 #, python-format msgid "MAC address %(mac)s is the VM's or another NIC's of the clone" msgstr "" "%(mac)s MAC adresi sanal makinenin ya da klonun başka bir ağ kartının adresi" -#: instances/jobs.py:232 +#: instances/jobs.py:233 #, python-format msgid "Disk name '%(disk_name)s' contains invalid characters!" msgstr "Disk adı '%(disk_name)s' geçersiz karakterler içeriyor!" -#: instances/jobs.py:253 +#: instances/jobs.py:254 #, python-format msgid "The clone is made, but not as asked: %(error)s" msgstr "Klon oluşturuldu, ama istendiği gibi değil: %(error)s" -#: instances/jobs.py:332 +#: instances/jobs.py:333 msgid "The VM was not defined and no volume of it was left." msgstr "Sanal makine tanımlanmadı ve ondan geriye birim kalmadı." -#: instances/jobs.py:334 +#: instances/jobs.py:335 #, python-format msgid "" "The VM was not defined; check these volumes, then resolve this job: " @@ -3691,28 +3692,28 @@ msgstr "" "Sanal makine tanımlanmadı; şu birimleri kontrol edin, sonra bu işi çözün: " "%(volumes)s" -#: instances/jobs.py:355 +#: instances/jobs.py:356 msgid "Delete snapshot" msgstr "Anlık görüntüyü sil" -#: instances/jobs.py:365 vrtManager/instance.py:2586 +#: instances/jobs.py:366 vrtManager/instance.py:2586 #, python-format msgid "The VM has no external snapshot named %(name)s" msgstr "Sanal makinede %(name)s adında harici anlık görüntü yok" -#: instances/jobs.py:378 +#: instances/jobs.py:379 msgid "Merging the snapshot" msgstr "Anlık görüntü birleştiriliyor" -#: instances/jobs.py:397 +#: instances/jobs.py:398 msgid "The VM is no longer on its compute" msgstr "Sanal makine artık kendi sunucusunda değil" -#: instances/jobs.py:400 +#: instances/jobs.py:401 msgid "libvirt is still merging the snapshot" msgstr "libvirt anlık görüntüyü hâlâ birleştiriyor" -#: instances/jobs.py:408 +#: instances/jobs.py:409 msgid "" "The snapshot is still listed and no merge runs. It cannot be told whether the" " disks changed; check the VM before deleting the snapshot again or reverting " @@ -3722,32 +3723,32 @@ msgstr "" "değişmediği bilinemiyor; anlık görüntüyü yeniden silmeden ya da ona dönmeden " "önce sanal makineyi kontrol edin." -#: instances/jobs.py:415 +#: instances/jobs.py:416 msgid "The VM is no longer on the compute the job ran on" msgstr "Sanal makine artık işin çalıştığı sunucuda değil" -#: instances/jobs.py:421 +#: instances/jobs.py:422 msgid "Take snapshot" msgstr "Anlık görüntü al" -#: instances/jobs.py:433 instances/jobs.py:442 vrtManager/instance.py:2175 +#: instances/jobs.py:434 instances/jobs.py:443 vrtManager/instance.py:2175 #, python-format msgid "A snapshot named %(name)s already exists" msgstr "%(name)s adında bir anlık görüntü zaten var" -#: instances/jobs.py:448 +#: instances/jobs.py:449 msgid "Taking the snapshot" msgstr "Anlık görüntü alınıyor" -#: instances/jobs.py:461 +#: instances/jobs.py:462 msgid "libvirt is still taking the snapshot" msgstr "libvirt anlık görüntüyü hâlâ alıyor" -#: instances/jobs.py:464 +#: instances/jobs.py:465 msgid "The snapshot was not taken" msgstr "Anlık görüntü alınmadı" -#: instances/jobs.py:492 +#: instances/jobs.py:493 #, python-format msgid "" "Snapshot %(name)s does not record the VM's vCPUs and memory: the quota cannot" @@ -3756,24 +3757,24 @@ msgstr "" "%(name)s anlık görüntüsü sanal makinenin vCPU ve bellek değerlerini " "içermiyor: kota denetlenemiyor." -#: instances/jobs.py:502 +#: instances/jobs.py:503 #, python-format msgid "%(quota)s: cannot revert to snapshot %(name)s." msgstr "%(quota)s: %(name)s anlık görüntüsüne dönülemiyor." -#: instances/jobs.py:521 +#: instances/jobs.py:522 msgid "Revert snapshot" msgstr "Snapshota dön" -#: instances/jobs.py:564 +#: instances/jobs.py:565 msgid "Reverting the VM" msgstr "Sanal makine geri döndürülüyor" -#: instances/jobs.py:575 +#: instances/jobs.py:576 msgid "libvirt is still reverting the VM" msgstr "libvirt sanal makineyi hâlâ geri döndürüyor" -#: instances/jobs.py:579 +#: instances/jobs.py:580 msgid "" "It cannot be told whether the VM was reverted; check it, then revert again or" " resolve this job." @@ -3781,12 +3782,12 @@ msgstr "" "Sanal makinenin geri döndürülüp döndürülmediği bilinemiyor; kontrol edin, " "sonra yeniden geri döndürün ya da bu işi çözün." -#: instances/jobs.py:596 +#: instances/jobs.py:597 msgid "The VM must be running, paused or shut off to be cloned" msgstr "" "Klonlanmak için sanal makine çalışıyor, duraklatılmış ya da kapalı olmalı" -#: instances/jobs.py:597 +#: instances/jobs.py:598 #, python-format msgid "" "The guest's file systems could not be thawed (%(error)s); thaw them with: " @@ -3795,7 +3796,7 @@ msgstr "" "Konuğun dosya sistemleri çözülemedi (%(error)s); şununla çözün: virsh " "domfsthaw %(vm)s" -#: instances/jobs.py:598 +#: instances/jobs.py:599 #, python-format msgid "" "%(vm)s is paused and its file systems may still be frozen: resume it, then " @@ -3804,21 +3805,21 @@ msgstr "" "%(vm)s duraklatılmış ve dosya sistemleri hâlâ dondurulmuş olabilir: devam " "ettirin, ardından şununla çözün: virsh domfsthaw %(vm)s" -#: instances/jobs.py:621 +#: instances/jobs.py:622 msgid "Clone VM" msgstr "Sanal makineyi klonla" -#: instances/jobs.py:664 instances/jobs.py:671 instances/jobs.py:1013 +#: instances/jobs.py:665 instances/jobs.py:672 instances/jobs.py:1014 #: vmbackups/jobs.py:369 vmbackups/jobs.py:1075 vmbackups/jobs.py:1281 #: vmbackups/jobs.py:1456 msgid "Copying disks" msgstr "Diskler kopyalanıyor" -#: instances/jobs.py:723 vmbackups/jobs.py:453 +#: instances/jobs.py:724 vmbackups/jobs.py:453 msgid "libvirt has no result of the copy" msgstr "libvirt'te kopyanın sonucu yok" -#: instances/jobs.py:734 +#: instances/jobs.py:735 #, python-format msgid "" "The copy failed: %(error)s. The guest's file systems could not be thawed " @@ -3827,11 +3828,11 @@ msgstr "" "Kopyalama başarısız oldu: %(error)s. Konuğun dosya sistemleri çözülemedi " "(%(thaw)s); şununla çözün: virsh domfsthaw %(vm)s" -#: instances/jobs.py:737 instances/jobs.py:829 vmbackups/jobs.py:461 +#: instances/jobs.py:738 instances/jobs.py:830 vmbackups/jobs.py:461 msgid "The copy failed" msgstr "Kopyalama başarısız oldu" -#: instances/jobs.py:764 +#: instances/jobs.py:765 #, python-format msgid "" "The VM is no longer on the compute the job ran on; check these volumes, then " @@ -3840,7 +3841,7 @@ msgstr "" "Sanal makine artık işin çalıştığı sunucuda değil; şu birimleri kontrol edin, " "sonra bu işi çözün: %(volumes)s" -#: instances/jobs.py:805 +#: instances/jobs.py:806 #, python-format msgid "" "A volume of the clone was being created; check these volumes, then resolve " @@ -3849,15 +3850,15 @@ msgstr "" "Klonun bir birimi oluşturuluyordu; şu birimleri kontrol edin, sonra bu işi " "çözün: %(volumes)s" -#: instances/jobs.py:809 vmbackups/jobs.py:498 +#: instances/jobs.py:810 vmbackups/jobs.py:498 msgid "The job stopped before the copy started" msgstr "İş, kopyalama başlamadan durdu" -#: instances/jobs.py:816 vmbackups/jobs.py:546 +#: instances/jobs.py:817 vmbackups/jobs.py:546 msgid "libvirt is still copying the disks" msgstr "libvirt diskleri hâlâ kopyalıyor" -#: instances/jobs.py:819 +#: instances/jobs.py:820 #, python-format msgid "" "Another backup runs on the VM; check these volumes, then resolve this job: " @@ -3866,7 +3867,7 @@ msgstr "" "Sanal makinede başka bir yedekleme çalışıyor; şu birimleri kontrol edin, " "sonra bu işi çözün: %(volumes)s" -#: instances/jobs.py:824 +#: instances/jobs.py:825 #, python-format msgid "" "libvirt has no result of the copy; check these volumes, then resolve this " @@ -3875,7 +3876,7 @@ msgstr "" "libvirt'te kopyanın sonucu yok; şu birimleri kontrol edin, sonra bu işi " "çözün: %(volumes)s" -#: instances/jobs.py:836 +#: instances/jobs.py:837 #, python-format msgid "" "The disks were copied, but the clone could not be defined: %(error)s; check " @@ -3884,33 +3885,33 @@ msgstr "" "Diskler kopyalandı, ancak klon tanımlanamadı: %(error)s; şu birimleri kontrol" " edin, sonra bu işi çözün: %(volumes)s" -#: instances/jobs.py:866 +#: instances/jobs.py:867 msgid "Image has already exist. Please check volumes or change instance name" msgstr "" "İmaj zaten mevcut. Lütfen ya makine adını değişin ya da disk alanlarını " "kontrol edin" -#: instances/jobs.py:874 +#: instances/jobs.py:875 msgid "Each network card needs a network" msgstr "Her ağ kartının bir ağı olmalı" -#: instances/jobs.py:876 vrtManager/backup.py:387 vrtManager/instance.py:3002 +#: instances/jobs.py:877 vrtManager/backup.py:387 vrtManager/instance.py:3002 #, python-format msgid "This host has no network %(name)s" msgstr "Bu sunucuda %(name)s ağı yok" -#: instances/jobs.py:878 vrtManager/backup.py:391 vrtManager/instance.py:3004 +#: instances/jobs.py:879 vrtManager/backup.py:391 vrtManager/instance.py:3004 #, python-format msgid "This host has no network filter %(name)s" msgstr "Bu sunucuda %(name)s ağ filtresi yok" -#: instances/jobs.py:894 +#: instances/jobs.py:895 #, python-format msgid "MAC address %(mac)s is a NIC's of another VM on this host" msgstr "" "%(mac)s MAC adresi bu sunucudaki başka bir sanal makinenin ağ kartının adresi" -#: instances/jobs.py:903 +#: instances/jobs.py:904 #, python-format msgid "" "Disk cache %(cache)s does not go with disk I/O native, which Settings set: " @@ -3919,73 +3920,73 @@ msgstr "" "%(cache)s disk önbelleği, Ayarlar'daki native disk G/Ç ile kullanılamaz: none" " ya da directsync seçin" -#: instances/jobs.py:911 instances/templates/create_instance_w1.html:60 +#: instances/jobs.py:912 instances/templates/create_instance_w1.html:60 #: instances/templates/create_instance_w2.html:356 msgid "Create VM" msgstr "Sanal makine oluştur" -#: instances/jobs.py:936 instances/jobs.py:983 instances/views.py:2677 +#: instances/jobs.py:937 instances/jobs.py:984 instances/views.py:2724 msgid "A virtual machine with this name already exists" msgstr "Bu isimde bir sanal makine mevcut" -#: instances/jobs.py:938 instances/jobs.py:978 +#: instances/jobs.py:939 instances/jobs.py:979 msgid "There is an instance with same name. Remove it and try again!" msgstr "Aynı isimde başka bir sanal makine var. Onu silip yeniden deneyin!" -#: instances/jobs.py:941 +#: instances/jobs.py:942 msgid "First you need to create or select an image" msgstr "Öncelikle bir imaj oluşturun ya da mevcut bir imajı seçin" -#: instances/jobs.py:943 +#: instances/jobs.py:944 msgid "Choose one disk source: a new disk, existing volumes or a template" msgstr "" "Tek bir disk kaynağı seçin: yeni bir disk, mevcut birimler ya da bir şablon" -#: instances/jobs.py:946 +#: instances/jobs.py:947 msgid "Invalid cache mode" msgstr "Geçersiz önbellek modu" -#: instances/jobs.py:949 +#: instances/jobs.py:950 #, python-format msgid "This host offers no CPU mode or model %(mode)s" msgstr "Bu sunucu %(mode)s CPU modunu veya modelini sunmuyor" -#: instances/jobs.py:951 +#: instances/jobs.py:952 #, python-format msgid "A %(arch)s VM cannot have a %(model)s network card" msgstr "Bir %(arch)s VM'inde %(model)s ağ kartı olamaz" -#: instances/jobs.py:953 +#: instances/jobs.py:954 #, python-format msgid "A CD-ROM cannot use the %(bus)s bus" msgstr "CD-ROM %(bus)s veri yolunu kullanamaz" -#: instances/jobs.py:956 +#: instances/jobs.py:957 msgid "The cloud-init seed is read from a CD-ROM: choose its bus" msgstr "cloud-init tohumu bir CD-ROM'dan okunur: veri yolunu seçin" -#: instances/jobs.py:959 +#: instances/jobs.py:960 msgid "The cloud-init seed needs a directory storage pool for the disk" msgstr "cloud-init tohumu, disk için bir dizin depolama havuzu gerektirir" -#: instances/jobs.py:963 +#: instances/jobs.py:964 #, python-format msgid "This host offers no firmware %(firmware)s" msgstr "Bu sunucu %(firmware)s firmware'ini sunmuyor" -#: instances/jobs.py:965 vrtManager/instance.py:3352 +#: instances/jobs.py:966 vrtManager/instance.py:3352 msgid "This host offers no TPM 2.0: install swtpm on it" msgstr "Bu sunucu TPM 2.0 sunmuyor: üzerine swtpm kurun" -#: instances/jobs.py:1033 +#: instances/jobs.py:1034 msgid "Writing the cloud-init seed" msgstr "cloud-init tohumu yazılıyor" -#: instances/jobs.py:1040 +#: instances/jobs.py:1041 msgid "Defining the VM" msgstr "Sanal makine tanımlanıyor" -#: instances/jobs.py:1082 +#: instances/jobs.py:1083 #, python-format msgid "" "The panel failed unexpectedly; its log has the details. Remove these volumes " @@ -3994,117 +3995,129 @@ msgstr "" "Panel beklenmedik bir hatayla karşılaştı; ayrıntılar panelin günlüğünde. Bu " "birimleri elle kaldırın: %(volumes)s" -#: instances/jobs.py:1086 +#: instances/jobs.py:1087 #, python-format msgid "%(error)s. Remove these volumes by hand: %(volumes)s" msgstr "%(error)s. Şu birimleri elle silin: %(volumes)s" -#: instances/jobs.py:1114 +#: instances/jobs.py:1115 #, python-format msgid "The instance is already on %(compute)s" msgstr "Sanal makine zaten %(compute)s üzerinde" -#: instances/jobs.py:1117 +#: instances/jobs.py:1118 #, python-format msgid "%(compute)s is not reachable" msgstr "%(compute)s sunucusuna ulaşılamıyor" -#: instances/jobs.py:1119 +#: instances/jobs.py:1120 #, python-format msgid "%(compute)s is the VM's own host under another name" msgstr "%(compute)s, sanal makinenin kendi sunucusunun başka bir adı" -#: instances/jobs.py:1176 +#: instances/jobs.py:1177 #, python-format msgid "" "The VM migrated, but autostart could not be set on the destination: %(error)s" msgstr "" "Sanal makine taşındı, ancak hedefte otomatik başlatma ayarlanamadı: %(error)s" -#: instances/jobs.py:1183 +#: instances/jobs.py:1184 #, python-format msgid "The VM migrated, but its NVRAM file stays on the source: %(error)s" msgstr "Sanal makine taşındı, ancak NVRAM dosyası kaynakta kaldı: %(error)s" -#: instances/jobs.py:1191 +#: instances/jobs.py:1192 msgid "Migrate VM" msgstr "Sanal makineyi taşı" -#: instances/jobs.py:1245 +#: instances/jobs.py:1246 msgid "Migrating the VM" msgstr "Sanal makine taşınıyor" -#: instances/jobs.py:1294 +#: instances/jobs.py:1295 msgid "libvirt is still migrating the VM" msgstr "libvirt sanal makineyi hâlâ taşıyor" -#: instances/jobs.py:1306 +#: instances/jobs.py:1307 msgid "The VM stayed on the source host" msgstr "Sanal makine kaynak sunucuda kaldı" -#: instances/jobs.py:1308 +#: instances/jobs.py:1309 msgid "" "The VM is on both computes or on neither; check them, then resolve this job." msgstr "" "Sanal makine ya iki sunucuda da var ya da hiçbirinde yok; kontrol edin, sonra" " bu işi çözün." -#: instances/jobs.py:1327 +#: instances/jobs.py:1328 msgid "Move disk" msgstr "Diski taşı" -#: instances/jobs.py:1334 +#: instances/jobs.py:1335 msgid "Choose a disk of the VM" msgstr "Sanal makinenin bir diskini seçin" -#: instances/jobs.py:1358 +#: instances/jobs.py:1359 msgid "Copying the disk" msgstr "Disk kopyalanıyor" -#: instances/jobs.py:1400 +#: instances/jobs.py:1401 #, python-format msgid "Another block job runs on %(dev)s; check the VM" msgstr "" "%(dev)s üzerinde başka bir blok işi çalışıyor; sanal makineyi kontrol edin" -#: instances/jobs.py:1406 +#: instances/jobs.py:1407 #, python-format msgid "The disk stayed in %(path)s; remove %(dest)s if it is there" msgstr "Disk %(path)s içinde kaldı; varsa %(dest)s dosyasını silin" -#: instances/jobs.py:1408 +#: instances/jobs.py:1409 #, python-format msgid "The definitions of %(dev)s name %(paths)s; check the VM" msgstr "%(dev)s tanımları %(paths)s gösteriyor; sanal makineyi kontrol edin" -#: instances/jobs.py:1415 +#: instances/jobs.py:1416 #, python-format msgid "Disk %(path)s was kept: a disk file that stays needs it" msgstr "%(path)s diski korundu: kalan bir disk dosyası ona ihtiyaç duyuyor" -#: instances/jobs.py:1416 +#: instances/jobs.py:1417 #, python-format msgid "The VM is removed, but disk %(path)s was not deleted: %(err)s" msgstr "Sanal makine kaldırıldı, ancak %(path)s diski silinmedi: %(err)s" -#: instances/jobs.py:1417 +#: instances/jobs.py:1418 #, python-format msgid "Disk %(path)s is used by another VM and was kept" msgstr "" "%(path)s diski başka bir sanal makine tarafından kullanılıyor ve korundu" -#: instances/jobs.py:1471 +#: instances/jobs.py:1472 msgid "Delete VM" msgstr "Sanal makineyi sil" -#: instances/jobs.py:1501 +#: instances/jobs.py:1502 msgid "Deleting the VM" msgstr "Sanal makine siliniyor" -#: instances/jobs.py:1514 +#: instances/jobs.py:1515 msgid "The VM was not deleted; it may have been shut off" msgstr "Sanal makine silinmedi; kapatılmış olabilir" +#: instances/jobs.py:1549 instances/templates/instance.html:87 +msgid "Power" +msgstr "Güç" + +#: instances/jobs.py:1587 +msgid "The job stopped before the VM was powered" +msgstr "İş, sanal makineye güç işlemi yapılmadan durdu" + +#: instances/jobs.py:1589 +msgid "The job stopped while the VM was powered: check its state" +msgstr "İş, güç işlemi sırasında durdu: sanal makinenin durumuna bakın" + #: instances/models.py:16 msgid "label" msgstr "etiket" @@ -4141,12 +4154,12 @@ msgstr "oluşturuldu" msgid "drbd" msgstr "drbd" -#: instances/models.py:250 instances/templates/create_instance_w2.html:312 +#: instances/models.py:251 instances/templates/create_instance_w2.html:312 #: instances/templates/instances/settings_tab.html:159 msgid "CD-ROM" msgstr "CD-ROM" -#: instances/models.py:252 +#: instances/models.py:253 msgid "NIC" msgstr "NIC" @@ -4232,7 +4245,7 @@ msgid "Add instance network form" msgstr "Sanal makine ağı ekleme formu" #: instances/templates/add_instance_network_block.html:16 -#: instances/templates/allinstances.html:108 +#: instances/templates/allinstances.html:126 #: instances/templates/instances/edit_instance_volume.html:21 #: instances/templates/instances/settings_tab.html:224 #: instances/templates/instances/settings_tab.html:391 @@ -4250,7 +4263,7 @@ msgid "NWFilter" msgstr "AğFiltresi" #: instances/templates/add_instance_network_block.html:48 -#: instances/templates/allinstances.html:107 +#: instances/templates/allinstances.html:125 #: instances/templates/instances/settings_tab.html:425 #: interfaces/templates/interface.html:60 #: interfaces/templates/interface.html:121 @@ -4288,7 +4301,7 @@ msgid "Disk source" msgstr "Disk kaynağı" #: instances/templates/add_instance_volume.html:21 -#: instances/templates/create_instance_w2.html:134 instances/views.py:2707 +#: instances/templates/create_instance_w2.html:134 instances/views.py:2754 msgid "New disk" msgstr "Yeni disk" @@ -4357,68 +4370,113 @@ msgstr "Önce bir havuz seçin" msgid "Cache mode" msgstr "Önbellek modu" -#: instances/templates/allinstances.html:13 +#: instances/templates/allinstances.html:14 msgid "Find IP / MAC" msgstr "IP / MAC bul" -#: instances/templates/allinstances.html:26 +#: instances/templates/allinstances.html:27 #, python-format msgid "The panel cannot reach %(counter)s host:" msgid_plural "The panel cannot reach %(counter)s hosts:" msgstr[0] "Panel %(counter)s sunucuya ulaşamıyor:" msgstr[1] "Panel %(counter)s sunucuya ulaşamıyor:" -#: instances/templates/allinstances.html:37 +#: instances/templates/allinstances.html:38 msgid "A host of some of your virtual machines cannot be reached right now." msgstr "Bazı sanal makinelerinizin bir sunucusuna şu anda ulaşılamıyor." -#: instances/templates/allinstances.html:45 +#: instances/templates/allinstances.html:46 msgid "VM states" msgstr "Sanal makine durumları" -#: instances/templates/allinstances.html:48 storages/templates/storage.html:125 +#: instances/templates/allinstances.html:49 storages/templates/storage.html:125 msgid "All" msgstr "Tümü" -#: instances/templates/allinstances.html:58 +#: instances/templates/allinstances.html:64 +msgid "Choose the VMs shown" +msgstr "Görünen sanal makineleri seç" + +#: instances/templates/allinstances.html:66 +#, python-format +msgid "%%(count)s chosen" +msgstr "%%(count)s seçili" + +#: instances/templates/allinstances.html:67 +msgid "Power the chosen VMs" +msgstr "Seçilen sanal makinelerin gücü" + +#: instances/templates/allinstances.html:68 +#: instances/templates/instance_actions.html:17 +#: instances/templates/instance_actions.html:33 +#: interfaces/templates/interface.html:18 networks/templates/network.html:18 +#: storages/templates/storage.html:22 +msgid "Start" +msgstr "Başlat" + +#: instances/templates/allinstances.html:70 +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:70 +#: instances/templates/instance_actions.html:27 +msgid "Shut down" +msgstr "Kapat" + +#: instances/templates/allinstances.html:72 +msgid "" +"Force off the chosen VMs? They stop at once, as if unplugged, and may lose " +"unsaved data." +msgstr "" +"Seçilen sanal makineler zorla kapatılsın mı? Fişi çekilmiş gibi hemen " +"dururlar ve kaydedilmemiş veriler kaybolabilir." + +#: instances/templates/allinstances.html:72 +#: instances/templates/instance_actions.html:50 +msgid "Force off" +msgstr "Zorla kapat" + +#: instances/templates/allinstances.html:76 #, python-format msgid "%%(shown)s of %%(all)s VMs match" msgstr "%%(all)s sanal makineden %%(shown)s eşleşiyor" -#: instances/templates/allinstances.html:61 +#: instances/templates/allinstances.html:79 msgid "There are no VMs here yet." msgstr "Burada henüz sanal makine yok." -#: instances/templates/allinstances.html:70 +#: instances/templates/allinstances.html:88 msgid "No VM matches the filters." msgstr "Filtrelerle eşleşen sanal makine yok." -#: instances/templates/allinstances.html:76 +#: instances/templates/allinstances.html:94 msgid "The search did not go through. Try again." msgstr "Arama tamamlanamadı. Yeniden deneyin." -#: instances/templates/allinstances.html:77 +#: instances/templates/allinstances.html:95 msgid "No running VM reports this address." msgstr "Bu adresi bildiren çalışan sanal makine yok." -#: instances/templates/allinstances.html:78 +#: instances/templates/allinstances.html:96 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:79 +#: instances/templates/allinstances.html:97 msgid "(not registered in the panel)" msgstr "(panelde kayıtlı değil)" -#: instances/templates/allinstances.html:79 +#: instances/templates/allinstances.html:97 msgid "possible conflict" msgstr "olası çakışma" -#: instances/templates/allinstances.html:80 +#: instances/templates/allinstances.html:98 #, python-format msgid "Running VMs checked: %%(n)s." msgstr "Denetlenen çalışan sanal makine: %%(n)s." -#: instances/templates/allinstances.html:81 +#: instances/templates/allinstances.html:99 #, python-format msgid "" "%%(n)s had no connected guest agent; a static address on them cannot be seen." @@ -4426,7 +4484,7 @@ msgstr "" "%%(n)s sanal makinede bağlı konuk ajanı yoktu; bunlardaki statik adresler " "görülemez." -#: instances/templates/allinstances.html:82 +#: instances/templates/allinstances.html:100 #, python-format msgid "" "Guest agents not read (a paused VM, no answer in time, or an error): %%(n)s." @@ -4434,49 +4492,49 @@ msgstr "" "Okunamayan konuk ajanları (duraklatılmış sanal makine, zamanında yanıt yok ya" " da hata): %%(n)s." -#: instances/templates/allinstances.html:83 +#: instances/templates/allinstances.html:101 #, python-format msgid "Not reached: %%(hosts)s." msgstr "Ulaşılamadı: %%(hosts)s." -#: instances/templates/allinstances.html:84 +#: instances/templates/allinstances.html:102 #, python-format msgid "Not finished in time: %%(hosts)s." msgstr "Zamanında bitmedi: %%(hosts)s." -#: instances/templates/allinstances.html:85 +#: instances/templates/allinstances.html:103 #, python-format msgid "Read at %%(time)s." msgstr "Okunma zamanı: %%(time)s." -#: instances/templates/allinstances.html:86 +#: instances/templates/allinstances.html:104 msgid "Some of your VMs could not be checked." msgstr "Sanal makinelerinizin bazıları denetlenemedi." -#: instances/templates/allinstances.html:90 +#: instances/templates/allinstances.html:108 msgid "Find the VMs using an IP or MAC address" msgstr "Bir IP veya MAC adresini kullanan sanal makineleri bul" -#: instances/templates/allinstances.html:95 +#: instances/templates/allinstances.html:113 msgid "IP address, network or MAC address" msgstr "IP adresi, ağ veya MAC adresi" -#: instances/templates/allinstances.html:97 +#: instances/templates/allinstances.html:115 msgid "or" msgstr "veya" -#: instances/templates/allinstances.html:98 +#: instances/templates/allinstances.html:116 msgid "Find" msgstr "Bul" -#: instances/templates/allinstances.html:105 +#: instances/templates/allinstances.html:123 #: 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:106 instances/views.py:243 +#: instances/templates/allinstances.html:124 instances/views.py:247 #: interfaces/templates/interface.html:153 networks/templates/network.html:202 #: vmbackups/templates/vmbackups/index.html:18 #: vmbackups/templates/vmbackups/index.html:50 @@ -4489,7 +4547,7 @@ msgid "Collapse or expand every host" msgstr "Tüm sunucuları daralt veya genişlet" #: instances/templates/allinstances_index_grouped.html:14 -#: instances/templates/allinstances_index_nongrouped.html:12 +#: instances/templates/allinstances_index_nongrouped.html:13 msgid "Role/Disk" msgstr "Rol/Disk" @@ -4520,6 +4578,10 @@ msgstr "sunucu belleği kullanımı %%%(percent)s" msgid "Host memory in use" msgstr "Kullanımdaki sunucu belleği" +#: instances/templates/allinstances_index_nongrouped.html:6 +msgid "Chosen" +msgstr "Seçili" + #: instances/templates/create_flavors.html:11 #, python-format msgid "" @@ -4685,7 +4747,7 @@ msgstr "Özel CPU modelleri" msgid "Size (GiB)" msgstr "Boyut (GiB)" -#: instances/templates/create_instance_w2.html:161 instances/views.py:2708 +#: instances/templates/create_instance_w2.html:161 instances/views.py:2755 msgid "Existing volumes" msgstr "Mevcut birimler" @@ -4722,7 +4784,7 @@ msgstr "Aygıt" msgid "Remove" msgstr "Kaldır" -#: instances/templates/create_instance_w2.html:194 instances/views.py:2709 +#: instances/templates/create_instance_w2.html:194 instances/views.py:2756 msgid "Clone from template" msgstr "Şablondan klonla" @@ -4888,10 +4950,6 @@ msgstr "Okunuyor…" msgid "Instance actions" msgstr "Sanal makine işlemleri" -#: instances/templates/instance.html:87 -msgid "Power" -msgstr "Güç" - #: instances/templates/instance.html:90 msgid "Access" msgstr "Erişim" @@ -4917,23 +4975,12 @@ msgstr "İstatistikler" msgid "Destroy" msgstr "Sil" -#: instances/templates/instance_actions.html:17 -#: instances/templates/instance_actions.html:33 -#: interfaces/templates/interface.html:18 networks/templates/network.html:18 -#: storages/templates/storage.html:22 -msgid "Start" -msgstr "Başlat" - #: instances/templates/instance_actions.html:22 #: instances/templates/instance_actions.html:31 #: instances/templates/instances/power_tab.html:28 msgid "Resume" msgstr "Devam ettir" -#: instances/templates/instance_actions.html:27 -msgid "Shut down" -msgstr "Kapat" - #: instances/templates/instance_actions.html:39 #: interfaces/templates/interface.html:22 networks/templates/network.html:22 #: networks/templates/network.html:162 storages/templates/storage.html:26 @@ -4956,10 +5003,6 @@ msgstr "" "%(name)s zorla kapatılsın mı? Elektrik kesilmiş gibi hemen durur; konuk " "sistemin diske yazmadıkları kaybolur." -#: instances/templates/instance_actions.html:50 -msgid "Force off" -msgstr "Zorla kapat" - #: instances/templates/instance_actions.html:56 #: instances/templates/instances/power_tab.html:80 #, python-format @@ -5083,6 +5126,11 @@ msgstr "%(kind)s %(name)s yukarı taşı" msgid "Move %(kind)s %(name)s down" msgstr "%(kind)s %(name)s aşağı taşı" +#: instances/templates/instances/bulk_power_box.html:2 +#, python-format +msgid "Choose %(name)s" +msgstr "%(name)s seç" + #: instances/templates/instances/destroy_instance_form.html:4 #: instances/templates/instances/destroy_instance_form.html:7 #, python-format @@ -7026,15 +7074,15 @@ msgstr "Geçersiz MAC adresi" msgid "More MAC addresses than networks" msgstr "Ağlardan daha fazla MAC adresi" -#: instances/views.py:194 +#: instances/views.py:198 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:200 instances/views.py:234 +#: instances/views.py:204 instances/views.py:238 msgid "Too many searches are still running; try again shortly." msgstr "Çok fazla arama hâlâ çalışıyor; birazdan yeniden deneyin." -#: instances/views.py:243 interfaces/templates/interface.html:46 +#: instances/views.py:247 interfaces/templates/interface.html:46 #: networks/templates/network.html:51 #: operations/templates/operations/jobs.html:38 #: operations/templates/operations/jobs.html:62 @@ -7046,54 +7094,54 @@ msgstr "Çok fazla arama hâlâ çalışıyor; birazdan yeniden deneyin." msgid "State" msgstr "Durum" -#: instances/views.py:243 +#: instances/views.py:247 msgid "OS" msgstr "İşletim sistemi" -#: instances/views.py:243 +#: instances/views.py:247 msgid "OS family" msgstr "İşletim sistemi ailesi" -#: instances/views.py:243 +#: instances/views.py:247 msgid "IP addresses" msgstr "IP adresleri" -#: instances/views.py:244 +#: instances/views.py:248 msgid "Address sources" msgstr "Adres kaynakları" -#: instances/views.py:244 +#: instances/views.py:248 msgid "MAC addresses" msgstr "MAC adresleri" -#: instances/views.py:244 +#: instances/views.py:248 msgid "In the panel" msgstr "Panelde" -#: instances/views.py:256 +#: instances/views.py:260 msgid "yes" msgstr "evet" -#: instances/views.py:256 +#: instances/views.py:260 msgid "no" msgstr "hayır" -#: instances/views.py:258 +#: instances/views.py:262 #, python-format msgid "Created: %(time)s" msgstr "Oluşturulma: %(time)s" -#: instances/views.py:259 +#: instances/views.py:263 #, python-format msgid "VMs listed: %(n)s" msgstr "Listelenen sanal makineler: %(n)s" -#: instances/views.py:260 +#: instances/views.py:264 #, python-format msgid "Running VMs read: %(n)s" msgstr "Okunan çalışan sanal makineler: %(n)s" -#: instances/views.py:261 +#: instances/views.py:265 #, python-format msgid "" "Without a connected guest agent (a static address on them cannot be seen): " @@ -7101,7 +7149,7 @@ msgid "" msgstr "" "Bağlı konuk ajanı olmayanlar (üzerlerindeki statik adres görülemez): %(n)s" -#: instances/views.py:262 +#: instances/views.py:266 #, python-format msgid "" "Guest agents not read (a paused VM, no answer in time, or an error): %(n)s" @@ -7109,45 +7157,45 @@ msgstr "" "Okunamayan konuk ajanları (duraklatılmış VM, zamanında yanıt yok ya da hata):" " %(n)s" -#: instances/views.py:264 +#: instances/views.py:268 #, python-format msgid "Hosts not reached: %(hosts)s" msgstr "Ulaşılamayan sunucular: %(hosts)s" -#: instances/views.py:266 +#: instances/views.py:270 #, python-format msgid "Hosts not finished in time: %(hosts)s" msgstr "Zamanında bitmeyen sunucular: %(hosts)s" -#: instances/views.py:267 +#: instances/views.py:271 msgid "Coverage" msgstr "Kapsam" -#: instances/views.py:282 +#: instances/views.py:286 #, 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:288 +#: instances/views.py:292 #, 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:289 +#: instances/views.py:293 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:297 +#: instances/views.py:301 #, python-format msgid "'%(name)s' is no longer on its host." msgstr "'%(name)s' artık sunucusunda yok." -#: instances/views.py:386 +#: instances/views.py:390 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:388 +#: instances/views.py:392 msgid "" "A VM with snapshots cannot be migrated: its snapshots stay on this host. " "Delete them first." @@ -7155,7 +7203,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:390 +#: instances/views.py:394 msgid "" "A VM with host devices cannot be migrated: the destination may not have them." " Remove them first." @@ -7163,16 +7211,44 @@ msgstr "" "Sunucu aygıtları olan bir sanal makine taşınamaz: hedefte bu aygıtlar " "olmayabilir. Önce onları kaldırın." -#: instances/views.py:640 +#: instances/views.py:644 #, 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:715 instances/views.py:716 +#: instances/views.py:717 +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:720 +#, python-format +msgid "Choose at most %(count)s VMs at once" +msgstr "En fazla %(count)s sanal makine seçin" + +#: instances/views.py:727 +msgid "a chosen VM" +msgstr "seçilen bir sanal makine" + +#: instances/views.py:735 +#, 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:740 +#, 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 sanal makine kuyruğa alındı; İşler sayfası onu izliyor." +msgstr[1] "" +"%(count)s sanal makine kuyruğa alındı; İşler sayfası onları izliyor." + +#: instances/views.py:762 instances/views.py:763 msgid "The VM was moved meanwhile; try again." msgstr "Sanal makine bu arada taşındı; yeniden deneyin." -#: instances/views.py:832 +#: instances/views.py:879 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 " @@ -7185,7 +7261,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:836 +#: instances/views.py:883 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" @@ -7197,195 +7273,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:854 +#: instances/views.py:901 #, python-format msgid "Invalid disk options: %(options)s" msgstr "Geçersiz disk seçenekleri: %(options)s" -#: instances/views.py:866 instances/views.py:961 +#: instances/views.py:913 instances/views.py:1008 #, python-format msgid "Invalid options: %(options)s" msgstr "Geçersiz seçenekler: %(options)s" -#: instances/views.py:901 +#: instances/views.py:948 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:1089 +#: instances/views.py:1136 #, 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:1096 instances/views.py:1114 instances/views.py:1123 +#: instances/views.py:1143 instances/views.py:1161 instances/views.py:1170 #, python-format msgid "gstfsd error: %(err)s" msgstr "gstfsd hatası: %(err)s" -#: instances/views.py:1124 +#: instances/views.py:1171 msgid "the reply is not signed with the key" msgstr "yanıt anahtarla imzalanmamış" -#: instances/views.py:1132 +#: instances/views.py:1179 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:1140 +#: instances/views.py:1187 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:1155 +#: instances/views.py:1202 msgid "Enter a password" msgstr "Bir parola girin" -#: instances/views.py:1160 +#: instances/views.py:1207 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:1176 +#: instances/views.py:1223 msgid "Reset root password" msgstr "Root parolasını sıfırla" -#: instances/views.py:1192 +#: instances/views.py:1239 msgid "Select an SSH public key" msgstr "Bir SSH açık anahtarı seçin" -#: instances/views.py:1214 +#: instances/views.py:1261 #, python-format msgid "Installed new SSH public key %(keyname)s" msgstr "Yeni %(keyname)s SSH açık anahtarı yüklendi" -#: instances/views.py:1234 +#: instances/views.py:1281 msgid "Enter a whole number of vCPUs" msgstr "vCPU sayısı için bir tam sayı girin" -#: instances/views.py:1238 +#: instances/views.py:1285 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:1241 +#: instances/views.py:1288 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:1248 +#: instances/views.py:1295 #, 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:1256 +#: instances/views.py:1303 #, 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:1275 +#: instances/views.py:1322 msgid "Enter a whole number for memory" msgstr "Bellek için bir tam sayı girin" -#: instances/views.py:1278 +#: instances/views.py:1325 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:1282 +#: instances/views.py:1329 #, 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:1288 +#: instances/views.py:1335 #, 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:1308 +#: instances/views.py:1355 msgid "Enter disk sizes as whole GiB" msgstr "Disk boyutlarını tam GiB olarak girin" -#: instances/views.py:1312 +#: instances/views.py:1359 #, 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:1316 +#: instances/views.py:1363 #, 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:1324 +#: instances/views.py:1371 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:1333 +#: instances/views.py:1380 #, 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:1345 +#: instances/views.py:1392 #, 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:1347 +#: instances/views.py:1394 #, python-format msgid "Disk is resized: %(dev)s" msgstr "Disk boyutu değiştirildi: %(dev)s" -#: instances/views.py:1441 +#: instances/views.py:1488 msgid "The VM's machine has no PCIe slots to add" msgstr "Sanal makinenin makine tipinde eklenecek PCIe yuvası yok" -#: instances/views.py:1446 +#: instances/views.py:1493 #, python-format msgid "%(count)s PCIe slots added" msgstr "%(count)s PCIe yuvası eklendi" -#: instances/views.py:1448 +#: instances/views.py:1495 #, 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:1499 +#: instances/views.py:1546 #, python-format msgid "%(volume)s is already a disk of this VM" msgstr "%(volume)s zaten bu sanal makinenin bir diski" -#: instances/views.py:1589 +#: instances/views.py:1636 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:1594 +#: instances/views.py:1641 msgid "Volume is changed successfully." msgstr "Birim başarıyla değiştirildi." -#: instances/views.py:1614 +#: instances/views.py:1661 #, 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:1619 vrtManager/instance.py:2596 +#: instances/views.py:1666 vrtManager/instance.py:2596 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:1625 +#: instances/views.py:1672 #, 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:1640 +#: instances/views.py:1687 #, 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:1658 +#: instances/views.py:1705 #, python-format msgid "" "The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete " @@ -7394,66 +7470,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:1669 +#: instances/views.py:1716 #, 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:1697 +#: instances/views.py:1744 #, 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:1700 +#: instances/views.py:1747 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:1705 +#: instances/views.py:1752 #, 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:1786 +#: instances/views.py:1833 #, python-format msgid "Pool %(pool)s was not read again: %(err)s" msgstr "%(pool)s havuzu yeniden okunamadı: %(err)s" -#: instances/views.py:1807 +#: instances/views.py:1854 #, python-format msgid "Snapshot was not deleted: %(err)s" msgstr "Anlık görüntü silinmedi: %(err)s" -#: instances/views.py:1926 +#: instances/views.py:1973 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:1932 vrtManager/instance.py:1366 +#: instances/views.py:1979 vrtManager/instance.py:1366 msgid "Invalid Device Type for boot order" msgstr "Ön yükleme sırası için geçersiz aygıt türü" -#: instances/views.py:1943 +#: instances/views.py:1990 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:1945 +#: instances/views.py:1992 msgid "Boot order changed successfully." msgstr "Ön yükleme sırası başarıyla değiştirildi." -#: instances/views.py:1965 +#: instances/views.py:2012 msgid "The XML is empty" msgstr "XML boş" -#: instances/views.py:1969 instances/views.py:2689 +#: instances/views.py:2016 instances/views.py:2736 #, python-format msgid "The XML is not well-formed: %(error)s" msgstr "XML düzgün biçimlendirilmemiş: %(error)s" -#: instances/views.py:1971 +#: instances/views.py:2018 #, 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:1975 +#: instances/views.py:2022 msgid "" "The definition has changed since the editor was opened. Reload the page to " "edit the current one." @@ -7461,45 +7537,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:1991 +#: instances/views.py:2038 msgid "The XML definition was saved." msgstr "XML tanımı kaydedildi." -#: instances/views.py:1993 +#: instances/views.py:2040 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:2074 +#: instances/views.py:2121 msgid "Select one network interface to change" msgstr "Değiştirilecek bir ağ arabirimi seçin" -#: instances/views.py:2088 +#: instances/views.py:2135 #, 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:2118 +#: instances/views.py:2165 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:2120 +#: instances/views.py:2167 msgid "Network device changed" msgstr "Ağ aygıtı değiştirildi" -#: instances/views.py:2132 +#: instances/views.py:2179 msgid "No network selected" msgstr "Ağ seçilmedi" -#: instances/views.py:2137 +#: instances/views.py:2184 #, 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:2156 +#: instances/views.py:2203 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 " @@ -7509,21 +7585,21 @@ msgstr "" "aygıtı sonra ekleyin; Diskler sekmesindeki PCIe yuvaları ekle, sonraki " "başlatmadan itibaren ona boş yuvalar verir." -#: instances/views.py:2202 instances/views.py:2208 +#: instances/views.py:2249 instances/views.py:2255 msgid "The VM has it" msgstr "Sanal makinede var" -#: instances/views.py:2243 +#: instances/views.py:2290 #, 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:2264 +#: instances/views.py:2311 #, python-format msgid "The host has no PCI device %(device)s" msgstr "Sunucuda %(device)s PCI aygıtı yok" -#: instances/views.py:2282 +#: instances/views.py:2329 #, python-format msgid "" "Removal of PCI device %(address)s requested: the guest has not let it go yet;" @@ -7533,20 +7609,20 @@ msgstr "" "bırakmadı; bırakana ya da sanal makine durana kadar çalışan sanal makinede " "kalır." -#: instances/views.py:2327 instances/views.py:2357 +#: instances/views.py:2374 instances/views.py:2404 msgid "Select a network interface and a QoS direction" msgstr "Bir ağ arabirimi ve bir QoS yönü seçin" -#: instances/views.py:2330 vrtManager/network.py:470 +#: instances/views.py:2377 vrtManager/network.py:470 msgid "QoS rates must be whole numbers" msgstr "QoS hızları tam sayı olmalıdır" -#: instances/views.py:2337 networks/views.py:235 +#: instances/views.py:2384 networks/views.py:235 #, python-format msgid "%(qos_dir)s QoS is set" msgstr "%(qos_dir)s QoS ayarlandı" -#: instances/views.py:2342 +#: instances/views.py:2389 #, python-format msgid "" "%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on." @@ -7554,12 +7630,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:2364 networks/views.py:261 +#: instances/views.py:2411 networks/views.py:261 #, python-format msgid "%(qos_dir)s QoS is deleted" msgstr "%(qos_dir)s QoS silindi" -#: instances/views.py:2369 +#: instances/views.py:2416 #, python-format msgid "" "%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is " @@ -7568,21 +7644,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:2397 +#: instances/views.py:2444 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:2399 +#: instances/views.py:2446 #, python-format msgid "%(user)s is already an owner" msgstr "%(user)s zaten bir sahip" -#: instances/views.py:2464 +#: instances/views.py:2511 #, python-format msgid "Console settings were not saved: %(errors)s" msgstr "Konsol ayarları kaydedilmedi: %(errors)s" -#: instances/views.py:2486 +#: instances/views.py:2533 msgid "" "Error setting console password. You should check that your instance have an " "graphic device." @@ -7590,41 +7666,41 @@ msgstr "" "Konsol parolası ayarlanırken hata oluştu. Sanal makinenin bir grafik aygıtına" " sahip olduğundan emin olunuz." -#: instances/views.py:2533 +#: instances/views.py:2580 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:2539 +#: instances/views.py:2586 #, python-format msgid "%(quota)s: '%(instance_name)s' stays a template." msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor." -#: instances/views.py:2561 +#: instances/views.py:2608 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:2675 +#: instances/views.py:2722 msgid "The XML has no name" msgstr "XML'de ad yok" -#: instances/views.py:2693 webvirtcloud/middleware.py:157 +#: instances/views.py:2740 webvirtcloud/middleware.py:157 #, python-format msgid "libvirt Error - %(exception)s" msgstr "libvirt Hatası - %(exception)s" -#: instances/views.py:2707 +#: instances/views.py:2754 msgid "An empty disk of the size you set" msgstr "Belirlediğiniz boyutta boş bir disk" -#: instances/views.py:2708 +#: instances/views.py:2755 msgid "Volumes already in a pool" msgstr "Bir havuzda zaten bulunan birimler" -#: instances/views.py:2709 +#: instances/views.py:2756 msgid "A copy of a template volume" msgstr "Bir şablon biriminin kopyası" -#: instances/views.py:2799 +#: instances/views.py:2846 msgid "" "This host has no running storage pool for the VM's disks: add or start one on" " its Storage page." @@ -7632,29 +7708,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:2801 +#: instances/views.py:2848 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:2833 +#: instances/views.py:2880 #, 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:2862 +#: instances/views.py:2909 msgid "Flavor Created" msgstr "Flavor Oluşturuldu" -#: instances/views.py:2870 +#: instances/views.py:2917 msgid "Create Flavor" msgstr "Kullanıcı Oluştur" -#: instances/views.py:2882 +#: instances/views.py:2929 msgid "Flavor Deleted" msgstr "Flavor Silindi" -#: instances/views.py:2888 +#: instances/views.py:2935 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 9c4acabb..bb4543db 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 df4f8593..7b0f2a80 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 07:56+0000\n" +"POT-Creation-Date: 2026-11-20 08:26+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -67,7 +67,7 @@ msgstr "无效的密钥" #: computes/templates/computes/instances.html:53 #: instances/templates/add_instance_volume.html:39 #: instances/templates/allinstances_index_grouped.html:11 -#: instances/templates/allinstances_index_nongrouped.html:6 +#: instances/templates/allinstances_index_nongrouped.html:7 #: instances/templates/create_instance_w2.html:42 #: interfaces/templates/interface.html:119 networks/templates/network.html:145 #: networks/templates/network.html:373 nwfilters/templates/nwfilters.html:29 @@ -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:267 vmbackups/templates/vmbackups/policies.html:17 +#: instances/views.py:271 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:109 -#: instances/templates/allinstances_index_nongrouped.html:8 +#: instances/templates/allinstances.html:127 +#: instances/templates/allinstances_index_nongrouped.html:9 #: instances/templates/create_steps.html:6 -#: instances/templates/create_steps.html:8 instances/views.py:243 +#: instances/templates/create_steps.html:8 instances/views.py:247 #: operations/templates/operations/jobs.html:24 msgid "Host" msgstr "主机" @@ -687,7 +687,7 @@ msgstr "可以备份虚拟机" msgid "Can clone instances" msgstr "可克隆虚拟机" -#: admin/forms.py:26 instances/models.py:451 +#: admin/forms.py:26 instances/models.py:452 msgid "Can access console without password" msgstr "可无密码访问控制台" @@ -769,10 +769,10 @@ msgstr "NEW_USER_DEFAULT_INSTANCES:%(name)s 已有所有者,且只允许一 #: admin/forms.py:222 computes/templates/computes/list.html:63 #: computes/templates/overview.html:102 instances/forms.py:15 #: instances/templates/allinstances_index_grouped.html:16 -#: instances/templates/allinstances_index_nongrouped.html:14 +#: 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:873 instances/views.py:243 +#: instances/templates/instances/settings_tab.html:873 instances/views.py:247 msgid "vCPUs" msgstr "vCPU" @@ -782,7 +782,7 @@ msgstr "vCPU" #: computes/templates/computes/list.html:64 #: computes/templates/overview.html:110 computes/templates/overview.html:194 #: instances/templates/allinstances_index_grouped.html:17 -#: instances/templates/allinstances_index_nongrouped.html:15 +#: instances/templates/allinstances_index_nongrouped.html:16 #: instances/templates/create_inst_block.html:40 #: instances/templates/instance.html:67 #: instances/templates/instances/resize_tab.html:18 @@ -790,7 +790,7 @@ msgstr "vCPU" msgid "Memory" msgstr "内存" -#: admin/forms.py:224 instances/models.py:248 +#: admin/forms.py:224 instances/models.py:249 #: instances/templates/create_instance_w2.html:118 #: instances/templates/instances/settings_tab.html:25 #: instances/templates/instances/stats_tab.html:53 vmbackups/forms.py:57 @@ -862,7 +862,7 @@ msgstr "获得这些权限的用户。" #: admin/templates/admin/logs.html:26 admin/templates/admin/tag_list.html:18 #: admin/templates/admin/tombstone_list.html:20 #: admin/templates/admin/user_list.html:20 -#: instances/templates/allinstances.html:11 networks/templates/network.html:130 +#: instances/templates/allinstances.html:12 networks/templates/network.html:130 #: nodedevs/templates/nodedevs.html:22 nwfilters/templates/nwfilters.html:23 #: templates/search_block.html:3 virtsecrets/templates/secrets.html:23 msgid "Search" @@ -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:491 logs/views.py:18 +#: instances/views.py:495 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:953 instances/views.py:244 +#: instances/templates/instances/settings_tab.html:953 instances/views.py:248 #: templates/common/tag_filter.html:6 templates/navbar.html:39 msgid "Tags" msgstr "标签" @@ -1036,7 +1036,7 @@ msgstr "主机" #: computes/templates/computes/instances.html:58 #: computes/templates/computes/list.html:65 #: instances/templates/allinstances_index_grouped.html:18 -#: instances/templates/allinstances_index_nongrouped.html:16 +#: instances/templates/allinstances_index_nongrouped.html:17 #: instances/templates/instances/settings_tab.html:469 #: instances/templates/instances/settings_tab.html:504 #: networks/templates/network.html:146 networks/templates/network.html:204 @@ -1089,7 +1089,7 @@ msgstr "受保护" msgid "Left" msgstr "已离开" -#: admin/templates/admin/tombstone_list.html:36 instances/views.py:244 +#: admin/templates/admin/tombstone_list.html:36 instances/views.py:248 msgid "Owners" msgstr "所有者" @@ -2467,7 +2467,7 @@ msgstr "不迁移其虚拟机,直接将主机置于维护状态?" msgid "Put in maintenance without migrating" msgstr "不迁移,直接进入维护" -#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:384 +#: computes/templates/computes/bulk_migrate.html:26 instances/views.py:388 msgid "There is no other host to migrate to." msgstr "没有其他可迁移到的主机。" @@ -2502,7 +2502,7 @@ msgstr "同时迁移已关机的虚拟机" #: computes/templates/computes/bulk_migrate.html:72 #: computes/templates/computes/instances.html:55 #: instances/templates/allinstances_index_grouped.html:12 -#: instances/templates/allinstances_index_nongrouped.html:10 +#: instances/templates/allinstances_index_nongrouped.html:11 msgid "Status" msgstr "状态" @@ -2688,8 +2688,8 @@ msgstr "概览" #: computes/templates/computes/host_nav.html:12 #: computes/templates/computes/instances.html:6 #: computes/templates/computes/instances.html:7 -#: computes/templates/overview.html:96 instances/templates/allinstances.html:4 -#: instances/templates/allinstances.html:5 +#: computes/templates/overview.html:96 instances/templates/allinstances.html:5 +#: instances/templates/allinstances.html:6 #: instances/templates/instances/host_link.html:7 #: instances/templates/instances/host_link.html:9 templates/navbar.html:14 msgid "Instances" @@ -2831,7 +2831,7 @@ msgid "No host matches the filters." msgstr "没有主机匹配这些筛选条件。" #: computes/templates/computes/list.html:128 -#: instances/templates/allinstances.html:71 +#: instances/templates/allinstances.html:89 msgid "Clear the filters" msgstr "清除筛选" @@ -3241,8 +3241,8 @@ msgstr "连接" #: instances/templates/add_instance_network_block.html:11 #: instances/templates/add_instance_owner_block.html:11 #: instances/templates/add_instance_volume.html:15 -#: instances/templates/allinstances.html:32 -#: instances/templates/allinstances.html:91 +#: instances/templates/allinstances.html:33 +#: instances/templates/allinstances.html:109 #: instances/templates/create_inst_block.html:12 #: instances/templates/create_instance_w2.html:367 #: instances/templates/instances/edit_instance_volume.html:13 @@ -3337,12 +3337,13 @@ msgid "" msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。" #: instances/api/viewsets.py:160 instances/api/viewsets.py:178 -#: instances/views.py:869 instances/views.py:891 instances/views.py:1881 +#: instances/jobs.py:1573 instances/views.py:916 instances/views.py:938 +#: instances/views.py:1928 msgid "Templates cannot be started." msgstr "模板无法启动。" #: instances/forms.py:14 instances/templates/create_instance_w2.html:69 -#: instances/templates/instances/settings_tab.html:877 instances/views.py:243 +#: instances/templates/instances/settings_tab.html:877 instances/views.py:247 msgid "Memory (MiB)" msgstr "内存(MiB)" @@ -3423,457 +3424,469 @@ msgstr "控制台监听的不只是 localhost;只有管理员可以移除其 msgid "The name of the virtual machine must not contain any special characters" msgstr "虚拟机名称不能包含任何特殊字符" -#: instances/jobs.py:73 vmbackups/jobs.py:143 +#: instances/jobs.py:74 vmbackups/jobs.py:143 msgid "The VM moved to another compute after the job was queued" msgstr "任务排队后,虚拟机已移到另一个计算节点" -#: instances/jobs.py:79 +#: instances/jobs.py:80 #, python-format msgid "" "%(vm)s is protected: a superuser turns its protection off on its Settings tab" " first" msgstr "%(vm)s 受保护:须先由超级用户在其“设置”选项卡中关闭保护" -#: instances/jobs.py:154 +#: instances/jobs.py:155 msgid "Enter a whole number of vCPUs for the clone" msgstr "请为克隆输入整数个 vCPU" -#: instances/jobs.py:156 +#: instances/jobs.py:157 msgid "Enter a whole number of memory (MiB) for the clone" msgstr "请为克隆输入整数的内存(MiB)" -#: instances/jobs.py:183 +#: instances/jobs.py:184 msgid "Choose the clone's name from the list of free names" msgstr "请从可用名称列表中选择克隆的名称" -#: instances/jobs.py:211 +#: instances/jobs.py:212 #, python-format msgid "%(quota)s: cannot create '%(clone_name)s'." msgstr "%(quota)s:无法创建“%(clone_name)s”。" -#: instances/jobs.py:214 instances/jobs.py:654 vmbackups/jobs.py:908 +#: instances/jobs.py:215 instances/jobs.py:655 vmbackups/jobs.py:908 #, python-format msgid "Instance '%(clone_name)s' already exists!" msgstr "虚拟机 '%(clone_name)s' 已存在!" -#: instances/jobs.py:216 vmbackups/jobs.py:910 +#: instances/jobs.py:217 vmbackups/jobs.py:910 #, python-format msgid "Instance name '%(clone_name)s' is longer than 64 characters" msgstr "虚拟机名称“%(clone_name)s”超过 64 个字符" -#: instances/jobs.py:219 vmbackups/jobs.py:912 +#: instances/jobs.py:220 vmbackups/jobs.py:912 #, python-format msgid "Instance name '%(clone_name)s' contains invalid characters!" msgstr "虚拟机名称 '%(clone_name)s' 包含无效字符!" -#: instances/jobs.py:222 +#: instances/jobs.py:223 #, python-format msgid "Instance MAC '%(clone_mac)s' invalid format!" msgstr "虚拟机 MAC '%(clone_mac)s' 格式无效!" -#: instances/jobs.py:229 +#: instances/jobs.py:230 #, python-format msgid "MAC address %(mac)s is the VM's or another NIC's of the clone" msgstr "MAC 地址 %(mac)s 已属于该虚拟机或克隆的另一个网卡" -#: instances/jobs.py:232 +#: instances/jobs.py:233 #, python-format msgid "Disk name '%(disk_name)s' contains invalid characters!" msgstr "磁盘名称 '%(disk_name)s' 包含无效字符!" -#: instances/jobs.py:253 +#: instances/jobs.py:254 #, python-format msgid "The clone is made, but not as asked: %(error)s" msgstr "克隆已创建,但与要求不符:%(error)s" -#: instances/jobs.py:332 +#: instances/jobs.py:333 msgid "The VM was not defined and no volume of it was left." msgstr "虚拟机未定义,也没有留下它的卷。" -#: instances/jobs.py:334 +#: instances/jobs.py:335 #, python-format msgid "" "The VM was not defined; check these volumes, then resolve this job: " "%(volumes)s" msgstr "虚拟机未定义;请检查这些卷,然后处理此任务:%(volumes)s" -#: instances/jobs.py:355 +#: instances/jobs.py:356 msgid "Delete snapshot" msgstr "删除快照" -#: instances/jobs.py:365 vrtManager/instance.py:2586 +#: instances/jobs.py:366 vrtManager/instance.py:2586 #, python-format msgid "The VM has no external snapshot named %(name)s" msgstr "虚拟机没有名为 %(name)s 的外部快照" -#: instances/jobs.py:378 +#: instances/jobs.py:379 msgid "Merging the snapshot" msgstr "正在合并快照" -#: instances/jobs.py:397 +#: instances/jobs.py:398 msgid "The VM is no longer on its compute" msgstr "虚拟机已不在其计算节点上" -#: instances/jobs.py:400 +#: instances/jobs.py:401 msgid "libvirt is still merging the snapshot" msgstr "libvirt 仍在合并快照" -#: instances/jobs.py:408 +#: instances/jobs.py:409 msgid "" "The snapshot is still listed and no merge runs. It cannot be told whether the" " disks changed; check the VM before deleting the snapshot again or reverting " "to it." msgstr "快照仍在列表中,且没有正在运行的合并。无法判断磁盘是否已更改;再次删除该快照或恢复到它之前,请检查虚拟机。" -#: instances/jobs.py:415 +#: instances/jobs.py:416 msgid "The VM is no longer on the compute the job ran on" msgstr "虚拟机已不在运行该任务的计算节点上" -#: instances/jobs.py:421 +#: instances/jobs.py:422 msgid "Take snapshot" msgstr "创建快照" -#: instances/jobs.py:433 instances/jobs.py:442 vrtManager/instance.py:2175 +#: instances/jobs.py:434 instances/jobs.py:443 vrtManager/instance.py:2175 #, python-format msgid "A snapshot named %(name)s already exists" msgstr "名为 %(name)s 的快照已存在" -#: instances/jobs.py:448 +#: instances/jobs.py:449 msgid "Taking the snapshot" msgstr "正在创建快照" -#: instances/jobs.py:461 +#: instances/jobs.py:462 msgid "libvirt is still taking the snapshot" msgstr "libvirt 仍在创建快照" -#: instances/jobs.py:464 +#: instances/jobs.py:465 msgid "The snapshot was not taken" msgstr "未创建快照" -#: instances/jobs.py:492 +#: instances/jobs.py:493 #, python-format msgid "" "Snapshot %(name)s does not record the VM's vCPUs and memory: the quota cannot" " be checked." msgstr "快照“%(name)s”未记录虚拟机的 vCPU 和内存:无法检查配额。" -#: instances/jobs.py:502 +#: instances/jobs.py:503 #, python-format msgid "%(quota)s: cannot revert to snapshot %(name)s." msgstr "%(quota)s:无法恢复到快照“%(name)s”。" -#: instances/jobs.py:521 +#: instances/jobs.py:522 msgid "Revert snapshot" msgstr "恢复快照" -#: instances/jobs.py:564 +#: instances/jobs.py:565 msgid "Reverting the VM" msgstr "正在恢复虚拟机" -#: instances/jobs.py:575 +#: instances/jobs.py:576 msgid "libvirt is still reverting the VM" msgstr "libvirt 仍在恢复虚拟机" -#: instances/jobs.py:579 +#: instances/jobs.py:580 msgid "" "It cannot be told whether the VM was reverted; check it, then revert again or" " resolve this job." msgstr "无法判断虚拟机是否已恢复;请检查后再次恢复,或处理此任务。" -#: instances/jobs.py:596 +#: instances/jobs.py:597 msgid "The VM must be running, paused or shut off to be cloned" msgstr "虚拟机必须处于运行、暂停或关机状态才能克隆" -#: instances/jobs.py:597 +#: instances/jobs.py:598 #, python-format msgid "" "The guest's file systems could not be thawed (%(error)s); thaw them with: " "virsh domfsthaw %(vm)s" msgstr "无法解冻客户机的文件系统(%(error)s);请用以下命令解冻:virsh domfsthaw %(vm)s" -#: instances/jobs.py:598 +#: instances/jobs.py:599 #, python-format msgid "" "%(vm)s is paused and its file systems may still be frozen: resume it, then " "thaw them with: virsh domfsthaw %(vm)s" msgstr "%(vm)s 已暂停,其文件系统可能仍处于冻结状态:请先恢复它,然后用以下命令解冻:virsh domfsthaw %(vm)s" -#: instances/jobs.py:621 +#: instances/jobs.py:622 msgid "Clone VM" msgstr "克隆虚拟机" -#: instances/jobs.py:664 instances/jobs.py:671 instances/jobs.py:1013 +#: instances/jobs.py:665 instances/jobs.py:672 instances/jobs.py:1014 #: vmbackups/jobs.py:369 vmbackups/jobs.py:1075 vmbackups/jobs.py:1281 #: vmbackups/jobs.py:1456 msgid "Copying disks" msgstr "正在复制磁盘" -#: instances/jobs.py:723 vmbackups/jobs.py:453 +#: instances/jobs.py:724 vmbackups/jobs.py:453 msgid "libvirt has no result of the copy" msgstr "libvirt 没有复制的结果" -#: instances/jobs.py:734 +#: instances/jobs.py:735 #, python-format msgid "" "The copy failed: %(error)s. The guest's file systems could not be thawed " "(%(thaw)s); thaw them with: virsh domfsthaw %(vm)s" msgstr "复制失败:%(error)s。无法解冻客户机的文件系统(%(thaw)s);请用以下命令解冻:virsh domfsthaw %(vm)s" -#: instances/jobs.py:737 instances/jobs.py:829 vmbackups/jobs.py:461 +#: instances/jobs.py:738 instances/jobs.py:830 vmbackups/jobs.py:461 msgid "The copy failed" msgstr "复制失败" -#: instances/jobs.py:764 +#: instances/jobs.py:765 #, python-format msgid "" "The VM is no longer on the compute the job ran on; check these volumes, then " "resolve this job: %(volumes)s" msgstr "虚拟机已不在运行该任务的计算节点上;请检查这些卷,然后处理此任务:%(volumes)s" -#: instances/jobs.py:805 +#: instances/jobs.py:806 #, python-format msgid "" "A volume of the clone was being created; check these volumes, then resolve " "this job: %(volumes)s" msgstr "克隆的一个卷正在创建中;请检查这些卷,然后处理此任务:%(volumes)s" -#: instances/jobs.py:809 vmbackups/jobs.py:498 +#: instances/jobs.py:810 vmbackups/jobs.py:498 msgid "The job stopped before the copy started" msgstr "任务在复制开始前停止" -#: instances/jobs.py:816 vmbackups/jobs.py:546 +#: instances/jobs.py:817 vmbackups/jobs.py:546 msgid "libvirt is still copying the disks" msgstr "libvirt 仍在复制磁盘" -#: instances/jobs.py:819 +#: instances/jobs.py:820 #, python-format msgid "" "Another backup runs on the VM; check these volumes, then resolve this job: " "%(volumes)s" msgstr "虚拟机上正在运行另一个备份;请检查这些卷,然后处理此任务:%(volumes)s" -#: instances/jobs.py:824 +#: instances/jobs.py:825 #, python-format msgid "" "libvirt has no result of the copy; check these volumes, then resolve this " "job: %(volumes)s" msgstr "libvirt 没有复制的结果;请检查这些卷,然后处理此任务:%(volumes)s" -#: instances/jobs.py:836 +#: instances/jobs.py:837 #, python-format msgid "" "The disks were copied, but the clone could not be defined: %(error)s; check " "these volumes, then resolve this job: %(volumes)s" msgstr "磁盘已复制,但无法定义克隆:%(error)s;请检查这些卷,然后处理此任务:%(volumes)s" -#: instances/jobs.py:866 +#: instances/jobs.py:867 msgid "Image has already exist. Please check volumes or change instance name" msgstr "镜像已存在。请检查卷或更改虚拟机名称" -#: instances/jobs.py:874 +#: instances/jobs.py:875 msgid "Each network card needs a network" msgstr "每个网卡都需要一个网络" -#: instances/jobs.py:876 vrtManager/backup.py:387 vrtManager/instance.py:3002 +#: instances/jobs.py:877 vrtManager/backup.py:387 vrtManager/instance.py:3002 #, python-format msgid "This host has no network %(name)s" msgstr "此主机没有网络 %(name)s" -#: instances/jobs.py:878 vrtManager/backup.py:391 vrtManager/instance.py:3004 +#: instances/jobs.py:879 vrtManager/backup.py:391 vrtManager/instance.py:3004 #, python-format msgid "This host has no network filter %(name)s" msgstr "此主机没有网络过滤器 %(name)s" -#: instances/jobs.py:894 +#: instances/jobs.py:895 #, python-format msgid "MAC address %(mac)s is a NIC's of another VM on this host" msgstr "MAC 地址 %(mac)s 已属于此主机上另一台虚拟机的网卡" -#: instances/jobs.py:903 +#: instances/jobs.py:904 #, python-format msgid "" "Disk cache %(cache)s does not go with disk I/O native, which Settings set: " "choose none or directsync" msgstr "磁盘缓存 %(cache)s 与设置中的原生 (native) 磁盘 I/O 不兼容:请选择 none 或 directsync" -#: instances/jobs.py:911 instances/templates/create_instance_w1.html:60 +#: instances/jobs.py:912 instances/templates/create_instance_w1.html:60 #: instances/templates/create_instance_w2.html:356 msgid "Create VM" msgstr "创建虚拟机" -#: instances/jobs.py:936 instances/jobs.py:983 instances/views.py:2677 +#: instances/jobs.py:937 instances/jobs.py:984 instances/views.py:2724 msgid "A virtual machine with this name already exists" msgstr "同名虚拟机已存在" -#: instances/jobs.py:938 instances/jobs.py:978 +#: instances/jobs.py:939 instances/jobs.py:979 msgid "There is an instance with same name. Remove it and try again!" msgstr "已存在同名虚拟机。请删除后重试!" -#: instances/jobs.py:941 +#: instances/jobs.py:942 msgid "First you need to create or select an image" msgstr "请先创建或选择一个镜像" -#: instances/jobs.py:943 +#: instances/jobs.py:944 msgid "Choose one disk source: a new disk, existing volumes or a template" msgstr "请选择一种磁盘来源:新磁盘、现有卷或模板" -#: instances/jobs.py:946 +#: instances/jobs.py:947 msgid "Invalid cache mode" msgstr "无效的缓存模式" -#: instances/jobs.py:949 +#: instances/jobs.py:950 #, python-format msgid "This host offers no CPU mode or model %(mode)s" msgstr "此主机不提供 CPU 模式或型号 %(mode)s" -#: instances/jobs.py:951 +#: instances/jobs.py:952 #, python-format msgid "A %(arch)s VM cannot have a %(model)s network card" msgstr "%(arch)s 虚拟机不能使用 %(model)s 网卡" -#: instances/jobs.py:953 +#: instances/jobs.py:954 #, python-format msgid "A CD-ROM cannot use the %(bus)s bus" msgstr "CD-ROM 不能使用 %(bus)s 总线" -#: instances/jobs.py:956 +#: instances/jobs.py:957 msgid "The cloud-init seed is read from a CD-ROM: choose its bus" msgstr "cloud-init 种子从 CD-ROM 读取:请选择其总线" -#: instances/jobs.py:959 +#: instances/jobs.py:960 msgid "The cloud-init seed needs a directory storage pool for the disk" msgstr "cloud-init 种子需要为磁盘使用目录类型的存储池" -#: instances/jobs.py:963 +#: instances/jobs.py:964 #, python-format msgid "This host offers no firmware %(firmware)s" msgstr "此主机不提供固件 %(firmware)s" -#: instances/jobs.py:965 vrtManager/instance.py:3352 +#: instances/jobs.py:966 vrtManager/instance.py:3352 msgid "This host offers no TPM 2.0: install swtpm on it" msgstr "此主机不提供 TPM 2.0:请在主机上安装 swtpm" -#: instances/jobs.py:1033 +#: instances/jobs.py:1034 msgid "Writing the cloud-init seed" msgstr "正在写入 cloud-init 种子" -#: instances/jobs.py:1040 +#: instances/jobs.py:1041 msgid "Defining the VM" msgstr "正在定义虚拟机" -#: instances/jobs.py:1082 +#: instances/jobs.py:1083 #, python-format msgid "" "The panel failed unexpectedly; its log has the details. Remove these volumes " "by hand: %(volumes)s" msgstr "面板发生意外错误;详细信息见面板日志。请手动删除这些卷:%(volumes)s" -#: instances/jobs.py:1086 +#: instances/jobs.py:1087 #, python-format msgid "%(error)s. Remove these volumes by hand: %(volumes)s" msgstr "%(error)s。请手动删除这些卷:%(volumes)s" -#: instances/jobs.py:1114 +#: instances/jobs.py:1115 #, python-format msgid "The instance is already on %(compute)s" msgstr "虚拟机已在 %(compute)s 上" -#: instances/jobs.py:1117 +#: instances/jobs.py:1118 #, python-format msgid "%(compute)s is not reachable" msgstr "无法连接 %(compute)s" -#: instances/jobs.py:1119 +#: instances/jobs.py:1120 #, python-format msgid "%(compute)s is the VM's own host under another name" msgstr "%(compute)s 是该虚拟机所在主机的另一个名称" -#: instances/jobs.py:1176 +#: instances/jobs.py:1177 #, python-format msgid "" "The VM migrated, but autostart could not be set on the destination: %(error)s" msgstr "虚拟机已迁移,但无法在目标主机上设置自动启动:%(error)s" -#: instances/jobs.py:1183 +#: instances/jobs.py:1184 #, python-format msgid "The VM migrated, but its NVRAM file stays on the source: %(error)s" msgstr "虚拟机已迁移,但其 NVRAM 文件仍留在源主机上:%(error)s" -#: instances/jobs.py:1191 +#: instances/jobs.py:1192 msgid "Migrate VM" msgstr "迁移虚拟机" -#: instances/jobs.py:1245 +#: instances/jobs.py:1246 msgid "Migrating the VM" msgstr "正在迁移虚拟机" -#: instances/jobs.py:1294 +#: instances/jobs.py:1295 msgid "libvirt is still migrating the VM" msgstr "libvirt 仍在迁移虚拟机" -#: instances/jobs.py:1306 +#: instances/jobs.py:1307 msgid "The VM stayed on the source host" msgstr "虚拟机留在了源主机上" -#: instances/jobs.py:1308 +#: instances/jobs.py:1309 msgid "" "The VM is on both computes or on neither; check them, then resolve this job." msgstr "虚拟机同时位于两个计算节点上,或都不在;请检查后处理此任务。" -#: instances/jobs.py:1327 +#: instances/jobs.py:1328 msgid "Move disk" msgstr "移动磁盘" -#: instances/jobs.py:1334 +#: instances/jobs.py:1335 msgid "Choose a disk of the VM" msgstr "请选择虚拟机的一个磁盘" -#: instances/jobs.py:1358 +#: instances/jobs.py:1359 msgid "Copying the disk" msgstr "正在复制磁盘" -#: instances/jobs.py:1400 +#: instances/jobs.py:1401 #, python-format msgid "Another block job runs on %(dev)s; check the VM" msgstr "%(dev)s 上正在运行另一个块任务;请检查虚拟机" -#: instances/jobs.py:1406 +#: instances/jobs.py:1407 #, python-format msgid "The disk stayed in %(path)s; remove %(dest)s if it is there" msgstr "磁盘仍在 %(path)s;如果 %(dest)s 存在,请将其删除" -#: instances/jobs.py:1408 +#: instances/jobs.py:1409 #, python-format msgid "The definitions of %(dev)s name %(paths)s; check the VM" msgstr "%(dev)s 的定义指向 %(paths)s;请检查虚拟机" -#: instances/jobs.py:1415 +#: instances/jobs.py:1416 #, python-format msgid "Disk %(path)s was kept: a disk file that stays needs it" msgstr "磁盘 %(path)s 已保留:某个保留的磁盘文件依赖它" -#: instances/jobs.py:1416 +#: instances/jobs.py:1417 #, python-format msgid "The VM is removed, but disk %(path)s was not deleted: %(err)s" msgstr "虚拟机已删除,但磁盘 %(path)s 未被删除:%(err)s" -#: instances/jobs.py:1417 +#: instances/jobs.py:1418 #, python-format msgid "Disk %(path)s is used by another VM and was kept" msgstr "磁盘 %(path)s 正被另一台虚拟机使用,已保留" -#: instances/jobs.py:1471 +#: instances/jobs.py:1472 msgid "Delete VM" msgstr "删除虚拟机" -#: instances/jobs.py:1501 +#: instances/jobs.py:1502 msgid "Deleting the VM" msgstr "正在删除虚拟机" -#: instances/jobs.py:1514 +#: instances/jobs.py:1515 msgid "The VM was not deleted; it may have been shut off" msgstr "虚拟机未被删除;它可能已被关闭" +#: instances/jobs.py:1549 instances/templates/instance.html:87 +msgid "Power" +msgstr "电源" + +#: instances/jobs.py:1587 +msgid "The job stopped before the VM was powered" +msgstr "任务在对虚拟机执行电源操作前停止" + +#: instances/jobs.py:1589 +msgid "The job stopped while the VM was powered: check its state" +msgstr "任务在电源操作期间停止:请检查虚拟机状态" + #: instances/models.py:16 msgid "label" msgstr "标签" @@ -3910,12 +3923,12 @@ msgstr "创建时间" msgid "drbd" msgstr "drbd" -#: instances/models.py:250 instances/templates/create_instance_w2.html:312 +#: instances/models.py:251 instances/templates/create_instance_w2.html:312 #: instances/templates/instances/settings_tab.html:159 msgid "CD-ROM" msgstr "CD-ROM" -#: instances/models.py:252 +#: instances/models.py:253 msgid "NIC" msgstr "网卡" @@ -3998,7 +4011,7 @@ msgid "Add instance network form" msgstr "添加虚拟机网络表单" #: instances/templates/add_instance_network_block.html:16 -#: instances/templates/allinstances.html:108 +#: instances/templates/allinstances.html:126 #: instances/templates/instances/edit_instance_volume.html:21 #: instances/templates/instances/settings_tab.html:224 #: instances/templates/instances/settings_tab.html:391 @@ -4016,7 +4029,7 @@ msgid "NWFilter" msgstr "网络过滤器" #: instances/templates/add_instance_network_block.html:48 -#: instances/templates/allinstances.html:107 +#: instances/templates/allinstances.html:125 #: instances/templates/instances/settings_tab.html:425 #: interfaces/templates/interface.html:60 #: interfaces/templates/interface.html:121 @@ -4053,7 +4066,7 @@ msgid "Disk source" msgstr "磁盘来源" #: instances/templates/add_instance_volume.html:21 -#: instances/templates/create_instance_w2.html:134 instances/views.py:2707 +#: instances/templates/create_instance_w2.html:134 instances/views.py:2754 msgid "New disk" msgstr "新磁盘" @@ -4122,121 +4135,162 @@ msgstr "请先选择存储池" msgid "Cache mode" msgstr "缓存模式" -#: instances/templates/allinstances.html:13 +#: instances/templates/allinstances.html:14 msgid "Find IP / MAC" msgstr "查找 IP / MAC" -#: instances/templates/allinstances.html:26 +#: instances/templates/allinstances.html:27 #, python-format msgid "The panel cannot reach %(counter)s host:" msgid_plural "The panel cannot reach %(counter)s hosts:" msgstr[0] "面板无法连接 %(counter)s 台主机:" -#: instances/templates/allinstances.html:37 +#: instances/templates/allinstances.html:38 msgid "A host of some of your virtual machines cannot be reached right now." msgstr "您的部分虚拟机所在的主机当前无法连接。" -#: instances/templates/allinstances.html:45 +#: instances/templates/allinstances.html:46 msgid "VM states" msgstr "虚拟机状态" -#: instances/templates/allinstances.html:48 storages/templates/storage.html:125 +#: instances/templates/allinstances.html:49 storages/templates/storage.html:125 msgid "All" msgstr "全部" -#: instances/templates/allinstances.html:58 +#: instances/templates/allinstances.html:64 +msgid "Choose the VMs shown" +msgstr "选择显示的虚拟机" + +#: instances/templates/allinstances.html:66 +#, python-format +msgid "%%(count)s chosen" +msgstr "已选 %%(count)s 台" + +#: instances/templates/allinstances.html:67 +msgid "Power the chosen VMs" +msgstr "所选虚拟机的电源" + +#: instances/templates/allinstances.html:68 +#: instances/templates/instance_actions.html:17 +#: instances/templates/instance_actions.html:33 +#: interfaces/templates/interface.html:18 networks/templates/network.html:18 +#: storages/templates/storage.html:22 +msgid "Start" +msgstr "启动" + +#: instances/templates/allinstances.html:70 +msgid "Shut down the chosen VMs? Their guests are asked to power off." +msgstr "关闭所选虚拟机?将请求其客户机关机。" + +#: instances/templates/allinstances.html:70 +#: instances/templates/instance_actions.html:27 +msgid "Shut down" +msgstr "关机" + +#: instances/templates/allinstances.html:72 +msgid "" +"Force off the chosen VMs? They stop at once, as if unplugged, and may lose " +"unsaved data." +msgstr "强制关闭所选虚拟机?它们会像断电一样立即停止,可能丢失未保存的数据。" + +#: instances/templates/allinstances.html:72 +#: instances/templates/instance_actions.html:50 +msgid "Force off" +msgstr "强制关闭" + +#: instances/templates/allinstances.html:76 #, python-format msgid "%%(shown)s of %%(all)s VMs match" msgstr "%%(shown)s / %%(all)s 台虚拟机匹配" -#: instances/templates/allinstances.html:61 +#: instances/templates/allinstances.html:79 msgid "There are no VMs here yet." msgstr "这里还没有虚拟机。" -#: instances/templates/allinstances.html:70 +#: instances/templates/allinstances.html:88 msgid "No VM matches the filters." msgstr "没有虚拟机匹配这些筛选条件。" -#: instances/templates/allinstances.html:76 +#: instances/templates/allinstances.html:94 msgid "The search did not go through. Try again." msgstr "搜索未完成。请重试。" -#: instances/templates/allinstances.html:77 +#: instances/templates/allinstances.html:95 msgid "No running VM reports this address." msgstr "没有运行中的虚拟机报告此地址。" -#: instances/templates/allinstances.html:78 +#: instances/templates/allinstances.html:96 msgid "No VM has a network card with this MAC address." msgstr "没有虚拟机的网卡使用此 MAC 地址。" -#: instances/templates/allinstances.html:79 +#: instances/templates/allinstances.html:97 msgid "(not registered in the panel)" msgstr "(未在面板中注册)" -#: instances/templates/allinstances.html:79 +#: instances/templates/allinstances.html:97 msgid "possible conflict" msgstr "可能冲突" -#: instances/templates/allinstances.html:80 +#: instances/templates/allinstances.html:98 #, python-format msgid "Running VMs checked: %%(n)s." msgstr "已检查的运行中虚拟机:%%(n)s。" -#: instances/templates/allinstances.html:81 +#: instances/templates/allinstances.html:99 #, 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:82 +#: instances/templates/allinstances.html:100 #, 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:83 +#: instances/templates/allinstances.html:101 #, python-format msgid "Not reached: %%(hosts)s." msgstr "未连接:%%(hosts)s。" -#: instances/templates/allinstances.html:84 +#: instances/templates/allinstances.html:102 #, python-format msgid "Not finished in time: %%(hosts)s." msgstr "未及时完成:%%(hosts)s。" -#: instances/templates/allinstances.html:85 +#: instances/templates/allinstances.html:103 #, python-format msgid "Read at %%(time)s." msgstr "读取于 %%(time)s。" -#: instances/templates/allinstances.html:86 +#: instances/templates/allinstances.html:104 msgid "Some of your VMs could not be checked." msgstr "您的部分虚拟机无法检查。" -#: instances/templates/allinstances.html:90 +#: instances/templates/allinstances.html:108 msgid "Find the VMs using an IP or MAC address" msgstr "通过 IP 或 MAC 地址查找虚拟机" -#: instances/templates/allinstances.html:95 +#: instances/templates/allinstances.html:113 msgid "IP address, network or MAC address" msgstr "IP 地址、网络或 MAC 地址" -#: instances/templates/allinstances.html:97 +#: instances/templates/allinstances.html:115 msgid "or" msgstr "或" -#: instances/templates/allinstances.html:98 +#: instances/templates/allinstances.html:116 msgid "Find" msgstr "查找" -#: instances/templates/allinstances.html:105 +#: instances/templates/allinstances.html:123 #: 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:106 instances/views.py:243 +#: instances/templates/allinstances.html:124 instances/views.py:247 #: interfaces/templates/interface.html:153 networks/templates/network.html:202 #: vmbackups/templates/vmbackups/index.html:18 #: vmbackups/templates/vmbackups/index.html:50 @@ -4249,7 +4303,7 @@ msgid "Collapse or expand every host" msgstr "折叠或展开所有主机" #: instances/templates/allinstances_index_grouped.html:14 -#: instances/templates/allinstances_index_nongrouped.html:12 +#: instances/templates/allinstances_index_nongrouped.html:13 msgid "Role/Disk" msgstr "角色/磁盘" @@ -4279,6 +4333,10 @@ msgstr "主机内存已用 %(percent)s%%" msgid "Host memory in use" msgstr "已用主机内存" +#: instances/templates/allinstances_index_nongrouped.html:6 +msgid "Chosen" +msgstr "已选" + #: instances/templates/create_flavors.html:11 #, python-format msgid "" @@ -4438,7 +4496,7 @@ msgstr "自定义 CPU 型号" msgid "Size (GiB)" msgstr "大小(GiB)" -#: instances/templates/create_instance_w2.html:161 instances/views.py:2708 +#: instances/templates/create_instance_w2.html:161 instances/views.py:2755 msgid "Existing volumes" msgstr "已有卷" @@ -4475,7 +4533,7 @@ msgstr "设备" msgid "Remove" msgstr "移除" -#: instances/templates/create_instance_w2.html:194 instances/views.py:2709 +#: instances/templates/create_instance_w2.html:194 instances/views.py:2756 msgid "Clone from template" msgstr "从模板克隆" @@ -4637,10 +4695,6 @@ msgstr "正在读取…" msgid "Instance actions" msgstr "虚拟机操作" -#: instances/templates/instance.html:87 -msgid "Power" -msgstr "电源" - #: instances/templates/instance.html:90 msgid "Access" msgstr "访问" @@ -4666,23 +4720,12 @@ msgstr "统计" msgid "Destroy" msgstr "销毁" -#: instances/templates/instance_actions.html:17 -#: instances/templates/instance_actions.html:33 -#: interfaces/templates/interface.html:18 networks/templates/network.html:18 -#: storages/templates/storage.html:22 -msgid "Start" -msgstr "启动" - #: instances/templates/instance_actions.html:22 #: instances/templates/instance_actions.html:31 #: instances/templates/instances/power_tab.html:28 msgid "Resume" msgstr "恢复" -#: instances/templates/instance_actions.html:27 -msgid "Shut down" -msgstr "关机" - #: instances/templates/instance_actions.html:39 #: interfaces/templates/interface.html:22 networks/templates/network.html:22 #: networks/templates/network.html:162 storages/templates/storage.html:26 @@ -4703,10 +4746,6 @@ msgid "" "has not written to disk is lost." msgstr "强制关闭 %(name)s?它会像断电一样立即停止;客户机尚未写入磁盘的数据将丢失。" -#: instances/templates/instance_actions.html:50 -msgid "Force off" -msgstr "强制关闭" - #: instances/templates/instance_actions.html:56 #: instances/templates/instances/power_tab.html:80 #, python-format @@ -4824,6 +4863,11 @@ msgstr "将 %(kind)s %(name)s 上移" msgid "Move %(kind)s %(name)s down" msgstr "将 %(kind)s %(name)s 下移" +#: instances/templates/instances/bulk_power_box.html:2 +#, python-format +msgid "Choose %(name)s" +msgstr "选择 %(name)s" + #: instances/templates/instances/destroy_instance_form.html:4 #: instances/templates/instances/destroy_instance_form.html:7 #, python-format @@ -6604,15 +6648,15 @@ msgstr "无效的 MAC 地址" msgid "More MAC addresses than networks" msgstr "MAC 地址数量多于网络数量" -#: instances/views.py:194 +#: instances/views.py:198 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:200 instances/views.py:234 +#: instances/views.py:204 instances/views.py:238 msgid "Too many searches are still running; try again shortly." msgstr "仍在运行的搜索过多;请稍后再试。" -#: instances/views.py:243 interfaces/templates/interface.html:46 +#: instances/views.py:247 interfaces/templates/interface.html:46 #: networks/templates/network.html:51 #: operations/templates/operations/jobs.html:38 #: operations/templates/operations/jobs.html:62 @@ -6624,125 +6668,149 @@ msgstr "仍在运行的搜索过多;请稍后再试。" msgid "State" msgstr "状态" -#: instances/views.py:243 +#: instances/views.py:247 msgid "OS" msgstr "操作系统" -#: instances/views.py:243 +#: instances/views.py:247 msgid "OS family" msgstr "操作系统系列" -#: instances/views.py:243 +#: instances/views.py:247 msgid "IP addresses" msgstr "IP 地址" -#: instances/views.py:244 +#: instances/views.py:248 msgid "Address sources" msgstr "地址来源" -#: instances/views.py:244 +#: instances/views.py:248 msgid "MAC addresses" msgstr "MAC 地址" -#: instances/views.py:244 +#: instances/views.py:248 msgid "In the panel" msgstr "在面板中" -#: instances/views.py:256 +#: instances/views.py:260 msgid "yes" msgstr "是" -#: instances/views.py:256 +#: instances/views.py:260 msgid "no" msgstr "否" -#: instances/views.py:258 +#: instances/views.py:262 #, python-format msgid "Created: %(time)s" msgstr "创建时间:%(time)s" -#: instances/views.py:259 +#: instances/views.py:263 #, python-format msgid "VMs listed: %(n)s" msgstr "列出的虚拟机:%(n)s" -#: instances/views.py:260 +#: instances/views.py:264 #, python-format msgid "Running VMs read: %(n)s" msgstr "已读取的运行中虚拟机:%(n)s" -#: instances/views.py:261 +#: instances/views.py:265 #, python-format msgid "" "Without a connected guest agent (a static address on them cannot be seen): " "%(n)s" msgstr "没有已连接客户机代理的虚拟机(无法看到其上的静态地址):%(n)s" -#: instances/views.py:262 +#: instances/views.py:266 #, 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:264 +#: instances/views.py:268 #, python-format msgid "Hosts not reached: %(hosts)s" msgstr "无法连接的主机:%(hosts)s" -#: instances/views.py:266 +#: instances/views.py:270 #, python-format msgid "Hosts not finished in time: %(hosts)s" msgstr "未按时完成的主机:%(hosts)s" -#: instances/views.py:267 +#: instances/views.py:271 msgid "Coverage" msgstr "覆盖范围" -#: instances/views.py:282 +#: instances/views.py:286 #, 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:288 +#: instances/views.py:292 #, python-format msgid "The host of '%(name)s' cannot be reached right now." msgstr "目前无法连接“%(name)s”所在的主机。" -#: instances/views.py:289 +#: instances/views.py:293 msgid " Jobs on it can be followed under Jobs in the menu." msgstr " 其上的任务可在菜单的“任务”中跟踪。" -#: instances/views.py:297 +#: instances/views.py:301 #, python-format msgid "'%(name)s' is no longer on its host." msgstr "“%(name)s”已不在其主机上。" -#: instances/views.py:386 +#: instances/views.py:390 msgid "A VM migrates when it is running, paused or shut off." msgstr "虚拟机在运行、暂停或关机状态下均可迁移。" -#: instances/views.py:388 +#: instances/views.py:392 msgid "" "A VM with snapshots cannot be migrated: its snapshots stay on this host. " "Delete them first." msgstr "有快照的虚拟机无法迁移:其快照保留在本主机上。请先删除快照。" -#: instances/views.py:390 +#: instances/views.py:394 msgid "" "A VM with host devices cannot be migrated: the destination may not have them." " Remove them first." msgstr "有主机设备的虚拟机无法迁移:目标主机可能没有这些设备。请先移除它们。" -#: instances/views.py:640 +#: instances/views.py:644 #, python-format msgid "Disk %(dev)s has changed since the page was loaded; reload the page" msgstr "磁盘 %(dev)s 在页面加载后已更改;请刷新页面" -#: instances/views.py:715 instances/views.py:716 +#: instances/views.py:717 +msgid "Choose the VMs you may power, and Start, Shut down or Force off" +msgstr "请选择您可操作电源的虚拟机,然后选择启动、关闭或强制关闭" + +#: instances/views.py:720 +#, python-format +msgid "Choose at most %(count)s VMs at once" +msgstr "一次最多选择 %(count)s 台虚拟机" + +#: instances/views.py:727 +msgid "a chosen VM" +msgstr "所选的一台虚拟机" + +#: instances/views.py:735 +#, python-format +msgid "%(vm)s: you may not power it now" +msgstr "%(vm)s:您现在无法对其进行电源操作" + +#: instances/views.py:740 +#, 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:762 instances/views.py:763 msgid "The VM was moved meanwhile; try again." msgstr "该虚拟机在此期间已被移动;请重试。" -#: instances/views.py:832 +#: instances/views.py:879 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 " @@ -6752,7 +6820,7 @@ msgstr "" "运行中的虚拟机在此总线上没有可用 PCI 插槽来添加磁盘:如果虚拟机有 SCSI 控制器,请选择 scsi " "总线;或关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。" -#: instances/views.py:836 +#: instances/views.py:883 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" @@ -6762,289 +6830,289 @@ msgstr "" "运行中的虚拟机没有可用 PCI 插槽来添加磁盘所需的 SCSI 控制器:请关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe " "插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。" -#: instances/views.py:854 +#: instances/views.py:901 #, python-format msgid "Invalid disk options: %(options)s" msgstr "无效的磁盘选项:%(options)s" -#: instances/views.py:866 instances/views.py:961 +#: instances/views.py:913 instances/views.py:1008 #, python-format msgid "Invalid options: %(options)s" msgstr "无效的选项:%(options)s" -#: instances/views.py:901 +#: instances/views.py:948 msgid "The VM was forced off but did not start again: it stays off." msgstr "虚拟机已被强制关机,但没有再次启动:它保持关机状态。" -#: instances/views.py:1089 +#: instances/views.py:1136 #, python-format msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)" msgstr "请先设置 %(compute)s 的 gstfsd 密钥(计算节点,编辑该主机)" -#: instances/views.py:1096 instances/views.py:1114 instances/views.py:1123 +#: instances/views.py:1143 instances/views.py:1161 instances/views.py:1170 #, python-format msgid "gstfsd error: %(err)s" msgstr "gstfsd 错误:%(err)s" -#: instances/views.py:1124 +#: instances/views.py:1171 msgid "the reply is not signed with the key" msgstr "回复未使用该密钥签名" -#: instances/views.py:1132 +#: instances/views.py:1179 msgid "Shut the VM down, or start its QEMU guest agent, and try again" msgstr "请关闭虚拟机,或启动其 QEMU 客户机代理,然后重试" -#: instances/views.py:1140 +#: instances/views.py:1187 msgid "The change may still be made when the agent answers again." msgstr "当代理再次响应时,此更改仍可能生效。" -#: instances/views.py:1155 +#: instances/views.py:1202 msgid "Enter a password" msgstr "请输入密码" -#: instances/views.py:1160 +#: instances/views.py:1207 msgid "Enter a password of at most 4096 characters, without NUL characters" msgstr "请输入不超过 4096 个字符且不含 NUL 字符的密码" -#: instances/views.py:1176 +#: instances/views.py:1223 msgid "Reset root password" msgstr "重置 root 密码" -#: instances/views.py:1192 +#: instances/views.py:1239 msgid "Select an SSH public key" msgstr "请选择 SSH 公钥" -#: instances/views.py:1214 +#: instances/views.py:1261 #, python-format msgid "Installed new SSH public key %(keyname)s" msgstr "已安装新的 SSH 公钥 %(keyname)s" -#: instances/views.py:1234 +#: instances/views.py:1281 msgid "Enter a whole number of vCPUs" msgstr "请输入整数个 vCPU" -#: instances/views.py:1238 +#: instances/views.py:1285 msgid "Shut off the VM to change its vCPUs" msgstr "请关闭虚拟机以更改其 vCPU" -#: instances/views.py:1241 +#: instances/views.py:1288 msgid "The current vCPUs cannot be more than the maximum" msgstr "当前 vCPU 数不能超过最大值" -#: instances/views.py:1248 +#: instances/views.py:1295 #, python-format msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'." msgstr "%(quota)s:无法调整“%(instance_name)s”的 CPU。" -#: instances/views.py:1256 +#: instances/views.py:1303 #, python-format msgid "vCPUs set to %(cur)s (maximum %(max)s)" msgstr "vCPU 已设为 %(cur)s(最大 %(max)s)" -#: instances/views.py:1275 +#: instances/views.py:1322 msgid "Enter a whole number for memory" msgstr "请输入整数内存值" -#: instances/views.py:1278 +#: instances/views.py:1325 msgid "The current memory cannot be more than the maximum" msgstr "当前内存不能超过最大值" -#: instances/views.py:1282 +#: instances/views.py:1329 #, python-format msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'." msgstr "%(quota)s:无法调整“%(instance_name)s”的内存。" -#: instances/views.py:1288 +#: instances/views.py:1335 #, python-format msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)" msgstr "内存已设为 %(cur)s MiB(最大 %(max)s MiB)" -#: instances/views.py:1308 +#: instances/views.py:1355 msgid "Enter disk sizes as whole GiB" msgstr "请以整数 GiB 输入磁盘大小" -#: instances/views.py:1312 +#: instances/views.py:1359 #, python-format msgid "Disk %(dev)s was changed meanwhile; reload the page" msgstr "磁盘 %(dev)s 在此期间已更改;请重新加载页面" -#: instances/views.py:1316 +#: instances/views.py:1363 #, python-format msgid "%(dev)s is %(size)s: a disk cannot shrink" msgstr "%(dev)s 为 %(size)s:磁盘不能缩小" -#: instances/views.py:1324 +#: instances/views.py:1371 msgid "No disks were selected or valid for resizing." msgstr "未选择磁盘或没有可调整大小的有效磁盘。" -#: instances/views.py:1333 +#: instances/views.py:1380 #, python-format msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'." msgstr "%(quota)s:无法调整“%(instance_name)s”的磁盘。" -#: instances/views.py:1345 +#: instances/views.py:1392 #, python-format msgid "The storage pool of %(dev)s cannot resize its volumes" msgstr "%(dev)s 所在的存储池无法调整其卷的大小" -#: instances/views.py:1347 +#: instances/views.py:1394 #, python-format msgid "Disk is resized: %(dev)s" msgstr "磁盘已调整大小:%(dev)s" -#: instances/views.py:1441 +#: instances/views.py:1488 msgid "The VM's machine has no PCIe slots to add" msgstr "该虚拟机的机器类型没有可添加的 PCIe 插槽" -#: instances/views.py:1446 +#: instances/views.py:1493 #, python-format msgid "%(count)s PCIe slots added" msgstr "已添加 %(count)s 个 PCIe 插槽" -#: instances/views.py:1448 +#: instances/views.py:1495 #, python-format msgid "%(count)s PCIe slots added: the VM gets them at its next start" msgstr "已添加 %(count)s 个 PCIe 插槽:虚拟机在下次启动时获得它们" -#: instances/views.py:1499 +#: instances/views.py:1546 #, python-format msgid "%(volume)s is already a disk of this VM" msgstr "%(volume)s 已是此虚拟机的磁盘" -#: instances/views.py:1589 +#: instances/views.py:1636 msgid "Volume changes are applied. But it will be activated after shutdown" msgstr "卷更改已应用,但将在关机后生效" -#: instances/views.py:1594 +#: instances/views.py:1641 msgid "Volume is changed successfully." msgstr "卷已成功更改。" -#: instances/views.py:1614 +#: instances/views.py:1661 #, python-format msgid "Disk %(dev)s is not a storage volume of this instance" msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷" -#: instances/views.py:1619 vrtManager/instance.py:2596 +#: instances/views.py:1666 vrtManager/instance.py:2596 msgid "The VM has a saved state; start it or remove the saved state first" msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态" -#: instances/views.py:1625 +#: instances/views.py:1672 #, python-format msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down" msgstr "磁盘 %(dev)s 有待生效的更改;请在虚拟机关机后删除它" -#: instances/views.py:1640 +#: instances/views.py:1687 #, python-format msgid "Volume %(vol)s is used by another VM; detach it instead" msgstr "卷 %(vol)s 正被另一台虚拟机使用;请改为分离它" -#: instances/views.py:1658 +#: instances/views.py:1705 #, 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:1669 +#: instances/views.py:1716 #, python-format msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s" msgstr "磁盘 %(dev)s 已分离,但其卷已保留:%(err)s" -#: instances/views.py:1697 +#: instances/views.py:1744 #, python-format msgid "This VM cannot take a CD-ROM on the %(bus)s bus now" msgstr "该虚拟机现在无法在 %(bus)s 总线上添加 CD-ROM" -#: instances/views.py:1700 +#: instances/views.py:1747 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:1705 +#: instances/views.py:1752 #, python-format msgid "%(image)s is already in a CD-ROM of this VM" msgstr "%(image)s 已在此虚拟机的某个光驱中" -#: instances/views.py:1786 +#: instances/views.py:1833 #, python-format msgid "Pool %(pool)s was not read again: %(err)s" msgstr "未重新读取存储池 %(pool)s:%(err)s" -#: instances/views.py:1807 +#: instances/views.py:1854 #, python-format msgid "Snapshot was not deleted: %(err)s" msgstr "快照未删除:%(err)s" -#: instances/views.py:1926 +#: instances/views.py:1973 msgid "Add at least one device to the boot order." msgstr "请至少向启动顺序中添加一个设备。" -#: instances/views.py:1932 vrtManager/instance.py:1366 +#: instances/views.py:1979 vrtManager/instance.py:1366 msgid "Invalid Device Type for boot order" msgstr "启动顺序的设备类型无效" -#: instances/views.py:1943 +#: instances/views.py:1990 msgid "Boot order changed. It applies at the next start." msgstr "启动顺序已更改,将在下次启动时生效。" -#: instances/views.py:1945 +#: instances/views.py:1992 msgid "Boot order changed successfully." msgstr "启动顺序已成功更改。" -#: instances/views.py:1965 +#: instances/views.py:2012 msgid "The XML is empty" msgstr "XML 为空" -#: instances/views.py:1969 instances/views.py:2689 +#: instances/views.py:2016 instances/views.py:2736 #, python-format msgid "The XML is not well-formed: %(error)s" msgstr "XML 格式不正确:%(error)s" -#: instances/views.py:1971 +#: instances/views.py:2018 #, python-format msgid "The XML must keep the VM's UUID %(uuid)s." msgstr "XML 必须保留虚拟机的 UUID %(uuid)s。" -#: instances/views.py:1975 +#: instances/views.py:2022 msgid "" "The definition has changed since the editor was opened. Reload the page to " "edit the current one." msgstr "自打开编辑器以来定义已被更改。请重新加载页面以编辑当前定义。" -#: instances/views.py:1991 +#: instances/views.py:2038 msgid "The XML definition was saved." msgstr "XML 定义已保存。" -#: instances/views.py:1993 +#: instances/views.py:2040 msgid "The XML definition was saved; the VM uses it from its next start." msgstr "XML 定义已保存;虚拟机从下次启动起使用它。" -#: instances/views.py:2074 +#: instances/views.py:2121 msgid "Select one network interface to change" msgstr "请选择一个要更改的网络接口" -#: instances/views.py:2088 +#: instances/views.py:2135 #, python-format msgid "Network interface %(mac)s was changed meanwhile; reload the page" msgstr "网络接口 %(mac)s 在此期间已更改;请重新加载页面" -#: instances/views.py:2118 +#: instances/views.py:2165 msgid "Network Device Config is changed. Please shutdown instance to activate." msgstr "网络设备配置已更改。请关闭虚拟机以使其生效。" -#: instances/views.py:2120 +#: instances/views.py:2167 msgid "Network device changed" msgstr "网络设备已更改" -#: instances/views.py:2132 +#: instances/views.py:2179 msgid "No network selected" msgstr "未选择网络" -#: instances/views.py:2137 +#: instances/views.py:2184 #, python-format msgid "The VM already has a network device with MAC %(mac)s" msgstr "虚拟机已有 MAC 地址为 %(mac)s 的网络设备" -#: instances/views.py:2156 +#: instances/views.py:2203 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 " @@ -7052,140 +7120,140 @@ msgid "" msgstr "" "运行中的虚拟机没有可用 PCI 插槽来添加网络设备:请关机后再添加设备。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。" -#: instances/views.py:2202 instances/views.py:2208 +#: instances/views.py:2249 instances/views.py:2255 msgid "The VM has it" msgstr "虚拟机已有此设备" -#: instances/views.py:2243 +#: instances/views.py:2290 #, python-format msgid "The host has no USB device %(device)s; reload the page" msgstr "主机没有 USB 设备 %(device)s;请重新加载页面" -#: instances/views.py:2264 +#: instances/views.py:2311 #, python-format msgid "The host has no PCI device %(device)s" msgstr "主机上没有 PCI 设备 %(device)s" -#: instances/views.py:2282 +#: instances/views.py:2329 #, 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:2327 instances/views.py:2357 +#: instances/views.py:2374 instances/views.py:2404 msgid "Select a network interface and a QoS direction" msgstr "请选择网络接口和 QoS 方向" -#: instances/views.py:2330 vrtManager/network.py:470 +#: instances/views.py:2377 vrtManager/network.py:470 msgid "QoS rates must be whole numbers" msgstr "QoS 速率必须为整数" -#: instances/views.py:2337 networks/views.py:235 +#: instances/views.py:2384 networks/views.py:235 #, python-format msgid "%(qos_dir)s QoS is set" msgstr "%(qos_dir)s QoS 已设置" -#: instances/views.py:2342 +#: instances/views.py:2389 #, 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:2364 networks/views.py:261 +#: instances/views.py:2411 networks/views.py:261 #, python-format msgid "%(qos_dir)s QoS is deleted" msgstr "%(qos_dir)s QoS 已删除" -#: instances/views.py:2369 +#: instances/views.py:2416 #, 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:2397 +#: instances/views.py:2444 msgid "Only one owner is allowed and the one already added" msgstr "只允许一个所有者,且已添加" -#: instances/views.py:2399 +#: instances/views.py:2446 #, python-format msgid "%(user)s is already an owner" msgstr "%(user)s 已是所有者" -#: instances/views.py:2464 +#: instances/views.py:2511 #, python-format msgid "Console settings were not saved: %(errors)s" msgstr "控制台设置未保存:%(errors)s" -#: instances/views.py:2486 +#: instances/views.py:2533 msgid "" "Error setting console password. You should check that your instance have an " "graphic device." msgstr "设置控制台密码出错。请检查虚拟机是否有图形设备。" -#: instances/views.py:2533 +#: instances/views.py:2580 msgid "Shut the VM down to change whether it is a template." msgstr "请关闭虚拟机以更改其是否为模板。" -#: instances/views.py:2539 +#: instances/views.py:2586 #, python-format msgid "%(quota)s: '%(instance_name)s' stays a template." msgstr "%(quota)s:“%(instance_name)s”仍为模板。" -#: instances/views.py:2561 +#: instances/views.py:2608 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:2675 +#: instances/views.py:2722 msgid "The XML has no name" msgstr "XML 中没有名称" -#: instances/views.py:2693 webvirtcloud/middleware.py:157 +#: instances/views.py:2740 webvirtcloud/middleware.py:157 #, python-format msgid "libvirt Error - %(exception)s" msgstr "libvirt 错误 - %(exception)s" -#: instances/views.py:2707 +#: instances/views.py:2754 msgid "An empty disk of the size you set" msgstr "按设定大小创建的空磁盘" -#: instances/views.py:2708 +#: instances/views.py:2755 msgid "Volumes already in a pool" msgstr "存储池中已有的卷" -#: instances/views.py:2709 +#: instances/views.py:2756 msgid "A copy of a template volume" msgstr "模板卷的副本" -#: instances/views.py:2799 +#: instances/views.py:2846 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:2801 +#: instances/views.py:2848 msgid "This host has no network for the VM: add one on its Networks page." msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。" -#: instances/views.py:2833 +#: instances/views.py:2880 #, python-format msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it" msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它" -#: instances/views.py:2862 +#: instances/views.py:2909 msgid "Flavor Created" msgstr "规格已创建" -#: instances/views.py:2870 +#: instances/views.py:2917 msgid "Create Flavor" msgstr "创建规格" -#: instances/views.py:2882 +#: instances/views.py:2929 msgid "Flavor Deleted" msgstr "规格已删除" -#: instances/views.py:2888 +#: instances/views.py:2935 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 new file mode 100644 index 00000000..a34a712e --- /dev/null +++ b/static/js/bulk_power.js @@ -0,0 +1,56 @@ +// The VM list's bulk power form. Only the chosen VMs on screen count: one a +// filter or a collapsed host hides is neither counted nor sent, so a VM chosen +// before the filters changed is not powered unseen. "Choose the VMs shown" +// chooses or clears those on screen, and shows whether all, some or none are. +(function () { + var form = document.getElementById("bulk-power"); + var shown = document.getElementById("bulk-power-shown"); + var count = document.getElementById("bulk-power-count"); + function onScreen() { + return Array.prototype.filter.call(document.querySelectorAll("input[name='vm'][form='bulk-power']"), + function (box) { return box.getClientRects().length > 0; }); + } + 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) : ""; + shown.disabled = boxes.length === 0; + shown.checked = boxes.length > 0 && chosen === boxes.length; + shown.indeterminate = chosen > 0 && chosen < boxes.length; + } + shown.addEventListener("change", function () { + var choose = shown.checked; + onScreen().forEach(function (box) { box.checked = choose; }); + update(); + }); + // a box, the search, a state or tag pill or a host's collapse changes what is on screen; not + // "Choose the VMs shown" itself: its input event comes before its change, which chooses the boxes + function changed(event) { + if (event.target !== shown) { + setTimeout(update, 0); + } + } + ["change", "input", "click"].forEach(function (type) { document.addEventListener(type, changed); }); + // and a filter that answers later (the address search) hides rows by itself + var later = null; + new MutationObserver(function () { + clearTimeout(later); + later = setTimeout(update, 50); + }).observe(document.querySelector(".table-responsive") || document.body, + {attributes: true, attributeFilter: ["hidden", "class"], subtree: true}); + form.addEventListener("submit", function () { + document.querySelectorAll("input[name='vm'][form='bulk-power']:checked").forEach(function (box) { + if (!box.getClientRects().length) { + box.checked = false; // hidden: not sent + } + }); + }); + update(); +})(); + +// whether VMs on screen are chosen: the list's reload (poll.js pageInUse) waits meanwhile +function bulkPowerChosen() { + return Array.prototype.some.call(document.querySelectorAll("input[name='vm'][form='bulk-power']:checked"), + function (box) { return box.getClientRects().length > 0; }); +} diff --git a/static/js/poll.js b/static/js/poll.js index 04c6dd29..b3242d3b 100644 --- a/static/js/poll.js +++ b/static/js/poll.js @@ -50,11 +50,12 @@ function pollWhileVisible(interval, request, onData, firstDelay) { }; } -// The user is in the page: a dialog open, a field in use or an XML edit not -// saved. A poll that would reload the page waits for its next answer. +// The user is in the page: a dialog open, a field in use, an XML edit not +// saved or VMs chosen on the VM list. A poll that would reload the page waits for its next answer. function pageInUse() { var active = document.activeElement; return !!document.querySelector(".modal.show") || !!(active && active.matches && active.matches("input, select, textarea")) - || !!(window.xmlEditUnsaved && window.xmlEditUnsaved()); + || !!(window.xmlEditUnsaved && window.xmlEditUnsaved()) + || (typeof bulkPowerChosen === "function" && bulkPowerChosen()); // VMs chosen on the VM list (bulk_power.js) } diff --git a/webvirtcloud/tests/test_authorization_matrix.py b/webvirtcloud/tests/test_authorization_matrix.py index be18c8cc..d74ffcd0 100644 --- a/webvirtcloud/tests/test_authorization_matrix.py +++ b/webvirtcloud/tests/test_authorization_matrix.py @@ -35,6 +35,7 @@ ALLOWED_FOR_ANY_USER = { "instances:index": "lists only the user's own instances", "instances:find_address": "searches only the user's own instances", "instances:states": "the VM list's poll: only the user's own instances", + "instances:bulk_power": "queues a job only for VMs the user may power (instances.jobs.PowerVM)", "accounts:login": "login page", "accounts:email_otp": "part of the login flow (its own issues are tracked separately)", "accounts:otp_qr": "the OTP QR code a mailed link opens: only with that signed, hour-old-at-most link",