mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 17:06:09 +00:00
fix(instances): the root password and SSH key a setting turns off are refused
Settings > "Show Root Password" and "Show SSH Keys" hid their forms on the Access tab, but an owner who may change the VM could still post to them and reset its root password or install a key. Both are now refused while their setting is off. A password longer than 4096 characters or with a NUL character, which passlib does not hash, ended in a 500; it is now refused with a message.
This commit is contained in:
parent
8e990e7d1a
commit
87f7100fc9
9 changed files with 306 additions and 253 deletions
|
|
@ -9,6 +9,7 @@ from django.contrib.messages import get_messages
|
|||
from django.test import TestCase
|
||||
from django.urls import reverse
|
||||
|
||||
from appsettings.models import AppSettings
|
||||
from computes.models import Compute
|
||||
from instances.models import Instance
|
||||
from logs.models import Logs
|
||||
|
|
@ -16,6 +17,7 @@ from logs.models import Logs
|
|||
|
||||
class MissingFieldTestCase(TestCase):
|
||||
def setUp(self):
|
||||
AppSettings.objects.filter(key__startswith="SHOW_ACCESS_").update(value="True") # the Access forms are on
|
||||
self.client.force_login(get_user_model().objects.create_superuser("mf", "mf@example.com", "pw"))
|
||||
Logs.objects.all().delete() # the login's row
|
||||
self.compute = Compute.objects.create(name="mf-c", hostname="127.0.0.1", login="", password="", type=4)
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ from django.contrib.messages import get_messages
|
|||
from django.test import TestCase
|
||||
from django.urls import reverse
|
||||
|
||||
from appsettings.models import AppSettings
|
||||
from computes.models import Compute
|
||||
from instances.models import Instance
|
||||
from libvirt import libvirtError
|
||||
|
|
@ -14,6 +15,7 @@ from vrtManager.util import OperationError
|
|||
|
||||
class SetRootPassTestCase(TestCase):
|
||||
def setUp(self):
|
||||
AppSettings.objects.filter(key__startswith="SHOW_ACCESS_").update(value="True") # the Access forms are on
|
||||
self.admin = get_user_model().objects.create_superuser("tests-admin", "admin@example.com", "pw")
|
||||
self.client.force_login(self.admin)
|
||||
self.compute = Compute.objects.create(
|
||||
|
|
@ -51,6 +53,34 @@ class SetRootPassTestCase(TestCase):
|
|||
self.assertFalse(data["passwd"].startswith("$6$kgPoiREy$"))
|
||||
self.assertTrue(sha512_crypt.verify("newSecretPassword123", data["passwd"]))
|
||||
|
||||
@patch("instances.views.gstfsd_request")
|
||||
@patch.object(Instance, "proxy")
|
||||
def test_an_access_turned_off_in_settings_is_refused(self, mock_proxy, gstfsd):
|
||||
# the setting hides the form: a POST does not reach the VM either
|
||||
from accounts.models import UserSSHKey
|
||||
|
||||
key = UserSSHKey.objects.create(user=self.admin, keyname="k", keypublic="ssh-ed25519 AAAA k")
|
||||
mock_proxy.get_status.return_value = 5
|
||||
AppSettings.objects.filter(key__startswith="SHOW_ACCESS_").update(value="False")
|
||||
for name, data in (("rootpasswd", {"passwd": "x"}), ("add_public_key", {"sshkeyid": key.id})):
|
||||
with self.subTest(name):
|
||||
response = self.client.post(reverse(f"instances:{name}", args=[self.instance.id]), data)
|
||||
self.assertEqual(response.status_code, 403)
|
||||
gstfsd.assert_not_called()
|
||||
|
||||
@patch("instances.views.gstfsd_request")
|
||||
@patch.object(Instance, "proxy")
|
||||
def test_a_password_that_cannot_be_hashed_is_refused_in_words(self, mock_proxy, gstfsd):
|
||||
mock_proxy.get_status.return_value = 5
|
||||
for passwd in ("a" * 4097, "a\x00b"):
|
||||
with self.subTest(len(passwd)):
|
||||
response = self.client.post(reverse("instances:rootpasswd", args=[self.instance.id]), {"passwd": passwd})
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.assertEqual([str(m) for m in get_messages(response.wsgi_request)],
|
||||
["Enter a password of at most 4096 characters, without NUL characters"])
|
||||
self.client.cookies.pop("messages", None)
|
||||
gstfsd.assert_not_called()
|
||||
|
||||
def test_set_root_pass_get_not_allowed(self):
|
||||
response = self.client.get(reverse("instances:rootpasswd", args=[self.instance.id]))
|
||||
self.assertEqual(response.status_code, 405)
|
||||
|
|
@ -94,6 +124,7 @@ class GuestAgentAccessTestCase(TestCase):
|
|||
key through the agent; gstfsd serves only a shut-off VM."""
|
||||
|
||||
def setUp(self):
|
||||
AppSettings.objects.filter(key__startswith="SHOW_ACCESS_").update(value="True") # the Access forms are on
|
||||
from accounts.models import UserSSHKey
|
||||
from django.contrib.auth import get_user_model
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ from unittest.mock import patch
|
|||
|
||||
import libvirt
|
||||
from computes.models import Compute
|
||||
from appsettings.models import AppSettings
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.contrib.messages import get_messages
|
||||
from django.test import TestCase
|
||||
|
|
@ -19,6 +20,7 @@ UUID = "11111111-2222-3333-4444-555555555555"
|
|||
|
||||
class VMRowTests(TestCase):
|
||||
def setUp(self):
|
||||
AppSettings.objects.filter(key__startswith="SHOW_ACCESS_").update(value="True") # the Access forms are on
|
||||
self.client.force_login(get_user_model().objects.create_superuser("vm-admin", "vm@example.com", "pw"))
|
||||
self.client.raise_request_exception = False
|
||||
compute = Compute.objects.create(name="c1", hostname="192.0.2.1", login="", password="", type=4)
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ from django.utils.translation import gettext as _
|
|||
from django.utils.translation import gettext_lazy, gettext_noop
|
||||
from django.views.decorators.http import require_POST
|
||||
from django.views.decorators.debug import sensitive_post_parameters
|
||||
from passlib.exc import PasswordValueError
|
||||
from passlib.hash import sha512_crypt
|
||||
from libvirt import (VIR_DOMAIN_PAUSED,
|
||||
VIR_DOMAIN_RUNNING,
|
||||
|
|
@ -1093,39 +1094,45 @@ def access_error(request, err):
|
|||
@serialize_instance_mutation
|
||||
def set_root_pass(request, pk):
|
||||
instance = get_instance(request.user, pk, perm_type="change")
|
||||
if app_settings.SHOW_ACCESS_ROOT_PASSWORD != "True": # turned off in Settings, the form too
|
||||
raise PermissionDenied
|
||||
back = get_safe_redirect(request, default=reverse("instances:instance", args=[instance.id]) + "#access")
|
||||
|
||||
if request.method == "POST":
|
||||
passwd = request.POST.get("passwd", None)
|
||||
if passwd:
|
||||
passwd_hash = sha512_crypt.hash(passwd)
|
||||
# gstfsd opens the domain by name: send the host's current one.
|
||||
data = {"action": "password", "passwd": passwd_hash, "vname": instance.proxy.instance.name()}
|
||||
passwd = request.POST.get("passwd", "")
|
||||
if not passwd:
|
||||
messages.error(request, _("Enter a password"))
|
||||
return back
|
||||
try:
|
||||
passwd_hash = sha512_crypt.hash(passwd)
|
||||
except PasswordValueError:
|
||||
messages.error(request, _("Enter a password of at most 4096 characters, without NUL characters"))
|
||||
return back
|
||||
# gstfsd opens the domain by name: send the host's current one.
|
||||
data = {"action": "password", "passwd": passwd_hash, "vname": instance.proxy.instance.name()}
|
||||
|
||||
status = instance.proxy.get_status()
|
||||
if status == 5 or (status == 1 and instance.guest_agent_ready):
|
||||
try:
|
||||
with audit_vm(request, instance, "reset root password"):
|
||||
if status == 5:
|
||||
gstfsd_request(instance.compute, data)
|
||||
else:
|
||||
instance.proxy.set_user_password("root", passwd_hash)
|
||||
except (util.OperationError, libvirtError) as err:
|
||||
messages.error(request, access_error(request, err))
|
||||
status = instance.proxy.get_status()
|
||||
if status == 5 or (status == 1 and instance.guest_agent_ready):
|
||||
try:
|
||||
with audit_vm(request, instance, "reset root password"):
|
||||
if status == 5:
|
||||
gstfsd_request(instance.compute, data)
|
||||
else:
|
||||
messages.success(request, _("Reset root password"))
|
||||
else:
|
||||
messages.error(request, AGENT_OR_SHUT_OFF)
|
||||
instance.proxy.set_user_password("root", passwd_hash)
|
||||
except (util.OperationError, libvirtError) as err:
|
||||
messages.error(request, access_error(request, err))
|
||||
else:
|
||||
messages.error(request, _("Enter a password"))
|
||||
return get_safe_redirect(
|
||||
request, default=reverse("instances:instance", args=[instance.id]) + "#access"
|
||||
)
|
||||
messages.success(request, _("Reset root password"))
|
||||
else:
|
||||
messages.error(request, AGENT_OR_SHUT_OFF)
|
||||
return back
|
||||
|
||||
|
||||
@require_POST
|
||||
@serialize_instance_mutation
|
||||
def add_public_key(request, pk):
|
||||
instance = get_instance(request.user, pk, perm_type="change")
|
||||
if app_settings.SHOW_ACCESS_SSH_KEYS != "True": # turned off in Settings, the form too
|
||||
raise PermissionDenied
|
||||
|
||||
if request.method == "POST":
|
||||
sshkeyid = request.POST.get("sshkeyid", "")
|
||||
|
|
|
|||
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-12 19:09+0000\n"
|
||||
"POT-Creation-Date: 2026-11-13 05:09+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"
|
||||
|
|
@ -938,7 +938,7 @@ msgid "IP"
|
|||
msgstr "IP"
|
||||
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:292 instances/states.py:19
|
||||
#: instances/views.py:425 instances/views.py:427 logs/views.py:18
|
||||
#: instances/views.py:426 instances/views.py:428 logs/views.py:18
|
||||
msgid "Unknown"
|
||||
msgstr "Bilinmeyen"
|
||||
|
||||
|
|
@ -2734,7 +2734,7 @@ msgstr ""
|
|||
"VNC olarak değiştirin."
|
||||
|
||||
#: instances/api/viewsets.py:149 instances/api/viewsets.py:167
|
||||
#: instances/views.py:815 instances/views.py:835 instances/views.py:1811
|
||||
#: instances/views.py:816 instances/views.py:836 instances/views.py:1818
|
||||
msgid "Templates cannot be started."
|
||||
msgstr "Şablon makineler başlatılamaz."
|
||||
|
||||
|
|
@ -3090,7 +3090,7 @@ msgstr ""
|
|||
msgid "Create VM"
|
||||
msgstr "Sanal makine oluştur"
|
||||
|
||||
#: instances/jobs.py:895 instances/jobs.py:940 instances/views.py:2528
|
||||
#: instances/jobs.py:895 instances/jobs.py:940 instances/views.py:2535
|
||||
msgid "A virtual machine with this name already exists"
|
||||
msgstr "Bu isimde bir sanal makine mevcut"
|
||||
|
||||
|
|
@ -3454,7 +3454,7 @@ msgid "Disk source"
|
|||
msgstr "Disk kaynağı"
|
||||
|
||||
#: instances/templates/add_instance_volume.html:21
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2548
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2555
|
||||
msgid "New disk"
|
||||
msgstr "Yeni disk"
|
||||
|
||||
|
|
@ -3840,7 +3840,7 @@ msgstr "Özel CPU modelleri"
|
|||
msgid "Size (GiB)"
|
||||
msgstr "Boyut (GiB)"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2549
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2556
|
||||
msgid "Existing volumes"
|
||||
msgstr "Mevcut birimler"
|
||||
|
||||
|
|
@ -3876,7 +3876,7 @@ msgstr "Aygıt"
|
|||
msgid "Remove"
|
||||
msgstr "Kaldır"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2550
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2557
|
||||
msgid "Clone from template"
|
||||
msgstr "Şablondan klonla"
|
||||
|
||||
|
|
@ -6111,43 +6111,43 @@ msgstr "Geçersiz MAC adresi"
|
|||
msgid "More MAC addresses than networks"
|
||||
msgstr "Ağlardan daha fazla MAC adresi"
|
||||
|
||||
#: instances/views.py:178
|
||||
#: instances/views.py:179
|
||||
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:184 instances/views.py:218
|
||||
#: instances/views.py:185 instances/views.py:219
|
||||
msgid "Too many searches are still running; try again shortly."
|
||||
msgstr "Çok fazla arama hâlâ çalışıyor; birazdan yeniden deneyin."
|
||||
|
||||
#: instances/views.py:266
|
||||
#: instances/views.py:267
|
||||
#, 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:272
|
||||
#: instances/views.py:273
|
||||
#, 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:273
|
||||
#: instances/views.py:274
|
||||
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:281
|
||||
#: instances/views.py:282
|
||||
#, python-format
|
||||
msgid "'%(name)s' is no longer on its host."
|
||||
msgstr "'%(name)s' artık sunucusunda yok."
|
||||
|
||||
#: instances/views.py:368
|
||||
#: instances/views.py:369
|
||||
msgid "There is no other host to migrate to."
|
||||
msgstr "Taşınacak başka bir sunucu yok."
|
||||
|
||||
#: instances/views.py:370
|
||||
#: instances/views.py:371
|
||||
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:372
|
||||
#: instances/views.py:373
|
||||
msgid ""
|
||||
"A VM with snapshots cannot be migrated: its snapshots stay on this host. "
|
||||
"Delete them first."
|
||||
|
|
@ -6155,7 +6155,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:374
|
||||
#: instances/views.py:375
|
||||
msgid ""
|
||||
"A VM with host devices cannot be migrated: the destination may not have them."
|
||||
" Remove them first."
|
||||
|
|
@ -6163,16 +6163,16 @@ msgstr ""
|
|||
"Sunucu aygıtları olan bir sanal makine taşınamaz: hedefte bu aygıtlar "
|
||||
"olmayabilir. Önce onları kaldırın."
|
||||
|
||||
#: instances/views.py:586
|
||||
#: instances/views.py:587
|
||||
#, 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:661 instances/views.py:662
|
||||
#: instances/views.py:662 instances/views.py:663
|
||||
msgid "The VM was moved meanwhile; try again."
|
||||
msgstr "Sanal makine bu arada taşındı; yeniden deneyin."
|
||||
|
||||
#: instances/views.py:778
|
||||
#: instances/views.py:779
|
||||
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 "
|
||||
|
|
@ -6185,7 +6185,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:782
|
||||
#: instances/views.py:783
|
||||
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"
|
||||
|
|
@ -6197,191 +6197,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:800
|
||||
#: instances/views.py:801
|
||||
#, python-format
|
||||
msgid "Invalid disk options: %(options)s"
|
||||
msgstr "Geçersiz disk seçenekleri: %(options)s"
|
||||
|
||||
#: instances/views.py:812 instances/views.py:903
|
||||
#: instances/views.py:813 instances/views.py:904
|
||||
#, python-format
|
||||
msgid "Invalid options: %(options)s"
|
||||
msgstr "Geçersiz seçenekler: %(options)s"
|
||||
|
||||
#: instances/views.py:844
|
||||
#: instances/views.py:845
|
||||
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:1031
|
||||
#: instances/views.py:1032
|
||||
#, 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:1038 instances/views.py:1056 instances/views.py:1065
|
||||
#: instances/views.py:1039 instances/views.py:1057 instances/views.py:1066
|
||||
#, python-format
|
||||
msgid "gstfsd error: %(err)s"
|
||||
msgstr "gstfsd hatası: %(err)s"
|
||||
|
||||
#: instances/views.py:1066
|
||||
#: instances/views.py:1067
|
||||
msgid "the reply is not signed with the key"
|
||||
msgstr "yanıt anahtarla imzalanmamış"
|
||||
|
||||
#: instances/views.py:1074
|
||||
#: instances/views.py:1075
|
||||
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:1087
|
||||
#: instances/views.py:1088
|
||||
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:1115
|
||||
msgid "Reset root password"
|
||||
msgstr "Root parolasını sıfırla"
|
||||
|
||||
#: instances/views.py:1119
|
||||
#: instances/views.py:1103
|
||||
msgid "Enter a password"
|
||||
msgstr "Bir parola girin"
|
||||
|
||||
#: instances/views.py:1133
|
||||
#: instances/views.py:1108
|
||||
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:1124
|
||||
msgid "Reset root password"
|
||||
msgstr "Root parolasını sıfırla"
|
||||
|
||||
#: instances/views.py:1140
|
||||
msgid "Select an SSH public key"
|
||||
msgstr "Bir SSH açık anahtarı seçin"
|
||||
|
||||
#: instances/views.py:1155
|
||||
#: instances/views.py:1162
|
||||
#, python-format
|
||||
msgid "Installed new SSH public key %(keyname)s"
|
||||
msgstr "Yeni %(keyname)s SSH açık anahtarı yüklendi"
|
||||
|
||||
#: instances/views.py:1175
|
||||
#: instances/views.py:1182
|
||||
msgid "Enter a whole number of vCPUs"
|
||||
msgstr "vCPU sayısı için bir tam sayı girin"
|
||||
|
||||
#: instances/views.py:1179
|
||||
#: instances/views.py:1186
|
||||
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:1182
|
||||
#: instances/views.py:1189
|
||||
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:1189
|
||||
#: instances/views.py:1196
|
||||
#, 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:1197
|
||||
#: instances/views.py:1204
|
||||
#, 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:1216
|
||||
#: instances/views.py:1223
|
||||
msgid "Enter a whole number for memory"
|
||||
msgstr "Bellek için bir tam sayı girin"
|
||||
|
||||
#: instances/views.py:1219
|
||||
#: instances/views.py:1226
|
||||
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:1223
|
||||
#: instances/views.py:1230
|
||||
#, 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:1229
|
||||
#: instances/views.py:1236
|
||||
#, 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:1249
|
||||
#: instances/views.py:1256
|
||||
msgid "Enter disk sizes as whole GiB"
|
||||
msgstr "Disk boyutlarını tam GiB olarak girin"
|
||||
|
||||
#: instances/views.py:1253
|
||||
#: instances/views.py:1260
|
||||
#, 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:1257
|
||||
#: instances/views.py:1264
|
||||
#, 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:1265
|
||||
#: instances/views.py:1272
|
||||
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:1274
|
||||
#: instances/views.py:1281
|
||||
#, 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:1286
|
||||
#: instances/views.py:1293
|
||||
#, 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:1288
|
||||
#: instances/views.py:1295
|
||||
#, python-format
|
||||
msgid "Disk is resized: %(dev)s"
|
||||
msgstr "Disk boyutu değiştirildi: %(dev)s"
|
||||
|
||||
#: instances/views.py:1382
|
||||
#: instances/views.py:1389
|
||||
msgid "The VM's machine has no PCIe slots to add"
|
||||
msgstr "Sanal makinenin makine tipinde eklenecek PCIe yuvası yok"
|
||||
|
||||
#: instances/views.py:1387
|
||||
#: instances/views.py:1394
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added"
|
||||
msgstr "%(count)s PCIe yuvası eklendi"
|
||||
|
||||
#: instances/views.py:1389
|
||||
#: instances/views.py:1396
|
||||
#, 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:1435
|
||||
#: instances/views.py:1442
|
||||
#, python-format
|
||||
msgid "%(volume)s is already a disk of this VM"
|
||||
msgstr "%(volume)s zaten bu sanal makinenin bir diski"
|
||||
|
||||
#: instances/views.py:1525
|
||||
#: instances/views.py:1532
|
||||
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:1530
|
||||
#: instances/views.py:1537
|
||||
msgid "Volume is changed successfully."
|
||||
msgstr "Birim başarıyla değiştirildi."
|
||||
|
||||
#: instances/views.py:1550
|
||||
#: instances/views.py:1557
|
||||
#, 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:1555 vrtManager/instance.py:2346
|
||||
#: instances/views.py:1562 vrtManager/instance.py:2346
|
||||
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:1561
|
||||
#: instances/views.py:1568
|
||||
#, 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:1576
|
||||
#: instances/views.py:1583
|
||||
#, 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:1588
|
||||
#: instances/views.py:1595
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete "
|
||||
|
|
@ -6390,66 +6394,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:1599
|
||||
#: instances/views.py:1606
|
||||
#, 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:1627
|
||||
#: instances/views.py:1634
|
||||
#, 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:1630
|
||||
#: instances/views.py:1637
|
||||
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:1635
|
||||
#: instances/views.py:1642
|
||||
#, 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:1716
|
||||
#: instances/views.py:1723
|
||||
#, python-format
|
||||
msgid "Pool %(pool)s was not read again: %(err)s"
|
||||
msgstr "%(pool)s havuzu yeniden okunamadı: %(err)s"
|
||||
|
||||
#: instances/views.py:1737
|
||||
#: instances/views.py:1744
|
||||
#, python-format
|
||||
msgid "Snapshot was not deleted: %(err)s"
|
||||
msgstr "Anlık görüntü silinmedi: %(err)s"
|
||||
|
||||
#: instances/views.py:1855
|
||||
#: instances/views.py:1862
|
||||
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:1861 vrtManager/instance.py:1145
|
||||
#: instances/views.py:1868 vrtManager/instance.py:1145
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "Ön yükleme sırası için geçersiz aygıt türü"
|
||||
|
||||
#: instances/views.py:1872
|
||||
#: instances/views.py:1879
|
||||
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:1874
|
||||
#: instances/views.py:1881
|
||||
msgid "Boot order changed successfully."
|
||||
msgstr "Ön yükleme sırası başarıyla değiştirildi."
|
||||
|
||||
#: instances/views.py:1894
|
||||
#: instances/views.py:1901
|
||||
msgid "The XML is empty"
|
||||
msgstr "XML boş"
|
||||
|
||||
#: instances/views.py:1898 instances/views.py:2539
|
||||
#: instances/views.py:1905 instances/views.py:2546
|
||||
#, python-format
|
||||
msgid "The XML is not well-formed: %(error)s"
|
||||
msgstr "XML düzgün biçimlendirilmemiş: %(error)s"
|
||||
|
||||
#: instances/views.py:1900
|
||||
#: instances/views.py:1907
|
||||
#, 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:1904
|
||||
#: instances/views.py:1911
|
||||
msgid ""
|
||||
"The definition has changed since the editor was opened. Reload the page to "
|
||||
"edit the current one."
|
||||
|
|
@ -6457,40 +6461,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:1920
|
||||
#: instances/views.py:1927
|
||||
msgid "The XML definition was saved."
|
||||
msgstr "XML tanımı kaydedildi."
|
||||
|
||||
#: instances/views.py:1922
|
||||
#: instances/views.py:1929
|
||||
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:2003
|
||||
#: instances/views.py:2010
|
||||
msgid "Select one network interface to change"
|
||||
msgstr "Değiştirilecek bir ağ arabirimi seçin"
|
||||
|
||||
#: instances/views.py:2041
|
||||
#: instances/views.py:2048
|
||||
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:2043
|
||||
#: instances/views.py:2050
|
||||
msgid "Network device changed"
|
||||
msgstr "Ağ aygıtı değiştirildi"
|
||||
|
||||
#: instances/views.py:2055
|
||||
#: instances/views.py:2062
|
||||
msgid "No network selected"
|
||||
msgstr "Ağ seçilmedi"
|
||||
|
||||
#: instances/views.py:2060
|
||||
#: instances/views.py:2067
|
||||
#, 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:2079
|
||||
#: instances/views.py:2086
|
||||
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 "
|
||||
|
|
@ -6500,21 +6504,21 @@ msgstr ""
|
|||
"aygıtı sonra ekleyin; Diskler sekmesindeki PCIe yuvaları ekle, sonraki "
|
||||
"başlatmadan itibaren ona boş yuvalar verir."
|
||||
|
||||
#: instances/views.py:2125 instances/views.py:2131
|
||||
#: instances/views.py:2132 instances/views.py:2138
|
||||
msgid "The VM has it"
|
||||
msgstr "Sanal makinede var"
|
||||
|
||||
#: instances/views.py:2166
|
||||
#: instances/views.py:2173
|
||||
#, 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:2187
|
||||
#: instances/views.py:2194
|
||||
#, python-format
|
||||
msgid "The host has no PCI device %(device)s"
|
||||
msgstr "Sunucuda %(device)s PCI aygıtı yok"
|
||||
|
||||
#: instances/views.py:2205
|
||||
#: instances/views.py:2212
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Removal of PCI device %(address)s requested: the guest has not let it go yet;"
|
||||
|
|
@ -6524,20 +6528,20 @@ msgstr ""
|
|||
"bırakmadı; bırakana ya da sanal makine durana kadar çalışan sanal makinede "
|
||||
"kalır."
|
||||
|
||||
#: instances/views.py:2250 instances/views.py:2280
|
||||
#: instances/views.py:2257 instances/views.py:2287
|
||||
msgid "Select a network interface and a QoS direction"
|
||||
msgstr "Bir ağ arabirimi ve bir QoS yönü seçin"
|
||||
|
||||
#: instances/views.py:2253 vrtManager/network.py:470
|
||||
#: instances/views.py:2260 vrtManager/network.py:470
|
||||
msgid "QoS rates must be whole numbers"
|
||||
msgstr "QoS hızları tam sayı olmalıdır"
|
||||
|
||||
#: instances/views.py:2260 networks/views.py:230
|
||||
#: instances/views.py:2267 networks/views.py:230
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is set"
|
||||
msgstr "%(qos_dir)s QoS ayarlandı"
|
||||
|
||||
#: instances/views.py:2265
|
||||
#: instances/views.py:2272
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on."
|
||||
|
|
@ -6545,12 +6549,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:2287 networks/views.py:256
|
||||
#: instances/views.py:2294 networks/views.py:256
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is deleted"
|
||||
msgstr "%(qos_dir)s QoS silindi"
|
||||
|
||||
#: instances/views.py:2292
|
||||
#: instances/views.py:2299
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is "
|
||||
|
|
@ -6559,21 +6563,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:2320
|
||||
#: instances/views.py:2327
|
||||
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:2322
|
||||
#: instances/views.py:2329
|
||||
#, python-format
|
||||
msgid "%(user)s is already an owner"
|
||||
msgstr "%(user)s zaten bir sahip"
|
||||
|
||||
#: instances/views.py:2367
|
||||
#: instances/views.py:2374
|
||||
#, python-format
|
||||
msgid "Console settings were not saved: %(errors)s"
|
||||
msgstr "Konsol ayarları kaydedilmedi: %(errors)s"
|
||||
|
||||
#: instances/views.py:2389
|
||||
#: instances/views.py:2396
|
||||
msgid ""
|
||||
"Error setting console password. You should check that your instance have an "
|
||||
"graphic device."
|
||||
|
|
@ -6581,37 +6585,37 @@ msgstr ""
|
|||
"Konsol parolası ayarlanırken hata oluştu. Sanal makinenin bir grafik aygıtına"
|
||||
" sahip olduğundan emin olunuz."
|
||||
|
||||
#: instances/views.py:2436
|
||||
#: instances/views.py:2443
|
||||
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:2442
|
||||
#: instances/views.py:2449
|
||||
#, python-format
|
||||
msgid "%(quota)s: '%(instance_name)s' stays a template."
|
||||
msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor."
|
||||
|
||||
#: instances/views.py:2526
|
||||
#: instances/views.py:2533
|
||||
msgid "The XML has no name"
|
||||
msgstr "XML'de ad yok"
|
||||
|
||||
#: instances/views.py:2541 webvirtcloud/middleware.py:156
|
||||
#: instances/views.py:2548 webvirtcloud/middleware.py:156
|
||||
#, python-format
|
||||
msgid "libvirt Error - %(exception)s"
|
||||
msgstr "libvirt Hatası - %(exception)s"
|
||||
|
||||
#: instances/views.py:2548
|
||||
#: instances/views.py:2555
|
||||
msgid "An empty disk of the size you set"
|
||||
msgstr "Belirlediğiniz boyutta boş bir disk"
|
||||
|
||||
#: instances/views.py:2549
|
||||
#: instances/views.py:2556
|
||||
msgid "Volumes already in a pool"
|
||||
msgstr "Bir havuzda zaten bulunan birimler"
|
||||
|
||||
#: instances/views.py:2550
|
||||
#: instances/views.py:2557
|
||||
msgid "A copy of a template volume"
|
||||
msgstr "Bir şablon biriminin kopyası"
|
||||
|
||||
#: instances/views.py:2628
|
||||
#: instances/views.py:2635
|
||||
msgid ""
|
||||
"This host has no running storage pool for the VM's disks: add or start one on"
|
||||
" its Storage page."
|
||||
|
|
@ -6619,29 +6623,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:2630
|
||||
#: instances/views.py:2637
|
||||
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:2662
|
||||
#: instances/views.py:2669
|
||||
#, 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:2689
|
||||
#: instances/views.py:2696
|
||||
msgid "Flavor Created"
|
||||
msgstr "Flavor Oluşturuldu"
|
||||
|
||||
#: instances/views.py:2697
|
||||
#: instances/views.py:2704
|
||||
msgid "Create Flavor"
|
||||
msgstr "Kullanıcı Oluştur"
|
||||
|
||||
#: instances/views.py:2709
|
||||
#: instances/views.py:2716
|
||||
msgid "Flavor Deleted"
|
||||
msgstr "Flavor Silindi"
|
||||
|
||||
#: instances/views.py:2715
|
||||
#: instances/views.py:2722
|
||||
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ı"
|
||||
|
|
@ -10306,10 +10310,10 @@ msgid "Secret %(uuid)s is used by %(named)s; remove it from them first"
|
|||
msgstr ""
|
||||
"%(uuid)s parolası %(named)s tarafından kullanılıyor; önce onlardan kaldırın"
|
||||
|
||||
#: webvirtcloud/settings.py:341
|
||||
#: webvirtcloud/settings.py:319
|
||||
msgid "Localhost"
|
||||
msgstr "Yerel sunucu"
|
||||
|
||||
#: webvirtcloud/settings.py:342
|
||||
#: webvirtcloud/settings.py:320
|
||||
msgid "All interfaces"
|
||||
msgstr "Tüm arabirimler"
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-12 19:09+0000\n"
|
||||
"POT-Creation-Date: 2026-11-13 05:09+0000\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
|
@ -915,7 +915,7 @@ msgid "IP"
|
|||
msgstr "IP"
|
||||
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:292 instances/states.py:19
|
||||
#: instances/views.py:425 instances/views.py:427 logs/views.py:18
|
||||
#: instances/views.py:426 instances/views.py:428 logs/views.py:18
|
||||
msgid "Unknown"
|
||||
msgstr "未知"
|
||||
|
||||
|
|
@ -2629,7 +2629,7 @@ msgid ""
|
|||
msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。"
|
||||
|
||||
#: instances/api/viewsets.py:149 instances/api/viewsets.py:167
|
||||
#: instances/views.py:815 instances/views.py:835 instances/views.py:1811
|
||||
#: instances/views.py:816 instances/views.py:836 instances/views.py:1818
|
||||
msgid "Templates cannot be started."
|
||||
msgstr "模板无法启动。"
|
||||
|
||||
|
|
@ -2955,7 +2955,7 @@ msgstr "MAC 地址 %(mac)s 已属于此主机上另一台虚拟机的网卡"
|
|||
msgid "Create VM"
|
||||
msgstr "创建虚拟机"
|
||||
|
||||
#: instances/jobs.py:895 instances/jobs.py:940 instances/views.py:2528
|
||||
#: instances/jobs.py:895 instances/jobs.py:940 instances/views.py:2535
|
||||
msgid "A virtual machine with this name already exists"
|
||||
msgstr "同名虚拟机已存在"
|
||||
|
||||
|
|
@ -3307,7 +3307,7 @@ msgid "Disk source"
|
|||
msgstr "磁盘来源"
|
||||
|
||||
#: instances/templates/add_instance_volume.html:21
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2548
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2555
|
||||
msgid "New disk"
|
||||
msgstr "新磁盘"
|
||||
|
||||
|
|
@ -3681,7 +3681,7 @@ msgstr "自定义 CPU 型号"
|
|||
msgid "Size (GiB)"
|
||||
msgstr "大小(GiB)"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2549
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2556
|
||||
msgid "Existing volumes"
|
||||
msgstr "已有卷"
|
||||
|
||||
|
|
@ -3717,7 +3717,7 @@ msgstr "设备"
|
|||
msgid "Remove"
|
||||
msgstr "移除"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2550
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2557
|
||||
msgid "Clone from template"
|
||||
msgstr "从模板克隆"
|
||||
|
||||
|
|
@ -5782,63 +5782,63 @@ msgstr "无效的 MAC 地址"
|
|||
msgid "More MAC addresses than networks"
|
||||
msgstr "MAC 地址数量多于网络数量"
|
||||
|
||||
#: instances/views.py:178
|
||||
#: instances/views.py:179
|
||||
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:184 instances/views.py:218
|
||||
#: instances/views.py:185 instances/views.py:219
|
||||
msgid "Too many searches are still running; try again shortly."
|
||||
msgstr "仍在运行的搜索过多;请稍后再试。"
|
||||
|
||||
#: instances/views.py:266
|
||||
#: instances/views.py:267
|
||||
#, 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:272
|
||||
#: instances/views.py:273
|
||||
#, python-format
|
||||
msgid "The host of '%(name)s' cannot be reached right now."
|
||||
msgstr "目前无法连接“%(name)s”所在的主机。"
|
||||
|
||||
#: instances/views.py:273
|
||||
#: instances/views.py:274
|
||||
msgid " Jobs on it can be followed under Jobs in the menu."
|
||||
msgstr " 其上的任务可在菜单的“任务”中跟踪。"
|
||||
|
||||
#: instances/views.py:281
|
||||
#: instances/views.py:282
|
||||
#, python-format
|
||||
msgid "'%(name)s' is no longer on its host."
|
||||
msgstr "“%(name)s”已不在其主机上。"
|
||||
|
||||
#: instances/views.py:368
|
||||
#: instances/views.py:369
|
||||
msgid "There is no other host to migrate to."
|
||||
msgstr "没有其他可迁移到的主机。"
|
||||
|
||||
#: instances/views.py:370
|
||||
#: instances/views.py:371
|
||||
msgid "A VM migrates when it is running, paused or shut off."
|
||||
msgstr "虚拟机在运行、暂停或关机状态下均可迁移。"
|
||||
|
||||
#: instances/views.py:372
|
||||
#: instances/views.py:373
|
||||
msgid ""
|
||||
"A VM with snapshots cannot be migrated: its snapshots stay on this host. "
|
||||
"Delete them first."
|
||||
msgstr "有快照的虚拟机无法迁移:其快照保留在本主机上。请先删除快照。"
|
||||
|
||||
#: instances/views.py:374
|
||||
#: instances/views.py:375
|
||||
msgid ""
|
||||
"A VM with host devices cannot be migrated: the destination may not have them."
|
||||
" Remove them first."
|
||||
msgstr "有主机设备的虚拟机无法迁移:目标主机可能没有这些设备。请先移除它们。"
|
||||
|
||||
#: instances/views.py:586
|
||||
#: instances/views.py:587
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s has changed since the page was loaded; reload the page"
|
||||
msgstr "磁盘 %(dev)s 在页面加载后已更改;请刷新页面"
|
||||
|
||||
#: instances/views.py:661 instances/views.py:662
|
||||
#: instances/views.py:662 instances/views.py:663
|
||||
msgid "The VM was moved meanwhile; try again."
|
||||
msgstr "该虚拟机在此期间已被移动;请重试。"
|
||||
|
||||
#: instances/views.py:778
|
||||
#: instances/views.py:779
|
||||
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 "
|
||||
|
|
@ -5848,7 +5848,7 @@ msgstr ""
|
|||
"运行中的虚拟机在此总线上没有可用 PCI 插槽来添加磁盘:如果虚拟机有 SCSI 控制器,请选择 scsi "
|
||||
"总线;或关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。"
|
||||
|
||||
#: instances/views.py:782
|
||||
#: instances/views.py:783
|
||||
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"
|
||||
|
|
@ -5858,280 +5858,284 @@ msgstr ""
|
|||
"运行中的虚拟机没有可用 PCI 插槽来添加磁盘所需的 SCSI 控制器:请关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe "
|
||||
"插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。"
|
||||
|
||||
#: instances/views.py:800
|
||||
#: instances/views.py:801
|
||||
#, python-format
|
||||
msgid "Invalid disk options: %(options)s"
|
||||
msgstr "无效的磁盘选项:%(options)s"
|
||||
|
||||
#: instances/views.py:812 instances/views.py:903
|
||||
#: instances/views.py:813 instances/views.py:904
|
||||
#, python-format
|
||||
msgid "Invalid options: %(options)s"
|
||||
msgstr "无效的选项:%(options)s"
|
||||
|
||||
#: instances/views.py:844
|
||||
#: instances/views.py:845
|
||||
msgid "The VM was forced off but did not start again: it stays off."
|
||||
msgstr "虚拟机已被强制关机,但没有再次启动:它保持关机状态。"
|
||||
|
||||
#: instances/views.py:1031
|
||||
#: instances/views.py:1032
|
||||
#, python-format
|
||||
msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)"
|
||||
msgstr "请先设置 %(compute)s 的 gstfsd 密钥(计算节点,编辑该主机)"
|
||||
|
||||
#: instances/views.py:1038 instances/views.py:1056 instances/views.py:1065
|
||||
#: instances/views.py:1039 instances/views.py:1057 instances/views.py:1066
|
||||
#, python-format
|
||||
msgid "gstfsd error: %(err)s"
|
||||
msgstr "gstfsd 错误:%(err)s"
|
||||
|
||||
#: instances/views.py:1066
|
||||
#: instances/views.py:1067
|
||||
msgid "the reply is not signed with the key"
|
||||
msgstr "回复未使用该密钥签名"
|
||||
|
||||
#: instances/views.py:1074
|
||||
#: instances/views.py:1075
|
||||
msgid "Shut the VM down, or start its QEMU guest agent, and try again"
|
||||
msgstr "请关闭虚拟机,或启动其 QEMU 客户机代理,然后重试"
|
||||
|
||||
#: instances/views.py:1087
|
||||
#: instances/views.py:1088
|
||||
msgid "The change may still be made when the agent answers again."
|
||||
msgstr "当代理再次响应时,此更改仍可能生效。"
|
||||
|
||||
#: instances/views.py:1115
|
||||
msgid "Reset root password"
|
||||
msgstr "重置 root 密码"
|
||||
|
||||
#: instances/views.py:1119
|
||||
#: instances/views.py:1103
|
||||
msgid "Enter a password"
|
||||
msgstr "请输入密码"
|
||||
|
||||
#: instances/views.py:1133
|
||||
#: instances/views.py:1108
|
||||
msgid "Enter a password of at most 4096 characters, without NUL characters"
|
||||
msgstr "请输入不超过 4096 个字符且不含 NUL 字符的密码"
|
||||
|
||||
#: instances/views.py:1124
|
||||
msgid "Reset root password"
|
||||
msgstr "重置 root 密码"
|
||||
|
||||
#: instances/views.py:1140
|
||||
msgid "Select an SSH public key"
|
||||
msgstr "请选择 SSH 公钥"
|
||||
|
||||
#: instances/views.py:1155
|
||||
#: instances/views.py:1162
|
||||
#, python-format
|
||||
msgid "Installed new SSH public key %(keyname)s"
|
||||
msgstr "已安装新的 SSH 公钥 %(keyname)s"
|
||||
|
||||
#: instances/views.py:1175
|
||||
#: instances/views.py:1182
|
||||
msgid "Enter a whole number of vCPUs"
|
||||
msgstr "请输入整数个 vCPU"
|
||||
|
||||
#: instances/views.py:1179
|
||||
#: instances/views.py:1186
|
||||
msgid "Shut off the VM to change its vCPUs"
|
||||
msgstr "请关闭虚拟机以更改其 vCPU"
|
||||
|
||||
#: instances/views.py:1182
|
||||
#: instances/views.py:1189
|
||||
msgid "The current vCPUs cannot be more than the maximum"
|
||||
msgstr "当前 vCPU 数不能超过最大值"
|
||||
|
||||
#: instances/views.py:1189
|
||||
#: instances/views.py:1196
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的 CPU。"
|
||||
|
||||
#: instances/views.py:1197
|
||||
#: instances/views.py:1204
|
||||
#, python-format
|
||||
msgid "vCPUs set to %(cur)s (maximum %(max)s)"
|
||||
msgstr "vCPU 已设为 %(cur)s(最大 %(max)s)"
|
||||
|
||||
#: instances/views.py:1216
|
||||
#: instances/views.py:1223
|
||||
msgid "Enter a whole number for memory"
|
||||
msgstr "请输入整数内存值"
|
||||
|
||||
#: instances/views.py:1219
|
||||
#: instances/views.py:1226
|
||||
msgid "The current memory cannot be more than the maximum"
|
||||
msgstr "当前内存不能超过最大值"
|
||||
|
||||
#: instances/views.py:1223
|
||||
#: instances/views.py:1230
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的内存。"
|
||||
|
||||
#: instances/views.py:1229
|
||||
#: instances/views.py:1236
|
||||
#, python-format
|
||||
msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)"
|
||||
msgstr "内存已设为 %(cur)s MiB(最大 %(max)s MiB)"
|
||||
|
||||
#: instances/views.py:1249
|
||||
#: instances/views.py:1256
|
||||
msgid "Enter disk sizes as whole GiB"
|
||||
msgstr "请以整数 GiB 输入磁盘大小"
|
||||
|
||||
#: instances/views.py:1253
|
||||
#: instances/views.py:1260
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s was changed meanwhile; reload the page"
|
||||
msgstr "磁盘 %(dev)s 在此期间已更改;请重新加载页面"
|
||||
|
||||
#: instances/views.py:1257
|
||||
#: instances/views.py:1264
|
||||
#, python-format
|
||||
msgid "%(dev)s is %(size)s: a disk cannot shrink"
|
||||
msgstr "%(dev)s 为 %(size)s:磁盘不能缩小"
|
||||
|
||||
#: instances/views.py:1265
|
||||
#: instances/views.py:1272
|
||||
msgid "No disks were selected or valid for resizing."
|
||||
msgstr "未选择磁盘或没有可调整大小的有效磁盘。"
|
||||
|
||||
#: instances/views.py:1274
|
||||
#: instances/views.py:1281
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的磁盘。"
|
||||
|
||||
#: instances/views.py:1286
|
||||
#: instances/views.py:1293
|
||||
#, python-format
|
||||
msgid "The storage pool of %(dev)s cannot resize its volumes"
|
||||
msgstr "%(dev)s 所在的存储池无法调整其卷的大小"
|
||||
|
||||
#: instances/views.py:1288
|
||||
#: instances/views.py:1295
|
||||
#, python-format
|
||||
msgid "Disk is resized: %(dev)s"
|
||||
msgstr "磁盘已调整大小:%(dev)s"
|
||||
|
||||
#: instances/views.py:1382
|
||||
#: instances/views.py:1389
|
||||
msgid "The VM's machine has no PCIe slots to add"
|
||||
msgstr "该虚拟机的机器类型没有可添加的 PCIe 插槽"
|
||||
|
||||
#: instances/views.py:1387
|
||||
#: instances/views.py:1394
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added"
|
||||
msgstr "已添加 %(count)s 个 PCIe 插槽"
|
||||
|
||||
#: instances/views.py:1389
|
||||
#: instances/views.py:1396
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added: the VM gets them at its next start"
|
||||
msgstr "已添加 %(count)s 个 PCIe 插槽:虚拟机在下次启动时获得它们"
|
||||
|
||||
#: instances/views.py:1435
|
||||
#: instances/views.py:1442
|
||||
#, python-format
|
||||
msgid "%(volume)s is already a disk of this VM"
|
||||
msgstr "%(volume)s 已是此虚拟机的磁盘"
|
||||
|
||||
#: instances/views.py:1525
|
||||
#: instances/views.py:1532
|
||||
msgid "Volume changes are applied. But it will be activated after shutdown"
|
||||
msgstr "卷更改已应用,但将在关机后生效"
|
||||
|
||||
#: instances/views.py:1530
|
||||
#: instances/views.py:1537
|
||||
msgid "Volume is changed successfully."
|
||||
msgstr "卷已成功更改。"
|
||||
|
||||
#: instances/views.py:1550
|
||||
#: instances/views.py:1557
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a storage volume of this instance"
|
||||
msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷"
|
||||
|
||||
#: instances/views.py:1555 vrtManager/instance.py:2346
|
||||
#: instances/views.py:1562 vrtManager/instance.py:2346
|
||||
msgid "The VM has a saved state; start it or remove the saved state first"
|
||||
msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态"
|
||||
|
||||
#: instances/views.py:1561
|
||||
#: instances/views.py:1568
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down"
|
||||
msgstr "磁盘 %(dev)s 有待生效的更改;请在虚拟机关机后删除它"
|
||||
|
||||
#: instances/views.py:1576
|
||||
#: instances/views.py:1583
|
||||
#, python-format
|
||||
msgid "Volume %(vol)s is used by another VM; detach it instead"
|
||||
msgstr "卷 %(vol)s 正被另一台虚拟机使用;请改为分离它"
|
||||
|
||||
#: instances/views.py:1588
|
||||
#: instances/views.py:1595
|
||||
#, 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:1599
|
||||
#: instances/views.py:1606
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s"
|
||||
msgstr "磁盘 %(dev)s 已分离,但其卷已保留:%(err)s"
|
||||
|
||||
#: instances/views.py:1627
|
||||
#: instances/views.py:1634
|
||||
#, python-format
|
||||
msgid "This VM cannot take a CD-ROM on the %(bus)s bus now"
|
||||
msgstr "该虚拟机现在无法在 %(bus)s 总线上添加 CD-ROM"
|
||||
|
||||
#: instances/views.py:1630
|
||||
#: instances/views.py:1637
|
||||
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:1635
|
||||
#: instances/views.py:1642
|
||||
#, python-format
|
||||
msgid "%(image)s is already in a CD-ROM of this VM"
|
||||
msgstr "%(image)s 已在此虚拟机的某个光驱中"
|
||||
|
||||
#: instances/views.py:1716
|
||||
#: instances/views.py:1723
|
||||
#, python-format
|
||||
msgid "Pool %(pool)s was not read again: %(err)s"
|
||||
msgstr "未重新读取存储池 %(pool)s:%(err)s"
|
||||
|
||||
#: instances/views.py:1737
|
||||
#: instances/views.py:1744
|
||||
#, python-format
|
||||
msgid "Snapshot was not deleted: %(err)s"
|
||||
msgstr "快照未删除:%(err)s"
|
||||
|
||||
#: instances/views.py:1855
|
||||
#: instances/views.py:1862
|
||||
msgid "Add at least one device to the boot order."
|
||||
msgstr "请至少向启动顺序中添加一个设备。"
|
||||
|
||||
#: instances/views.py:1861 vrtManager/instance.py:1145
|
||||
#: instances/views.py:1868 vrtManager/instance.py:1145
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "启动顺序的设备类型无效"
|
||||
|
||||
#: instances/views.py:1872
|
||||
#: instances/views.py:1879
|
||||
msgid "Boot order changed. It applies at the next start."
|
||||
msgstr "启动顺序已更改,将在下次启动时生效。"
|
||||
|
||||
#: instances/views.py:1874
|
||||
#: instances/views.py:1881
|
||||
msgid "Boot order changed successfully."
|
||||
msgstr "启动顺序已成功更改。"
|
||||
|
||||
#: instances/views.py:1894
|
||||
#: instances/views.py:1901
|
||||
msgid "The XML is empty"
|
||||
msgstr "XML 为空"
|
||||
|
||||
#: instances/views.py:1898 instances/views.py:2539
|
||||
#: instances/views.py:1905 instances/views.py:2546
|
||||
#, python-format
|
||||
msgid "The XML is not well-formed: %(error)s"
|
||||
msgstr "XML 格式不正确:%(error)s"
|
||||
|
||||
#: instances/views.py:1900
|
||||
#: instances/views.py:1907
|
||||
#, python-format
|
||||
msgid "The XML must keep the VM's UUID %(uuid)s."
|
||||
msgstr "XML 必须保留虚拟机的 UUID %(uuid)s。"
|
||||
|
||||
#: instances/views.py:1904
|
||||
#: instances/views.py:1911
|
||||
msgid ""
|
||||
"The definition has changed since the editor was opened. Reload the page to "
|
||||
"edit the current one."
|
||||
msgstr "自打开编辑器以来定义已被更改。请重新加载页面以编辑当前定义。"
|
||||
|
||||
#: instances/views.py:1920
|
||||
#: instances/views.py:1927
|
||||
msgid "The XML definition was saved."
|
||||
msgstr "XML 定义已保存。"
|
||||
|
||||
#: instances/views.py:1922
|
||||
#: instances/views.py:1929
|
||||
msgid "The XML definition was saved; the VM uses it from its next start."
|
||||
msgstr "XML 定义已保存;虚拟机从下次启动起使用它。"
|
||||
|
||||
#: instances/views.py:2003
|
||||
#: instances/views.py:2010
|
||||
msgid "Select one network interface to change"
|
||||
msgstr "请选择一个要更改的网络接口"
|
||||
|
||||
#: instances/views.py:2041
|
||||
#: instances/views.py:2048
|
||||
msgid "Network Device Config is changed. Please shutdown instance to activate."
|
||||
msgstr "网络设备配置已更改。请关闭虚拟机以使其生效。"
|
||||
|
||||
#: instances/views.py:2043
|
||||
#: instances/views.py:2050
|
||||
msgid "Network device changed"
|
||||
msgstr "网络设备已更改"
|
||||
|
||||
#: instances/views.py:2055
|
||||
#: instances/views.py:2062
|
||||
msgid "No network selected"
|
||||
msgstr "未选择网络"
|
||||
|
||||
#: instances/views.py:2060
|
||||
#: instances/views.py:2067
|
||||
#, python-format
|
||||
msgid "The VM already has a network device with MAC %(mac)s"
|
||||
msgstr "虚拟机已有 MAC 地址为 %(mac)s 的网络设备"
|
||||
|
||||
#: instances/views.py:2079
|
||||
#: instances/views.py:2086
|
||||
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 "
|
||||
|
|
@ -6139,136 +6143,136 @@ msgid ""
|
|||
msgstr ""
|
||||
"运行中的虚拟机没有可用 PCI 插槽来添加网络设备:请关机后再添加设备。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。"
|
||||
|
||||
#: instances/views.py:2125 instances/views.py:2131
|
||||
#: instances/views.py:2132 instances/views.py:2138
|
||||
msgid "The VM has it"
|
||||
msgstr "虚拟机已有此设备"
|
||||
|
||||
#: instances/views.py:2166
|
||||
#: instances/views.py:2173
|
||||
#, python-format
|
||||
msgid "The host has no USB device %(device)s; reload the page"
|
||||
msgstr "主机没有 USB 设备 %(device)s;请重新加载页面"
|
||||
|
||||
#: instances/views.py:2187
|
||||
#: instances/views.py:2194
|
||||
#, python-format
|
||||
msgid "The host has no PCI device %(device)s"
|
||||
msgstr "主机上没有 PCI 设备 %(device)s"
|
||||
|
||||
#: instances/views.py:2205
|
||||
#: instances/views.py:2212
|
||||
#, 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:2250 instances/views.py:2280
|
||||
#: instances/views.py:2257 instances/views.py:2287
|
||||
msgid "Select a network interface and a QoS direction"
|
||||
msgstr "请选择网络接口和 QoS 方向"
|
||||
|
||||
#: instances/views.py:2253 vrtManager/network.py:470
|
||||
#: instances/views.py:2260 vrtManager/network.py:470
|
||||
msgid "QoS rates must be whole numbers"
|
||||
msgstr "QoS 速率必须为整数"
|
||||
|
||||
#: instances/views.py:2260 networks/views.py:230
|
||||
#: instances/views.py:2267 networks/views.py:230
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is set"
|
||||
msgstr "%(qos_dir)s QoS 已设置"
|
||||
|
||||
#: instances/views.py:2265
|
||||
#: instances/views.py:2272
|
||||
#, 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:2287 networks/views.py:256
|
||||
#: instances/views.py:2294 networks/views.py:256
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is deleted"
|
||||
msgstr "%(qos_dir)s QoS 已删除"
|
||||
|
||||
#: instances/views.py:2292
|
||||
#: instances/views.py:2299
|
||||
#, 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:2320
|
||||
#: instances/views.py:2327
|
||||
msgid "Only one owner is allowed and the one already added"
|
||||
msgstr "只允许一个所有者,且已添加"
|
||||
|
||||
#: instances/views.py:2322
|
||||
#: instances/views.py:2329
|
||||
#, python-format
|
||||
msgid "%(user)s is already an owner"
|
||||
msgstr "%(user)s 已是所有者"
|
||||
|
||||
#: instances/views.py:2367
|
||||
#: instances/views.py:2374
|
||||
#, python-format
|
||||
msgid "Console settings were not saved: %(errors)s"
|
||||
msgstr "控制台设置未保存:%(errors)s"
|
||||
|
||||
#: instances/views.py:2389
|
||||
#: instances/views.py:2396
|
||||
msgid ""
|
||||
"Error setting console password. You should check that your instance have an "
|
||||
"graphic device."
|
||||
msgstr "设置控制台密码出错。请检查虚拟机是否有图形设备。"
|
||||
|
||||
#: instances/views.py:2436
|
||||
#: instances/views.py:2443
|
||||
msgid "Shut the VM down to change whether it is a template."
|
||||
msgstr "请关闭虚拟机以更改其是否为模板。"
|
||||
|
||||
#: instances/views.py:2442
|
||||
#: instances/views.py:2449
|
||||
#, python-format
|
||||
msgid "%(quota)s: '%(instance_name)s' stays a template."
|
||||
msgstr "%(quota)s:“%(instance_name)s”仍为模板。"
|
||||
|
||||
#: instances/views.py:2526
|
||||
#: instances/views.py:2533
|
||||
msgid "The XML has no name"
|
||||
msgstr "XML 中没有名称"
|
||||
|
||||
#: instances/views.py:2541 webvirtcloud/middleware.py:156
|
||||
#: instances/views.py:2548 webvirtcloud/middleware.py:156
|
||||
#, python-format
|
||||
msgid "libvirt Error - %(exception)s"
|
||||
msgstr "libvirt 错误 - %(exception)s"
|
||||
|
||||
#: instances/views.py:2548
|
||||
#: instances/views.py:2555
|
||||
msgid "An empty disk of the size you set"
|
||||
msgstr "按设定大小创建的空磁盘"
|
||||
|
||||
#: instances/views.py:2549
|
||||
#: instances/views.py:2556
|
||||
msgid "Volumes already in a pool"
|
||||
msgstr "存储池中已有的卷"
|
||||
|
||||
#: instances/views.py:2550
|
||||
#: instances/views.py:2557
|
||||
msgid "A copy of a template volume"
|
||||
msgstr "模板卷的副本"
|
||||
|
||||
#: instances/views.py:2628
|
||||
#: instances/views.py:2635
|
||||
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:2630
|
||||
#: instances/views.py:2637
|
||||
msgid "This host has no network for the VM: add one on its Networks page."
|
||||
msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。"
|
||||
|
||||
#: instances/views.py:2662
|
||||
#: instances/views.py:2669
|
||||
#, python-format
|
||||
msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it"
|
||||
msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它"
|
||||
|
||||
#: instances/views.py:2689
|
||||
#: instances/views.py:2696
|
||||
msgid "Flavor Created"
|
||||
msgstr "规格已创建"
|
||||
|
||||
#: instances/views.py:2697
|
||||
#: instances/views.py:2704
|
||||
msgid "Create Flavor"
|
||||
msgstr "创建规格"
|
||||
|
||||
#: instances/views.py:2709
|
||||
#: instances/views.py:2716
|
||||
msgid "Flavor Deleted"
|
||||
msgstr "规格已删除"
|
||||
|
||||
#: instances/views.py:2715
|
||||
#: instances/views.py:2722
|
||||
msgid "Only the size template goes; VMs made from it keep their size."
|
||||
msgstr "仅删除此规格;由它创建的虚拟机保持其大小。"
|
||||
|
||||
|
|
@ -9697,10 +9701,10 @@ msgstr "存储池 %(names)s"
|
|||
msgid "Secret %(uuid)s is used by %(named)s; remove it from them first"
|
||||
msgstr "机密 %(uuid)s 正被 %(named)s 使用;请先从中移除它"
|
||||
|
||||
#: webvirtcloud/settings.py:341
|
||||
#: webvirtcloud/settings.py:319
|
||||
msgid "Localhost"
|
||||
msgstr "本机"
|
||||
|
||||
#: webvirtcloud/settings.py:342
|
||||
#: webvirtcloud/settings.py:320
|
||||
msgid "All interfaces"
|
||||
msgstr "所有接口"
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ from django.test import Client, TestCase
|
|||
from django.urls import NoReverseMatch, URLPattern, URLResolver, get_resolver, resolve, reverse
|
||||
|
||||
from accounts.models import UserInstance, UserSSHKey
|
||||
from appsettings.models import AppSettings
|
||||
from computes.models import Compute
|
||||
from instances.models import Instance
|
||||
|
||||
|
|
@ -178,6 +179,8 @@ class AuthorizationMatrixTestCase(TestCase):
|
|||
uuid="22222222-3333-4444-5555-666666666666",
|
||||
)
|
||||
self.client = Client(raise_request_exception=True)
|
||||
# the Access forms on: a setting that turns them off refuses everyone (test_root_pass)
|
||||
AppSettings.objects.filter(key__startswith="SHOW_ACCESS_").update(value="True")
|
||||
|
||||
def _kwargs(self, params):
|
||||
kwargs = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue