mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
fix(instances): a failed power cycle says the VM stays off; templates have no autostart
Power Cycle forced the VM off and, when the start failed, showed only libvirt's error: the page now also says the VM was forced off and stays off, and the audit row says so. A template kept the autostart it had as a VM, so the host started it although the panel refuses to: marking a template turns autostart off, and autostart is refused on a template. The autostart switch is disabled, with the reason, on a template and on a VM that exists only while it runs (libvirt refuses autostart there). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
0ce1139c9d
commit
7dd68aaca4
10 changed files with 259 additions and 196 deletions
|
|
@ -86,6 +86,10 @@ class Instance(models.Model):
|
|||
def autostart(self) -> int:
|
||||
return self.proxy.get_autostart()
|
||||
|
||||
@cached_property
|
||||
def persistent(self) -> bool:
|
||||
return self.proxy.instance.isPersistent()
|
||||
|
||||
@cached_property
|
||||
def bootmenu(self) -> bool:
|
||||
return self.proxy.get_bootmenu()
|
||||
|
|
|
|||
|
|
@ -117,10 +117,10 @@
|
|||
<div class="row g-3">
|
||||
<form class="col-12 col-md-6" action="{% if instance.autostart %}{% url 'instances:unset_autostart' instance.id %}{% else %}{% url 'instances:set_autostart' instance.id %}{% endif %}" method="post">{% csrf_token %}
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="autostart" aria-describedby="autostart-help"{% if instance.autostart %} checked{% endif %} data-submit-on-change>
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="autostart" aria-describedby="autostart-help"{% if instance.autostart %} checked{% elif instance.is_template or not instance.persistent %} disabled{% endif %} data-submit-on-change>
|
||||
<label class="form-check-label" for="autostart">{% trans "Autostart" %}</label>
|
||||
</div>
|
||||
<p class="small text-body-secondary mb-0" id="autostart-help">{% trans "Start this VM when the host starts." %}</p>
|
||||
<p class="small text-body-secondary mb-0" id="autostart-help">{% if instance.autostart %}{% trans "Start this VM when the host starts." %}{% elif instance.is_template %}{% trans "A template is not started: clone it to make a VM." %}{% elif not instance.persistent %}{% trans "A VM that exists only while it runs does not start with the host." %}{% else %}{% trans "Start this VM when the host starts." %}{% endif %}</p>
|
||||
</form>
|
||||
<form class="col-12 col-md-6" action="{% if instance.config_bootmenu %}{% url 'instances:unset_bootmenu' instance.id %}{% else %}{% url 'instances:set_bootmenu' instance.id %}{% endif %}" method="post">{% csrf_token %}
|
||||
<div class="form-check form-switch">
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class PageControls:
|
|||
UserInstance.objects.create(instance=self.instance, user=user, **owner)
|
||||
return user
|
||||
|
||||
def controls(self, user, status=1, saved=False):
|
||||
def controls(self, user, status=1, saved=False, persistent=True):
|
||||
self.client.force_login(user)
|
||||
with patch("instances.models.wvmInstance") as mock_wvm, patch.object(
|
||||
Compute, "status", new_callable=PropertyMock, return_value=True
|
||||
|
|
@ -76,6 +76,8 @@ class PageControls:
|
|||
proxy.get_console_type.return_value = "vnc"
|
||||
proxy.get_status.return_value = status
|
||||
proxy.get_managed_save_image.return_value = saved
|
||||
proxy.get_autostart.return_value = 0
|
||||
proxy.instance.isPersistent.return_value = persistent
|
||||
response = self.client.get(reverse("instances:instance", args=[self.instance.id]))
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.last_page = response.content.decode()
|
||||
|
|
@ -236,6 +238,15 @@ class PageControlsTestCase(PageControls, TestCase):
|
|||
self.assertTrue(fresh.get("data-confirm"))
|
||||
self.assertEqual(fresh.getparent().get("action"), reverse("instances:poweron", args=[self.instance.id]))
|
||||
|
||||
def test_autostart_is_off_for_a_template_and_a_vm_defined_only_while_it_runs(self):
|
||||
admin = get_user_model().objects.create_superuser("autostart_admin", "as@example.com", "x")
|
||||
for template, persistent, disabled in ((False, True, False), (True, True, True), (False, False, True)):
|
||||
with self.subTest(template=template, persistent=persistent):
|
||||
Instance.objects.filter(pk=self.instance.pk).update(is_template=template)
|
||||
self.controls(admin, status=5, persistent=persistent)
|
||||
(switch,) = lxml_html.fromstring(self.last_page).xpath("//input[@id='autostart']")
|
||||
self.assertEqual(switch.get("disabled") is not None, disabled)
|
||||
|
||||
def test_the_power_tab_marks_the_current_state_or_names_another(self):
|
||||
admin = get_user_model().objects.create_superuser("power_strip_admin", "ps@example.com", "x")
|
||||
for status, now in ((1, "Active"), (3, "Suspended"), (5, "Off"), (6, None)):
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ class TemplateFlagTestCase(TestCase):
|
|||
for user in (self.owner, self.staff_owner):
|
||||
UserInstance.objects.create(instance=self.instance, user=user, is_change=True)
|
||||
|
||||
def _post(self, user, action, data, status=302):
|
||||
def _post(self, user, action, data, status=302, autostart=0):
|
||||
self.client.force_login(user)
|
||||
with patch("instances.models.wvmInstance") as wvm:
|
||||
wvm.return_value.get_status.return_value = 5
|
||||
|
|
@ -95,9 +95,11 @@ class TemplateFlagTestCase(TestCase):
|
|||
wvm.return_value.get_vcpu.return_value = 1
|
||||
wvm.return_value.get_memory.return_value = 1024
|
||||
wvm.return_value.get_disk_devices.return_value = []
|
||||
wvm.return_value.get_autostart.return_value = autostart
|
||||
res = self.client.post(reverse(f"instances:{action}", args=[self.instance.id]), data)
|
||||
self.assertEqual(res.status_code, status)
|
||||
self.instance.refresh_from_db()
|
||||
return wvm.return_value
|
||||
|
||||
def _make_template(self):
|
||||
self.instance.is_template = True
|
||||
|
|
@ -122,6 +124,13 @@ class TemplateFlagTestCase(TestCase):
|
|||
self.assertEqual(list(Logs.objects.filter(message__startswith="VM").order_by("id").values_list("message", "success")),
|
||||
[("VM tpl-vm: mark as template", True), ("VM tpl-vm: unmark as template", True)])
|
||||
|
||||
def test_a_template_does_not_start_with_the_host(self):
|
||||
proxy = self._post(self.superuser, "set_template", {"is_template": "True"}, autostart=1)
|
||||
self.assertTrue(self.instance.is_template)
|
||||
proxy.set_autostart.assert_called_once_with(0)
|
||||
proxy = self._post(self.superuser, "set_autostart", {})
|
||||
proxy.set_autostart.assert_not_called()
|
||||
|
||||
def test_superuser_can_unmark_template(self):
|
||||
self._make_template()
|
||||
self._post(self.superuser, "set_template", {})
|
||||
|
|
|
|||
|
|
@ -48,6 +48,15 @@ class VMRowTests(TestCase):
|
|||
self.proxy.start.assert_called_once_with(libvirt.VIR_DOMAIN_START_FORCE_BOOT)
|
||||
self.assertEqual(self.rows(), [("VM vm: power on without the saved state", True)])
|
||||
|
||||
def test_a_power_cycle_that_does_not_start_again_says_the_vm_stays_off(self):
|
||||
self.proxy.start.side_effect = libvirtError("Cannot access storage file")
|
||||
response = self.post("powercycle")
|
||||
self.proxy.force_shutdown.assert_called_once_with()
|
||||
self.assertEqual(self.rows(), [("VM vm: power cycle: forced off, the start failed: Cannot access storage file",
|
||||
False)])
|
||||
self.assertIn("The VM was forced off but did not start again: it stays off.",
|
||||
[m.message for m in get_messages(response.wsgi_request)])
|
||||
|
||||
def test_a_raised_failure_writes_a_failed_row(self):
|
||||
self.proxy.start.side_effect = libvirtError("Requested operation is not valid")
|
||||
self.post("poweron")
|
||||
|
|
|
|||
|
|
@ -825,9 +825,14 @@ def powercycle(request, pk):
|
|||
if instance.is_template:
|
||||
messages.warning(request, _("Templates cannot be started."))
|
||||
else:
|
||||
with audit_vm(request, instance, "power cycle"):
|
||||
with audit_vm(request, instance, "power cycle") as entry:
|
||||
instance.proxy.force_shutdown()
|
||||
instance.proxy.start()
|
||||
try:
|
||||
instance.proxy.start()
|
||||
except Exception:
|
||||
entry.action = "power cycle: forced off, the start failed"
|
||||
messages.warning(request, _("The VM was forced off but did not start again: it stays off."))
|
||||
raise
|
||||
return get_safe_redirect(
|
||||
request, default=reverse("instances:instance", args=[instance.id])
|
||||
)
|
||||
|
|
@ -1786,6 +1791,9 @@ def set_vcpu_hotplug(request, pk):
|
|||
@serialize_instance_mutation
|
||||
def set_autostart(request, pk):
|
||||
instance = get_instance(request.user, pk)
|
||||
if instance.is_template:
|
||||
messages.error(request, _("Templates cannot be started."))
|
||||
return _back(request, pk, "boot_opt")
|
||||
with audit_vm(request, instance, "enable autostart"):
|
||||
instance.proxy.set_autostart(1)
|
||||
return _back(request, pk, "boot_opt")
|
||||
|
|
@ -2406,6 +2414,8 @@ def set_template(request, pk):
|
|||
instance_name=instance.name))
|
||||
return _back(request, pk, "options")
|
||||
with audit_vm(request, instance, "mark as template" if is_template else "unmark as template"):
|
||||
if is_template and instance.autostart: # the host would start it
|
||||
instance.proxy.set_autostart(0)
|
||||
instance.is_template = is_template
|
||||
instance.save(update_fields=["is_template"])
|
||||
return _back(request, pk, "options")
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -11,7 +11,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-11 11:26+0000\n"
|
||||
"POT-Creation-Date: 2026-11-11 11:28+0000\n"
|
||||
"PO-Revision-Date: 2020-11-04 12:00+0000\n"
|
||||
"Last-Translator: catborise <muhammetalisag@gmail.com>, 2020\n"
|
||||
"Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n"
|
||||
|
|
@ -754,7 +754,7 @@ msgstr "vCPU"
|
|||
msgid "Memory"
|
||||
msgstr "Bellek"
|
||||
|
||||
#: admin/forms.py:191 instances/models.py:236
|
||||
#: admin/forms.py:191 instances/models.py:240
|
||||
#: instances/templates/create_instance_w2.html:118
|
||||
#: instances/templates/instances/settings_tab.html:25
|
||||
#: instances/templates/instances/stats_tab.html:53
|
||||
|
|
@ -2687,7 +2687,7 @@ msgstr ""
|
|||
"VNC olarak değiştirin."
|
||||
|
||||
#: instances/api/viewsets.py:148 instances/api/viewsets.py:166
|
||||
#: instances/views.py:805 instances/views.py:823
|
||||
#: instances/views.py:805 instances/views.py:823 instances/views.py:1792
|
||||
msgid "Templates cannot be started."
|
||||
msgstr "Şablon makineler başlatılamaz."
|
||||
|
||||
|
|
@ -3029,7 +3029,7 @@ msgstr ""
|
|||
msgid "Create VM"
|
||||
msgstr "Sanal makine oluştur"
|
||||
|
||||
#: instances/jobs.py:883 instances/jobs.py:925 instances/views.py:2486
|
||||
#: instances/jobs.py:883 instances/jobs.py:925 instances/views.py:2496
|
||||
msgid "A virtual machine with this name already exists"
|
||||
msgstr "Bu isimde bir sanal makine mevcut"
|
||||
|
||||
|
|
@ -3237,16 +3237,16 @@ msgstr "oluşturuldu"
|
|||
msgid "drbd"
|
||||
msgstr "drbd"
|
||||
|
||||
#: instances/models.py:238 instances/templates/create_instance_w2.html:312
|
||||
#: instances/models.py:242 instances/templates/create_instance_w2.html:312
|
||||
#: instances/templates/instances/settings_tab.html:159
|
||||
msgid "CD-ROM"
|
||||
msgstr "CD-ROM"
|
||||
|
||||
#: instances/models.py:240
|
||||
#: instances/models.py:244
|
||||
msgid "NIC"
|
||||
msgstr "NIC"
|
||||
|
||||
#: instances/models.py:432
|
||||
#: instances/models.py:436
|
||||
msgid "Can access console without password"
|
||||
msgstr "Parolasız konsol erişimi yapabilir"
|
||||
|
||||
|
|
@ -3388,7 +3388,7 @@ msgid "Disk source"
|
|||
msgstr "Disk kaynağı"
|
||||
|
||||
#: instances/templates/add_instance_volume.html:21
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2505
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2515
|
||||
msgid "New disk"
|
||||
msgstr "Yeni disk"
|
||||
|
||||
|
|
@ -3774,7 +3774,7 @@ msgstr "Özel CPU modelleri"
|
|||
msgid "Size (GiB)"
|
||||
msgstr "Boyut (GiB)"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2506
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2516
|
||||
msgid "Existing volumes"
|
||||
msgstr "Mevcut birimler"
|
||||
|
||||
|
|
@ -3810,7 +3810,7 @@ msgstr "Aygıt"
|
|||
msgid "Remove"
|
||||
msgstr "Kaldır"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2507
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2517
|
||||
msgid "Clone from template"
|
||||
msgstr "Şablondan klonla"
|
||||
|
||||
|
|
@ -4651,6 +4651,7 @@ msgid "Asks the guest to shut down."
|
|||
msgstr "Konuktan kapanmasını ister."
|
||||
|
||||
#: instances/templates/instances/power_tab.html:59
|
||||
#: instances/templates/instances/settings_tab.html:123
|
||||
msgid "A template is not started: clone it to make a VM."
|
||||
msgstr "Şablon başlatılmaz: sanal makine oluşturmak için klonlayın."
|
||||
|
||||
|
|
@ -4907,6 +4908,12 @@ msgstr "Otomatik başlat"
|
|||
msgid "Start this VM when the host starts."
|
||||
msgstr "Sunucu başladığında bu sanal makineyi başlat."
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:123
|
||||
msgid "A VM that exists only while it runs does not start with the host."
|
||||
msgstr ""
|
||||
"Yalnızca çalıştığı sürece var olan bir sanal makine host ile birlikte "
|
||||
"başlamaz."
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:128
|
||||
msgid "Boot menu"
|
||||
msgstr "Ön yükleme menüsü"
|
||||
|
|
@ -6111,172 +6118,176 @@ msgstr ""
|
|||
msgid "Invalid disk options: %(options)s"
|
||||
msgstr "Geçersiz disk seçenekleri: %(options)s"
|
||||
|
||||
#: instances/views.py:1011
|
||||
#: instances/views.py:831
|
||||
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:1016
|
||||
#, 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:1018 instances/views.py:1036 instances/views.py:1045
|
||||
#: instances/views.py:1023 instances/views.py:1041 instances/views.py:1050
|
||||
#, python-format
|
||||
msgid "gstfsd error: %(err)s"
|
||||
msgstr "gstfsd hatası: %(err)s"
|
||||
|
||||
#: instances/views.py:1046
|
||||
#: instances/views.py:1051
|
||||
msgid "the reply is not signed with the key"
|
||||
msgstr "yanıt anahtarla imzalanmamış"
|
||||
|
||||
#: instances/views.py:1054
|
||||
#: instances/views.py:1059
|
||||
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:1067
|
||||
#: instances/views.py:1072
|
||||
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:1095
|
||||
#: instances/views.py:1100
|
||||
msgid "Reset root password"
|
||||
msgstr "Root parolasını sıfırla"
|
||||
|
||||
#: instances/views.py:1099
|
||||
#: instances/views.py:1104
|
||||
msgid "Enter a password"
|
||||
msgstr "Bir parola girin"
|
||||
|
||||
#: instances/views.py:1113
|
||||
#: instances/views.py:1118
|
||||
msgid "Select an SSH public key"
|
||||
msgstr "Bir SSH açık anahtarı seçin"
|
||||
|
||||
#: instances/views.py:1135
|
||||
#: instances/views.py:1140
|
||||
#, python-format
|
||||
msgid "Installed new SSH public key %(keyname)s"
|
||||
msgstr "Yeni %(keyname)s SSH açık anahtarı yüklendi"
|
||||
|
||||
#: instances/views.py:1155
|
||||
#: instances/views.py:1160
|
||||
msgid "Enter a whole number of vCPUs"
|
||||
msgstr "vCPU sayısı için bir tam sayı girin"
|
||||
|
||||
#: instances/views.py:1159
|
||||
#: instances/views.py:1164
|
||||
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:1162
|
||||
#: instances/views.py:1167
|
||||
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:1169
|
||||
#: instances/views.py:1174
|
||||
#, 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:1177
|
||||
#: instances/views.py:1182
|
||||
#, 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:1196
|
||||
#: instances/views.py:1201
|
||||
msgid "Enter a whole number for memory"
|
||||
msgstr "Bellek için bir tam sayı girin"
|
||||
|
||||
#: instances/views.py:1199
|
||||
#: instances/views.py:1204
|
||||
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:1203
|
||||
#: instances/views.py:1208
|
||||
#, 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:1209
|
||||
#: instances/views.py:1214
|
||||
#, 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:1229
|
||||
#: instances/views.py:1234
|
||||
msgid "Enter disk sizes as whole GiB"
|
||||
msgstr "Disk boyutlarını tam GiB olarak girin"
|
||||
|
||||
#: instances/views.py:1233
|
||||
#: instances/views.py:1238
|
||||
#, 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:1241
|
||||
#: instances/views.py:1246
|
||||
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:1250
|
||||
#: instances/views.py:1255
|
||||
#, 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:1262
|
||||
#: instances/views.py:1267
|
||||
#, 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:1264
|
||||
#: instances/views.py:1269
|
||||
#, python-format
|
||||
msgid "Disk is resized: %(dev)s"
|
||||
msgstr "Disk boyutu değiştirildi: %(dev)s"
|
||||
|
||||
#: instances/views.py:1358
|
||||
#: instances/views.py:1363
|
||||
msgid "The VM's machine has no PCIe slots to add"
|
||||
msgstr "Sanal makinenin makine tipinde eklenecek PCIe yuvası yok"
|
||||
|
||||
#: instances/views.py:1363
|
||||
#: instances/views.py:1368
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added"
|
||||
msgstr "%(count)s PCIe yuvası eklendi"
|
||||
|
||||
#: instances/views.py:1365
|
||||
#: instances/views.py:1370
|
||||
#, 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:1411
|
||||
#: instances/views.py:1416
|
||||
#, python-format
|
||||
msgid "%(volume)s is already a disk of this VM"
|
||||
msgstr "%(volume)s zaten bu sanal makinenin bir diski"
|
||||
|
||||
#: instances/views.py:1501
|
||||
#: instances/views.py:1506
|
||||
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:1506
|
||||
#: instances/views.py:1511
|
||||
msgid "Volume is changed successfully."
|
||||
msgstr "Birim başarıyla değiştirildi."
|
||||
|
||||
#: instances/views.py:1526
|
||||
#: instances/views.py:1531
|
||||
#, 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:1531 vrtManager/instance.py:2305
|
||||
#: instances/views.py:1536 vrtManager/instance.py:2305
|
||||
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:1537
|
||||
#: instances/views.py:1542
|
||||
#, 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:1552
|
||||
#: instances/views.py:1557
|
||||
#, 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:1564
|
||||
#: instances/views.py:1569
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete "
|
||||
|
|
@ -6285,66 +6296,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:1575
|
||||
#: instances/views.py:1580
|
||||
#, 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:1603
|
||||
#: instances/views.py:1608
|
||||
#, 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:1606
|
||||
#: instances/views.py:1611
|
||||
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:1611
|
||||
#: instances/views.py:1616
|
||||
#, 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:1692
|
||||
#: instances/views.py:1697
|
||||
#, python-format
|
||||
msgid "Pool %(pool)s was not read again: %(err)s"
|
||||
msgstr "%(pool)s havuzu yeniden okunamadı: %(err)s"
|
||||
|
||||
#: instances/views.py:1713
|
||||
#: instances/views.py:1718
|
||||
#, python-format
|
||||
msgid "Snapshot was not deleted: %(err)s"
|
||||
msgstr "Anlık görüntü silinmedi: %(err)s"
|
||||
|
||||
#: instances/views.py:1828
|
||||
#: instances/views.py:1836
|
||||
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:1834 vrtManager/instance.py:1108
|
||||
#: instances/views.py:1842 vrtManager/instance.py:1108
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "Ön yükleme sırası için geçersiz aygıt türü"
|
||||
|
||||
#: instances/views.py:1845
|
||||
#: instances/views.py:1853
|
||||
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:1847
|
||||
#: instances/views.py:1855
|
||||
msgid "Boot order changed successfully."
|
||||
msgstr "Ön yükleme sırası başarıyla değiştirildi."
|
||||
|
||||
#: instances/views.py:1867
|
||||
#: instances/views.py:1875
|
||||
msgid "The XML is empty"
|
||||
msgstr "XML boş"
|
||||
|
||||
#: instances/views.py:1871 instances/views.py:2496
|
||||
#: instances/views.py:1879 instances/views.py:2506
|
||||
#, python-format
|
||||
msgid "The XML is not well-formed: %(error)s"
|
||||
msgstr "XML düzgün biçimlendirilmemiş: %(error)s"
|
||||
|
||||
#: instances/views.py:1873
|
||||
#: instances/views.py:1881
|
||||
#, 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:1877
|
||||
#: instances/views.py:1885
|
||||
msgid ""
|
||||
"The definition has changed since the editor was opened. Reload the page to "
|
||||
"edit the current one."
|
||||
|
|
@ -6352,40 +6363,40 @@ 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:1889
|
||||
#: instances/views.py:1897
|
||||
msgid "The XML definition was saved."
|
||||
msgstr "XML tanımı kaydedildi."
|
||||
|
||||
#: instances/views.py:1891
|
||||
#: instances/views.py:1899
|
||||
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:1972
|
||||
#: instances/views.py:1980
|
||||
msgid "Select one network interface to change"
|
||||
msgstr "Değiştirilecek bir ağ arabirimi seçin"
|
||||
|
||||
#: instances/views.py:2010
|
||||
#: instances/views.py:2018
|
||||
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:2012
|
||||
#: instances/views.py:2020
|
||||
msgid "Network device changed"
|
||||
msgstr "Ağ aygıtı değiştirildi"
|
||||
|
||||
#: instances/views.py:2024
|
||||
#: instances/views.py:2032
|
||||
msgid "No network selected"
|
||||
msgstr "Ağ seçilmedi"
|
||||
|
||||
#: instances/views.py:2029
|
||||
#: instances/views.py:2037
|
||||
#, 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:2048
|
||||
#: instances/views.py:2056
|
||||
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 "
|
||||
|
|
@ -6395,21 +6406,21 @@ msgstr ""
|
|||
"aygıtı sonra ekleyin; Diskler sekmesindeki PCIe yuvaları ekle, sonraki "
|
||||
"başlatmadan itibaren ona boş yuvalar verir."
|
||||
|
||||
#: instances/views.py:2089 instances/views.py:2095
|
||||
#: instances/views.py:2097 instances/views.py:2103
|
||||
msgid "The VM has it"
|
||||
msgstr "Sanal makinede var"
|
||||
|
||||
#: instances/views.py:2126
|
||||
#: instances/views.py:2134
|
||||
#, python-format
|
||||
msgid "The host has no USB device %(device)s"
|
||||
msgstr "Sunucuda %(device)s USB aygıtı yok"
|
||||
|
||||
#: instances/views.py:2147
|
||||
#: instances/views.py:2155
|
||||
#, python-format
|
||||
msgid "The host has no PCI device %(device)s"
|
||||
msgstr "Sunucuda %(device)s PCI aygıtı yok"
|
||||
|
||||
#: instances/views.py:2165
|
||||
#: instances/views.py:2173
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Removal of PCI device %(address)s requested: the guest has not let it go yet;"
|
||||
|
|
@ -6419,20 +6430,20 @@ msgstr ""
|
|||
"bırakmadı; bırakana ya da sanal makine durana kadar çalışan sanal makinede "
|
||||
"kalır."
|
||||
|
||||
#: instances/views.py:2210 instances/views.py:2240
|
||||
#: instances/views.py:2218 instances/views.py:2248
|
||||
msgid "Select a network interface and a QoS direction"
|
||||
msgstr "Bir ağ arabirimi ve bir QoS yönü seçin"
|
||||
|
||||
#: instances/views.py:2213 vrtManager/network.py:454
|
||||
#: instances/views.py:2221 vrtManager/network.py:454
|
||||
msgid "QoS rates must be whole numbers"
|
||||
msgstr "QoS hızları tam sayı olmalıdır"
|
||||
|
||||
#: instances/views.py:2220 networks/views.py:229
|
||||
#: instances/views.py:2228 networks/views.py:229
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is set"
|
||||
msgstr "%(qos_dir)s QoS ayarlandı"
|
||||
|
||||
#: instances/views.py:2225
|
||||
#: instances/views.py:2233
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on."
|
||||
|
|
@ -6440,12 +6451,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:2247 networks/views.py:255
|
||||
#: instances/views.py:2255 networks/views.py:255
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is deleted"
|
||||
msgstr "%(qos_dir)s QoS silindi"
|
||||
|
||||
#: instances/views.py:2252
|
||||
#: instances/views.py:2260
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is "
|
||||
|
|
@ -6454,21 +6465,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:2280
|
||||
#: instances/views.py:2288
|
||||
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:2282
|
||||
#: instances/views.py:2290
|
||||
#, python-format
|
||||
msgid "%(user)s is already an owner"
|
||||
msgstr "%(user)s zaten bir sahip"
|
||||
|
||||
#: instances/views.py:2327
|
||||
#: instances/views.py:2335
|
||||
#, python-format
|
||||
msgid "Console settings were not saved: %(errors)s"
|
||||
msgstr "Konsol ayarları kaydedilmedi: %(errors)s"
|
||||
|
||||
#: instances/views.py:2349
|
||||
#: instances/views.py:2357
|
||||
msgid ""
|
||||
"Error setting console password. You should check that your instance have an "
|
||||
"graphic device."
|
||||
|
|
@ -6476,37 +6487,37 @@ msgstr ""
|
|||
"Konsol parolası ayarlanırken hata oluştu. Sanal makinenin bir grafik aygıtına"
|
||||
" sahip olduğundan emin olunuz."
|
||||
|
||||
#: instances/views.py:2396
|
||||
#: instances/views.py:2404
|
||||
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:2402
|
||||
#: instances/views.py:2410
|
||||
#, python-format
|
||||
msgid "%(quota)s: '%(instance_name)s' stays a template."
|
||||
msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor."
|
||||
|
||||
#: instances/views.py:2484
|
||||
#: instances/views.py:2494
|
||||
msgid "The XML has no name"
|
||||
msgstr "XML'de ad yok"
|
||||
|
||||
#: instances/views.py:2498 webvirtcloud/middleware.py:156
|
||||
#: instances/views.py:2508 webvirtcloud/middleware.py:156
|
||||
#, python-format
|
||||
msgid "libvirt Error - %(exception)s"
|
||||
msgstr "libvirt Hatası - %(exception)s"
|
||||
|
||||
#: instances/views.py:2505
|
||||
#: instances/views.py:2515
|
||||
msgid "An empty disk of the size you set"
|
||||
msgstr "Belirlediğiniz boyutta boş bir disk"
|
||||
|
||||
#: instances/views.py:2506
|
||||
#: instances/views.py:2516
|
||||
msgid "Volumes already in a pool"
|
||||
msgstr "Bir havuzda zaten bulunan birimler"
|
||||
|
||||
#: instances/views.py:2507
|
||||
#: instances/views.py:2517
|
||||
msgid "A copy of a template volume"
|
||||
msgstr "Bir şablon biriminin kopyası"
|
||||
|
||||
#: instances/views.py:2585
|
||||
#: instances/views.py:2595
|
||||
msgid ""
|
||||
"This host has no running storage pool for the VM's disks: add or start one on"
|
||||
" its Storage page."
|
||||
|
|
@ -6514,29 +6525,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:2587
|
||||
#: instances/views.py:2597
|
||||
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:2619
|
||||
#: instances/views.py:2629
|
||||
#, 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:2646
|
||||
#: instances/views.py:2656
|
||||
msgid "Flavor Created"
|
||||
msgstr "Flavor Oluşturuldu"
|
||||
|
||||
#: instances/views.py:2654
|
||||
#: instances/views.py:2664
|
||||
msgid "Create Flavor"
|
||||
msgstr "Kullanıcı Oluştur"
|
||||
|
||||
#: instances/views.py:2666
|
||||
#: instances/views.py:2676
|
||||
msgid "Flavor Deleted"
|
||||
msgstr "Flavor Silindi"
|
||||
|
||||
#: instances/views.py:2672
|
||||
#: instances/views.py:2682
|
||||
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ı"
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-11 11:26+0000\n"
|
||||
"POT-Creation-Date: 2026-11-11 11:28+0000\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
|
@ -733,7 +733,7 @@ msgstr "vCPU"
|
|||
msgid "Memory"
|
||||
msgstr "内存"
|
||||
|
||||
#: admin/forms.py:191 instances/models.py:236
|
||||
#: admin/forms.py:191 instances/models.py:240
|
||||
#: instances/templates/create_instance_w2.html:118
|
||||
#: instances/templates/instances/settings_tab.html:25
|
||||
#: instances/templates/instances/stats_tab.html:53
|
||||
|
|
@ -2589,7 +2589,7 @@ msgid ""
|
|||
msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。"
|
||||
|
||||
#: instances/api/viewsets.py:148 instances/api/viewsets.py:166
|
||||
#: instances/views.py:805 instances/views.py:823
|
||||
#: instances/views.py:805 instances/views.py:823 instances/views.py:1792
|
||||
msgid "Templates cannot be started."
|
||||
msgstr "模板无法启动。"
|
||||
|
||||
|
|
@ -2901,7 +2901,7 @@ msgstr "MAC 地址 %(mac)s 已属于此主机上另一台虚拟机的网卡"
|
|||
msgid "Create VM"
|
||||
msgstr "创建虚拟机"
|
||||
|
||||
#: instances/jobs.py:883 instances/jobs.py:925 instances/views.py:2486
|
||||
#: instances/jobs.py:883 instances/jobs.py:925 instances/views.py:2496
|
||||
msgid "A virtual machine with this name already exists"
|
||||
msgstr "同名虚拟机已存在"
|
||||
|
||||
|
|
@ -3101,16 +3101,16 @@ msgstr "创建时间"
|
|||
msgid "drbd"
|
||||
msgstr "drbd"
|
||||
|
||||
#: instances/models.py:238 instances/templates/create_instance_w2.html:312
|
||||
#: instances/models.py:242 instances/templates/create_instance_w2.html:312
|
||||
#: instances/templates/instances/settings_tab.html:159
|
||||
msgid "CD-ROM"
|
||||
msgstr "CD-ROM"
|
||||
|
||||
#: instances/models.py:240
|
||||
#: instances/models.py:244
|
||||
msgid "NIC"
|
||||
msgstr "网卡"
|
||||
|
||||
#: instances/models.py:432
|
||||
#: instances/models.py:436
|
||||
msgid "Can access console without password"
|
||||
msgstr "可无密码访问控制台"
|
||||
|
||||
|
|
@ -3248,7 +3248,7 @@ msgid "Disk source"
|
|||
msgstr "磁盘来源"
|
||||
|
||||
#: instances/templates/add_instance_volume.html:21
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2505
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2515
|
||||
msgid "New disk"
|
||||
msgstr "新磁盘"
|
||||
|
||||
|
|
@ -3622,7 +3622,7 @@ msgstr "自定义 CPU 型号"
|
|||
msgid "Size (GiB)"
|
||||
msgstr "大小(GiB)"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2506
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2516
|
||||
msgid "Existing volumes"
|
||||
msgstr "已有卷"
|
||||
|
||||
|
|
@ -3658,7 +3658,7 @@ msgstr "设备"
|
|||
msgid "Remove"
|
||||
msgstr "移除"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2507
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2517
|
||||
msgid "Clone from template"
|
||||
msgstr "从模板克隆"
|
||||
|
||||
|
|
@ -4447,6 +4447,7 @@ msgid "Asks the guest to shut down."
|
|||
msgstr "请求客户机关机。"
|
||||
|
||||
#: instances/templates/instances/power_tab.html:59
|
||||
#: instances/templates/instances/settings_tab.html:123
|
||||
msgid "A template is not started: clone it to make a VM."
|
||||
msgstr "模板不能启动:请克隆它来创建虚拟机。"
|
||||
|
||||
|
|
@ -4683,6 +4684,10 @@ msgstr "自动启动"
|
|||
msgid "Start this VM when the host starts."
|
||||
msgstr "主机启动时启动此虚拟机。"
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:123
|
||||
msgid "A VM that exists only while it runs does not start with the host."
|
||||
msgstr "仅在运行期间存在的虚拟机不会随主机启动。"
|
||||
|
||||
#: instances/templates/instances/settings_tab.html:128
|
||||
msgid "Boot menu"
|
||||
msgstr "启动菜单"
|
||||
|
|
@ -5785,261 +5790,265 @@ msgstr ""
|
|||
msgid "Invalid disk options: %(options)s"
|
||||
msgstr "无效的磁盘选项:%(options)s"
|
||||
|
||||
#: instances/views.py:1011
|
||||
#: instances/views.py:831
|
||||
msgid "The VM was forced off but did not start again: it stays off."
|
||||
msgstr "虚拟机已被强制关机,但没有再次启动:它保持关机状态。"
|
||||
|
||||
#: instances/views.py:1016
|
||||
#, python-format
|
||||
msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)"
|
||||
msgstr "请先设置 %(compute)s 的 gstfsd 密钥(计算节点,编辑该主机)"
|
||||
|
||||
#: instances/views.py:1018 instances/views.py:1036 instances/views.py:1045
|
||||
#: instances/views.py:1023 instances/views.py:1041 instances/views.py:1050
|
||||
#, python-format
|
||||
msgid "gstfsd error: %(err)s"
|
||||
msgstr "gstfsd 错误:%(err)s"
|
||||
|
||||
#: instances/views.py:1046
|
||||
#: instances/views.py:1051
|
||||
msgid "the reply is not signed with the key"
|
||||
msgstr "回复未使用该密钥签名"
|
||||
|
||||
#: instances/views.py:1054
|
||||
#: instances/views.py:1059
|
||||
msgid "Shut the VM down, or start its QEMU guest agent, and try again"
|
||||
msgstr "请关闭虚拟机,或启动其 QEMU 客户机代理,然后重试"
|
||||
|
||||
#: instances/views.py:1067
|
||||
#: instances/views.py:1072
|
||||
msgid "The change may still be made when the agent answers again."
|
||||
msgstr "当代理再次响应时,此更改仍可能生效。"
|
||||
|
||||
#: instances/views.py:1095
|
||||
#: instances/views.py:1100
|
||||
msgid "Reset root password"
|
||||
msgstr "重置 root 密码"
|
||||
|
||||
#: instances/views.py:1099
|
||||
#: instances/views.py:1104
|
||||
msgid "Enter a password"
|
||||
msgstr "请输入密码"
|
||||
|
||||
#: instances/views.py:1113
|
||||
#: instances/views.py:1118
|
||||
msgid "Select an SSH public key"
|
||||
msgstr "请选择 SSH 公钥"
|
||||
|
||||
#: instances/views.py:1135
|
||||
#: instances/views.py:1140
|
||||
#, python-format
|
||||
msgid "Installed new SSH public key %(keyname)s"
|
||||
msgstr "已安装新的 SSH 公钥 %(keyname)s"
|
||||
|
||||
#: instances/views.py:1155
|
||||
#: instances/views.py:1160
|
||||
msgid "Enter a whole number of vCPUs"
|
||||
msgstr "请输入整数个 vCPU"
|
||||
|
||||
#: instances/views.py:1159
|
||||
#: instances/views.py:1164
|
||||
msgid "Shut off the VM to change its vCPUs"
|
||||
msgstr "请关闭虚拟机以更改其 vCPU"
|
||||
|
||||
#: instances/views.py:1162
|
||||
#: instances/views.py:1167
|
||||
msgid "The current vCPUs cannot be more than the maximum"
|
||||
msgstr "当前 vCPU 数不能超过最大值"
|
||||
|
||||
#: instances/views.py:1169
|
||||
#: instances/views.py:1174
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的 CPU。"
|
||||
|
||||
#: instances/views.py:1177
|
||||
#: instances/views.py:1182
|
||||
#, python-format
|
||||
msgid "vCPUs set to %(cur)s (maximum %(max)s)"
|
||||
msgstr "vCPU 已设为 %(cur)s(最大 %(max)s)"
|
||||
|
||||
#: instances/views.py:1196
|
||||
#: instances/views.py:1201
|
||||
msgid "Enter a whole number for memory"
|
||||
msgstr "请输入整数内存值"
|
||||
|
||||
#: instances/views.py:1199
|
||||
#: instances/views.py:1204
|
||||
msgid "The current memory cannot be more than the maximum"
|
||||
msgstr "当前内存不能超过最大值"
|
||||
|
||||
#: instances/views.py:1203
|
||||
#: instances/views.py:1208
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的内存。"
|
||||
|
||||
#: instances/views.py:1209
|
||||
#: instances/views.py:1214
|
||||
#, python-format
|
||||
msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)"
|
||||
msgstr "内存已设为 %(cur)s MiB(最大 %(max)s MiB)"
|
||||
|
||||
#: instances/views.py:1229
|
||||
#: instances/views.py:1234
|
||||
msgid "Enter disk sizes as whole GiB"
|
||||
msgstr "请以整数 GiB 输入磁盘大小"
|
||||
|
||||
#: instances/views.py:1233
|
||||
#: instances/views.py:1238
|
||||
#, python-format
|
||||
msgid "%(dev)s is %(size)s: a disk cannot shrink"
|
||||
msgstr "%(dev)s 为 %(size)s:磁盘不能缩小"
|
||||
|
||||
#: instances/views.py:1241
|
||||
#: instances/views.py:1246
|
||||
msgid "No disks were selected or valid for resizing."
|
||||
msgstr "未选择磁盘或没有可调整大小的有效磁盘。"
|
||||
|
||||
#: instances/views.py:1250
|
||||
#: instances/views.py:1255
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的磁盘。"
|
||||
|
||||
#: instances/views.py:1262
|
||||
#: instances/views.py:1267
|
||||
#, python-format
|
||||
msgid "The storage pool of %(dev)s cannot resize its volumes"
|
||||
msgstr "%(dev)s 所在的存储池无法调整其卷的大小"
|
||||
|
||||
#: instances/views.py:1264
|
||||
#: instances/views.py:1269
|
||||
#, python-format
|
||||
msgid "Disk is resized: %(dev)s"
|
||||
msgstr "磁盘已调整大小:%(dev)s"
|
||||
|
||||
#: instances/views.py:1358
|
||||
#: instances/views.py:1363
|
||||
msgid "The VM's machine has no PCIe slots to add"
|
||||
msgstr "该虚拟机的机器类型没有可添加的 PCIe 插槽"
|
||||
|
||||
#: instances/views.py:1363
|
||||
#: instances/views.py:1368
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added"
|
||||
msgstr "已添加 %(count)s 个 PCIe 插槽"
|
||||
|
||||
#: instances/views.py:1365
|
||||
#: instances/views.py:1370
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added: the VM gets them at its next start"
|
||||
msgstr "已添加 %(count)s 个 PCIe 插槽:虚拟机在下次启动时获得它们"
|
||||
|
||||
#: instances/views.py:1411
|
||||
#: instances/views.py:1416
|
||||
#, python-format
|
||||
msgid "%(volume)s is already a disk of this VM"
|
||||
msgstr "%(volume)s 已是此虚拟机的磁盘"
|
||||
|
||||
#: instances/views.py:1501
|
||||
#: instances/views.py:1506
|
||||
msgid "Volume changes are applied. But it will be activated after shutdown"
|
||||
msgstr "卷更改已应用,但将在关机后生效"
|
||||
|
||||
#: instances/views.py:1506
|
||||
#: instances/views.py:1511
|
||||
msgid "Volume is changed successfully."
|
||||
msgstr "卷已成功更改。"
|
||||
|
||||
#: instances/views.py:1526
|
||||
#: instances/views.py:1531
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a storage volume of this instance"
|
||||
msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷"
|
||||
|
||||
#: instances/views.py:1531 vrtManager/instance.py:2305
|
||||
#: instances/views.py:1536 vrtManager/instance.py:2305
|
||||
msgid "The VM has a saved state; start it or remove the saved state first"
|
||||
msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态"
|
||||
|
||||
#: instances/views.py:1537
|
||||
#: instances/views.py:1542
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down"
|
||||
msgstr "磁盘 %(dev)s 有待生效的更改;请在虚拟机关机后删除它"
|
||||
|
||||
#: instances/views.py:1552
|
||||
#: instances/views.py:1557
|
||||
#, python-format
|
||||
msgid "Volume %(vol)s is used by another VM; detach it instead"
|
||||
msgstr "卷 %(vol)s 正被另一台虚拟机使用;请改为分离它"
|
||||
|
||||
#: instances/views.py:1564
|
||||
#: instances/views.py:1569
|
||||
#, 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:1575
|
||||
#: instances/views.py:1580
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s"
|
||||
msgstr "磁盘 %(dev)s 已分离,但其卷已保留:%(err)s"
|
||||
|
||||
#: instances/views.py:1603
|
||||
#: instances/views.py:1608
|
||||
#, python-format
|
||||
msgid "This VM cannot take a CD-ROM on the %(bus)s bus now"
|
||||
msgstr "该虚拟机现在无法在 %(bus)s 总线上添加 CD-ROM"
|
||||
|
||||
#: instances/views.py:1606
|
||||
#: instances/views.py:1611
|
||||
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:1611
|
||||
#: instances/views.py:1616
|
||||
#, python-format
|
||||
msgid "%(image)s is already in a CD-ROM of this VM"
|
||||
msgstr "%(image)s 已在此虚拟机的某个光驱中"
|
||||
|
||||
#: instances/views.py:1692
|
||||
#: instances/views.py:1697
|
||||
#, python-format
|
||||
msgid "Pool %(pool)s was not read again: %(err)s"
|
||||
msgstr "未重新读取存储池 %(pool)s:%(err)s"
|
||||
|
||||
#: instances/views.py:1713
|
||||
#: instances/views.py:1718
|
||||
#, python-format
|
||||
msgid "Snapshot was not deleted: %(err)s"
|
||||
msgstr "快照未删除:%(err)s"
|
||||
|
||||
#: instances/views.py:1828
|
||||
#: instances/views.py:1836
|
||||
msgid "Add at least one device to the boot order."
|
||||
msgstr "请至少向启动顺序中添加一个设备。"
|
||||
|
||||
#: instances/views.py:1834 vrtManager/instance.py:1108
|
||||
#: instances/views.py:1842 vrtManager/instance.py:1108
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "启动顺序的设备类型无效"
|
||||
|
||||
#: instances/views.py:1845
|
||||
#: instances/views.py:1853
|
||||
msgid "Boot order changed. It applies at the next start."
|
||||
msgstr "启动顺序已更改,将在下次启动时生效。"
|
||||
|
||||
#: instances/views.py:1847
|
||||
#: instances/views.py:1855
|
||||
msgid "Boot order changed successfully."
|
||||
msgstr "启动顺序已成功更改。"
|
||||
|
||||
#: instances/views.py:1867
|
||||
#: instances/views.py:1875
|
||||
msgid "The XML is empty"
|
||||
msgstr "XML 为空"
|
||||
|
||||
#: instances/views.py:1871 instances/views.py:2496
|
||||
#: instances/views.py:1879 instances/views.py:2506
|
||||
#, python-format
|
||||
msgid "The XML is not well-formed: %(error)s"
|
||||
msgstr "XML 格式不正确:%(error)s"
|
||||
|
||||
#: instances/views.py:1873
|
||||
#: instances/views.py:1881
|
||||
#, python-format
|
||||
msgid "The XML must keep the VM's UUID %(uuid)s."
|
||||
msgstr "XML 必须保留虚拟机的 UUID %(uuid)s。"
|
||||
|
||||
#: instances/views.py:1877
|
||||
#: instances/views.py:1885
|
||||
msgid ""
|
||||
"The definition has changed since the editor was opened. Reload the page to "
|
||||
"edit the current one."
|
||||
msgstr "自打开编辑器以来定义已被更改。请重新加载页面以编辑当前定义。"
|
||||
|
||||
#: instances/views.py:1889
|
||||
#: instances/views.py:1897
|
||||
msgid "The XML definition was saved."
|
||||
msgstr "XML 定义已保存。"
|
||||
|
||||
#: instances/views.py:1891
|
||||
#: instances/views.py:1899
|
||||
msgid "The XML definition was saved; the VM uses it from its next start."
|
||||
msgstr "XML 定义已保存;虚拟机从下次启动起使用它。"
|
||||
|
||||
#: instances/views.py:1972
|
||||
#: instances/views.py:1980
|
||||
msgid "Select one network interface to change"
|
||||
msgstr "请选择一个要更改的网络接口"
|
||||
|
||||
#: instances/views.py:2010
|
||||
#: instances/views.py:2018
|
||||
msgid "Network Device Config is changed. Please shutdown instance to activate."
|
||||
msgstr "网络设备配置已更改。请关闭虚拟机以使其生效。"
|
||||
|
||||
#: instances/views.py:2012
|
||||
#: instances/views.py:2020
|
||||
msgid "Network device changed"
|
||||
msgstr "网络设备已更改"
|
||||
|
||||
#: instances/views.py:2024
|
||||
#: instances/views.py:2032
|
||||
msgid "No network selected"
|
||||
msgstr "未选择网络"
|
||||
|
||||
#: instances/views.py:2029
|
||||
#: instances/views.py:2037
|
||||
#, python-format
|
||||
msgid "The VM already has a network device with MAC %(mac)s"
|
||||
msgstr "虚拟机已有 MAC 地址为 %(mac)s 的网络设备"
|
||||
|
||||
#: instances/views.py:2048
|
||||
#: instances/views.py:2056
|
||||
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 "
|
||||
|
|
@ -6047,136 +6056,136 @@ msgid ""
|
|||
msgstr ""
|
||||
"运行中的虚拟机没有可用 PCI 插槽来添加网络设备:请关机后再添加设备。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。"
|
||||
|
||||
#: instances/views.py:2089 instances/views.py:2095
|
||||
#: instances/views.py:2097 instances/views.py:2103
|
||||
msgid "The VM has it"
|
||||
msgstr "虚拟机已有此设备"
|
||||
|
||||
#: instances/views.py:2126
|
||||
#: instances/views.py:2134
|
||||
#, python-format
|
||||
msgid "The host has no USB device %(device)s"
|
||||
msgstr "主机上没有 USB 设备 %(device)s"
|
||||
|
||||
#: instances/views.py:2147
|
||||
#: instances/views.py:2155
|
||||
#, python-format
|
||||
msgid "The host has no PCI device %(device)s"
|
||||
msgstr "主机上没有 PCI 设备 %(device)s"
|
||||
|
||||
#: instances/views.py:2165
|
||||
#: instances/views.py:2173
|
||||
#, 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:2210 instances/views.py:2240
|
||||
#: instances/views.py:2218 instances/views.py:2248
|
||||
msgid "Select a network interface and a QoS direction"
|
||||
msgstr "请选择网络接口和 QoS 方向"
|
||||
|
||||
#: instances/views.py:2213 vrtManager/network.py:454
|
||||
#: instances/views.py:2221 vrtManager/network.py:454
|
||||
msgid "QoS rates must be whole numbers"
|
||||
msgstr "QoS 速率必须为整数"
|
||||
|
||||
#: instances/views.py:2220 networks/views.py:229
|
||||
#: instances/views.py:2228 networks/views.py:229
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is set"
|
||||
msgstr "%(qos_dir)s QoS 已设置"
|
||||
|
||||
#: instances/views.py:2225
|
||||
#: instances/views.py:2233
|
||||
#, 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:2247 networks/views.py:255
|
||||
#: instances/views.py:2255 networks/views.py:255
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is deleted"
|
||||
msgstr "%(qos_dir)s QoS 已删除"
|
||||
|
||||
#: instances/views.py:2252
|
||||
#: instances/views.py:2260
|
||||
#, 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:2280
|
||||
#: instances/views.py:2288
|
||||
msgid "Only one owner is allowed and the one already added"
|
||||
msgstr "只允许一个所有者,且已添加"
|
||||
|
||||
#: instances/views.py:2282
|
||||
#: instances/views.py:2290
|
||||
#, python-format
|
||||
msgid "%(user)s is already an owner"
|
||||
msgstr "%(user)s 已是所有者"
|
||||
|
||||
#: instances/views.py:2327
|
||||
#: instances/views.py:2335
|
||||
#, python-format
|
||||
msgid "Console settings were not saved: %(errors)s"
|
||||
msgstr "控制台设置未保存:%(errors)s"
|
||||
|
||||
#: instances/views.py:2349
|
||||
#: instances/views.py:2357
|
||||
msgid ""
|
||||
"Error setting console password. You should check that your instance have an "
|
||||
"graphic device."
|
||||
msgstr "设置控制台密码出错。请检查虚拟机是否有图形设备。"
|
||||
|
||||
#: instances/views.py:2396
|
||||
#: instances/views.py:2404
|
||||
msgid "Shut the VM down to change whether it is a template."
|
||||
msgstr "请关闭虚拟机以更改其是否为模板。"
|
||||
|
||||
#: instances/views.py:2402
|
||||
#: instances/views.py:2410
|
||||
#, python-format
|
||||
msgid "%(quota)s: '%(instance_name)s' stays a template."
|
||||
msgstr "%(quota)s:“%(instance_name)s”仍为模板。"
|
||||
|
||||
#: instances/views.py:2484
|
||||
#: instances/views.py:2494
|
||||
msgid "The XML has no name"
|
||||
msgstr "XML 中没有名称"
|
||||
|
||||
#: instances/views.py:2498 webvirtcloud/middleware.py:156
|
||||
#: instances/views.py:2508 webvirtcloud/middleware.py:156
|
||||
#, python-format
|
||||
msgid "libvirt Error - %(exception)s"
|
||||
msgstr "libvirt 错误 - %(exception)s"
|
||||
|
||||
#: instances/views.py:2505
|
||||
#: instances/views.py:2515
|
||||
msgid "An empty disk of the size you set"
|
||||
msgstr "按设定大小创建的空磁盘"
|
||||
|
||||
#: instances/views.py:2506
|
||||
#: instances/views.py:2516
|
||||
msgid "Volumes already in a pool"
|
||||
msgstr "存储池中已有的卷"
|
||||
|
||||
#: instances/views.py:2507
|
||||
#: instances/views.py:2517
|
||||
msgid "A copy of a template volume"
|
||||
msgstr "模板卷的副本"
|
||||
|
||||
#: instances/views.py:2585
|
||||
#: instances/views.py:2595
|
||||
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:2587
|
||||
#: instances/views.py:2597
|
||||
msgid "This host has no network for the VM: add one on its Networks page."
|
||||
msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。"
|
||||
|
||||
#: instances/views.py:2619
|
||||
#: instances/views.py:2629
|
||||
#, python-format
|
||||
msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it"
|
||||
msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它"
|
||||
|
||||
#: instances/views.py:2646
|
||||
#: instances/views.py:2656
|
||||
msgid "Flavor Created"
|
||||
msgstr "规格已创建"
|
||||
|
||||
#: instances/views.py:2654
|
||||
#: instances/views.py:2664
|
||||
msgid "Create Flavor"
|
||||
msgstr "创建规格"
|
||||
|
||||
#: instances/views.py:2666
|
||||
#: instances/views.py:2676
|
||||
msgid "Flavor Deleted"
|
||||
msgstr "规格已删除"
|
||||
|
||||
#: instances/views.py:2672
|
||||
#: instances/views.py:2682
|
||||
msgid "Only the size template goes; VMs made from it keep their size."
|
||||
msgstr "仅删除此规格;由它创建的虚拟机保持其大小。"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue