1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00

fix(instances): a disk resize form grows the disk it showed

The Resize tab named a disk by its device only. When an administrator
replaced the disk at vda while an owner had the tab open, the owner's
new size grew the replacement. The form now sends a fingerprint of
each disk's file (not the file itself, which an owner is not shown),
and a disk changed meanwhile is refused.
This commit is contained in:
catborise 2026-11-12 16:37:35 +03:00
parent 45196d7911
commit 8e990e7d1a
10 changed files with 354 additions and 313 deletions

View file

@ -1,5 +1,6 @@
{% load i18n %}
{% load bootstrap_icons %}
{% load vm_states %}
<div class="tab-pane" id="resize" role="tabpanel">
{# each resource on its own tab: how much the VM has now within its maximum, and the form that changes it #}
<div class="card">
@ -113,6 +114,7 @@
<div class="col-12 col-sm-4">
<div class="input-group">
<input class="form-control" type="number" id="disk_size_{{ disk.dev }}" name="disk_size_{{ disk.dev }}" min="1" step="1" placeholder="{% trans "New size" %}" aria-describedby="disks-grow-help">
<input type="hidden" name="disk_seen_{{ disk.dev }}" value="{{ disk|disk_seen }}">
<span class="input-group-text">GiB</span>
</div>
</div>

View file

@ -1,4 +1,5 @@
from django import template
from django.utils.crypto import salted_hmac
from instances.states import allowed_actions, manages, state_label
@ -23,3 +24,11 @@ def vm_actions(context, instance):
def vm_manages(context, instance):
"""{% vm_manages instance as manages %}: the user is a superuser or one of the VM's owners."""
return manages(context["request"].user, instance)
@register.filter
def disk_seen(disk):
"""{{ disk|disk_seen }}: the fingerprint of the disk's file as the page
shows it, which a form sends back; the file is not shown. Keyed: an owner
cannot try likely paths against it."""
return salted_hmac("instances.disk_seen", disk["path"] or "", algorithm="sha256").hexdigest()

View file

@ -11,6 +11,7 @@ import os
import unittest
import libvirt
from instances.templatetags.vm_states import disk_seen
from computes.models import Compute
from django.contrib.auth import get_user_model
from django.contrib.messages import get_messages
@ -161,7 +162,7 @@ class LiveLvmTestCase(TestCase):
if state == "paused":
dom.suspend()
response = self.post("resize_disk", inst, {"disk_size_vda": "2"})
response = self.post("resize_disk", inst, {"disk_size_vda": "2", "disk_seen_vda": disk_seen(inst.disks[0])})
self.assertRedirects(response, reverse("instances:instance", args=[inst.id]) + "#resizevm_disk",
fetch_redirect_response=False)

View file

@ -2,6 +2,7 @@ import os
import re
import unittest
from instances.templatetags.vm_states import disk_seen
from accounts.models import UserAttributes, UserInstance, UserSSHKey
from appsettings.models import AppSettings
from computes.models import Compute
@ -353,6 +354,7 @@ class InstancesTestCase(TestCase):
reverse("instances:resize_disk", args=[self.instance.id]),
{
"disk_size_vda": 2,
"disk_seen_vda": disk_seen(self.instance.disks[0]),
},
)
self.assertRedirects(
@ -375,6 +377,7 @@ class InstancesTestCase(TestCase):
reverse("instances:resize_disk", args=[self.instance.id]),
{
"disk_size_vda": 3,
"disk_seen_vda": disk_seen(self.instance.disks[0]),
},
)
self.assertRedirects(

View file

@ -12,6 +12,7 @@ from django.test import SimpleTestCase, TestCase
from django.urls import reverse
from instances.models import Instance
from libvirt import VIR_DOMAIN_RUNNING
from instances.templatetags.vm_states import disk_seen
GIB = 1 << 30
@ -35,8 +36,11 @@ class ResizeInputTests(TestCase):
proxy.get_cur_memory.return_value = 2048
proxy.get_status.return_value = status
proxy.instance.isActive.return_value = status != 5
proxy.get_disk_devices.return_value = [dict(disk) for disk in disks]
response = self.client.post(reverse(view, args=[self.vm.id]), data)
disks = [{"path": f"/pool/{disk['dev']}.qcow2", **disk} for disk in disks]
proxy.get_disk_devices.return_value = disks
# the form sends each disk's fingerprint as it showed it
seen = {f"disk_seen_{disk['dev']}": disk_seen(disk) for disk in disks}
response = self.client.post(reverse(view, args=[self.vm.id]), {**seen, **data})
self.assertEqual(response.status_code, 302)
return [str(m) for m in get_messages(response.wsgi_request)], proxy
@ -68,6 +72,13 @@ class ResizeInputTests(TestCase):
proxy.resize_cpu.assert_called_once_with("2", "4")
self.assertEqual(messages, ["vCPUs set to 2 (maximum 4)"])
def test_a_disk_replaced_meanwhile_is_not_grown(self):
# the form showed another disk at vda: an administrator replaced it
messages, proxy = self.post("instances:resize_disk", {"disk_size_vda": "30", "disk_seen_vda": disk_seen({"path": "/pool/old.qcow2"})},
disks=[{"dev": "vda", "size": 20 * GIB}])
proxy.resize_disk.assert_not_called()
self.assertEqual(messages, ["Disk vda was changed meanwhile; reload the page"])
def test_a_disk_size_that_is_not_a_whole_number_is_refused(self):
messages, proxy = self.post("instances:resize_disk", {"disk_size_vda": "4.5"}, disks=[{"dev": "vda", "size": GIB}])
proxy.resize_disk.assert_not_called()

View file

@ -64,6 +64,7 @@ from vrtManager.storage import rbd_source_children, wvmStorage
from vrtManager.util import randomPasswd
from instances.models import Instance
from instances.templatetags.vm_states import disk_seen
from . import addresses, report, utils
from .api.serializers import DestroyOptionsSerializer, PowerOnSerializer
@ -1247,6 +1248,10 @@ def resize_disk(request, pk):
if not _is_int(size):
messages.error(request, _("Enter disk sizes as whole GiB"))
return redirect(reverse("instances:instance", args=[instance.id]) + "#resizevm_disk")
# the form names the disk by its device: another disk there now is not grown in its place
if request.POST.get("disk_seen_" + disk["dev"]) != disk_seen(disk):
messages.error(request, _("Disk %(dev)s was changed meanwhile; reload the page") % {"dev": disk["dev"]})
return redirect(reverse("instances:instance", args=[instance.id]) + "#resizevm_disk")
# a disk does not shrink: one smaller size refuses them all
if int(size) << 30 < disk["size"]:
messages.error(request, _("%(dev)s is %(size)s: a disk cannot shrink") % {

Binary file not shown.

View file

@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-11-12 13:40+0000\n"
"POT-Creation-Date: 2026-11-12 19: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"
@ -56,15 +56,15 @@ msgstr "Bu e-posta adresi başka bir kullanıcıya ait"
msgid "Key name already exist"
msgstr "Anahtar adı zaten mevcut"
#: accounts/forms.py:76
#: accounts/forms.py:77
msgid "Public key already exist"
msgstr "Açık anahtar zaten mevcut"
#: accounts/forms.py:79
#: accounts/forms.py:80
msgid "Invalid key"
msgstr "Geçersiz anahtar"
#: accounts/forms.py:95 computes/templates/computes/instances.html:45
#: accounts/forms.py:96 computes/templates/computes/instances.html:45
#: instances/templates/add_instance_volume.html:39
#: instances/templates/allinstances_index_grouped.html:11
#: instances/templates/allinstances_index_nongrouped.html:6
@ -76,27 +76,27 @@ msgstr "Geçersiz anahtar"
msgid "Name"
msgstr "Ad"
#: accounts/forms.py:95
#: accounts/forms.py:96
msgid "What uses it, such as a script or a host"
msgstr "Onu ne kullanıyor, örneğin bir betik ya da bir sunucu"
#: accounts/forms.py:97 accounts/templates/api_token_list.html:19
#: accounts/forms.py:98 accounts/templates/api_token_list.html:19
msgid "Expires"
msgstr "Sona erme"
#: accounts/forms.py:98
#: accounts/forms.py:99
msgid "in 30 days"
msgstr "30 gün içinde"
#: accounts/forms.py:98
#: accounts/forms.py:99
msgid "in 90 days"
msgstr "90 gün içinde"
#: accounts/forms.py:98
#: accounts/forms.py:99
msgid "in a year"
msgstr "bir yıl içinde"
#: accounts/forms.py:98 accounts/templates/account.html:29
#: accounts/forms.py:99 accounts/templates/account.html:29
#: accounts/templates/api_token_list.html:19
#: accounts/templates/api_token_list.html:20 accounts/templates/profile.html:25
#: admin/templates/admin/user_form.html:21
@ -106,7 +106,7 @@ msgstr "bir yıl içinde"
msgid "never"
msgstr "hiçbir zaman"
#: accounts/forms.py:103
#: accounts/forms.py:104
msgid "Email"
msgstr "E-posta"
@ -408,7 +408,7 @@ msgid "2FA Protection Active"
msgstr "2FA Koruması Etkin"
#: accounts/templates/accounts/otp_qr.html:4
#: accounts/templates/accounts/otp_qr.html:6 accounts/utils.py:78
#: accounts/templates/accounts/otp_qr.html:6 accounts/utils.py:66
msgid "OTP QR Code"
msgstr "OTP QR Kodu"
@ -569,7 +569,7 @@ msgstr "%(name)s SSH anahtarı için işlemler"
msgid "No SSH keys."
msgstr "SSH anahtarı yok."
#: accounts/utils.py:79
#: accounts/utils.py:67
#, python-format
msgid ""
"Open this link within an hour to see the OTP QR code of account '%(user)s':\n"
@ -737,7 +737,7 @@ msgstr ""
#: instances/templates/allinstances_index_grouped.html:16
#: instances/templates/allinstances_index_nongrouped.html:14
#: instances/templates/create_instance_w2.html:63
#: instances/templates/instances/resize_tab.html:29
#: instances/templates/instances/resize_tab.html:30
#: instances/templates/instances/settings_tab.html:853
msgid "vCPUs"
msgstr "vCPU"
@ -749,7 +749,7 @@ msgstr "vCPU"
#: instances/templates/allinstances_index_nongrouped.html:15
#: instances/templates/create_inst_block.html:33
#: instances/templates/instance.html:66
#: instances/templates/instances/resize_tab.html:17
#: instances/templates/instances/resize_tab.html:18
#: instances/templates/instances/stats_tab.html:36
msgid "Memory"
msgstr "Bellek"
@ -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:424 instances/views.py:426 logs/views.py:18
#: instances/views.py:425 instances/views.py:427 logs/views.py:18
msgid "Unknown"
msgstr "Bilinmeyen"
@ -1742,7 +1742,7 @@ msgstr "Yeni sanal makine varsayılanları"
#: appsettings/views.py:41 instances/templates/instance.html:70
#: instances/templates/instances/destroy_instance_form.html:33
#: instances/templates/instances/resize_tab.html:20
#: instances/templates/instances/resize_tab.html:21
#: instances/templates/instances/settings_tab.html:197
msgid "Disks"
msgstr "Diskler"
@ -2734,7 +2734,7 @@ msgstr ""
"VNC olarak değiştirin."
#: instances/api/viewsets.py:149 instances/api/viewsets.py:167
#: instances/views.py:814 instances/views.py:834 instances/views.py:1806
#: instances/views.py:815 instances/views.py:835 instances/views.py:1811
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:2523
#: instances/jobs.py:895 instances/jobs.py:940 instances/views.py:2528
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:2543
#: instances/templates/create_instance_w2.html:134 instances/views.py:2548
msgid "New disk"
msgstr "Yeni disk"
@ -3710,7 +3710,7 @@ msgstr "Sanal makinenin çalışacağı sunucuyu seçin."
#: instances/templates/create_inst_block.html:23
#: instances/templates/instance.html:62
#: instances/templates/instances/resize_tab.html:14
#: instances/templates/instances/resize_tab.html:15
#: instances/templates/instances/stats_tab.html:29
msgid "CPU"
msgstr "CPU"
@ -3840,7 +3840,7 @@ msgstr "Özel CPU modelleri"
msgid "Size (GiB)"
msgstr "Boyut (GiB)"
#: instances/templates/create_instance_w2.html:161 instances/views.py:2544
#: instances/templates/create_instance_w2.html:161 instances/views.py:2549
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:2545
#: instances/templates/create_instance_w2.html:194 instances/views.py:2550
msgid "Clone from template"
msgstr "Şablondan klonla"
@ -4770,111 +4770,111 @@ msgstr "Zorla Kapat"
msgid "Power Cycle"
msgstr "Yeniden başlat"
#: instances/templates/instances/resize_tab.html:8
#: instances/templates/instances/resize_tab.html:9
msgid "You don't have permission for resizing instance"
msgstr "Sanal makineyi yeniden boyutlandırma iznine sahip değilsiniz"
#: instances/templates/instances/resize_tab.html:12
#: instances/templates/instances/resize_tab.html:13
msgid "Resources to resize"
msgstr "Boyutlandırılacak kaynaklar"
#: instances/templates/instances/resize_tab.html:35
#: instances/templates/instances/resize_tab.html:36
msgid "on, turn off"
msgstr "açık, kapat"
#: instances/templates/instances/resize_tab.html:37
#: instances/templates/instances/resize_tab.html:38
msgid "off, turn on"
msgstr "kapalı, aç"
#: instances/templates/instances/resize_tab.html:41
#: instances/templates/instances/resize_tab.html:42
msgid "on"
msgstr "açık"
#: instances/templates/instances/resize_tab.html:41
#: instances/templates/instances/resize_tab.html:42
msgid "off"
msgstr "kapalı"
#: instances/templates/instances/resize_tab.html:45
#: instances/templates/instances/resize_tab.html:46
#, python-format
msgid "%(cur)s on, up to %(max)s"
msgstr "%(cur)s açık, en fazla %(max)s"
#: instances/templates/instances/resize_tab.html:46
#: instances/templates/instances/resize_tab.html:47
#, python-format
msgid "Host: %(count)s logical CPUs"
msgstr "Sunucu: %(count)s mantıksal CPU"
#: instances/templates/instances/resize_tab.html:49
#: instances/templates/instances/resize_tab.html:50
msgid "Click a vCPU to turn it on or off now; the next start keeps it so."
msgstr ""
"Bir vCPU'ya tıklayarak onu şimdi açın veya kapatın; sonraki başlatmada da "
"öyle kalır."
#: instances/templates/instances/resize_tab.html:49
#: instances/templates/instances/resize_tab.html:50
msgid "A paused VM cannot let one go: resume it to turn vCPUs off."
msgstr ""
"Duraklatılmış sanal makine vCPU bırakamaz: vCPU'ları kapatmak için devam "
"ettirin."
#: instances/templates/instances/resize_tab.html:54
#: instances/templates/instances/resize_tab.html:55
msgid "Current"
msgstr "Şu an"
#: instances/templates/instances/resize_tab.html:60
#: instances/templates/instances/resize_tab.html:61
msgid "Maximum"
msgstr "En fazla"
#: instances/templates/instances/resize_tab.html:66
#: instances/templates/instances/resize_tab.html:67
msgid "Resize CPU"
msgstr "CPU'yu boyutlandır"
#: instances/templates/instances/resize_tab.html:69
#: instances/templates/instances/resize_tab.html:101
#: instances/templates/instances/resize_tab.html:70
#: instances/templates/instances/resize_tab.html:102
msgid "The VM gets these at its next start."
msgstr "Sanal makine bunları bir sonraki başlatmada alır."
#: instances/templates/instances/resize_tab.html:69
#: instances/templates/instances/resize_tab.html:70
msgid "Shut the VM down to change its vCPUs."
msgstr "vCPU'larını değiştirmek için sanal makineyi kapatın."
#: instances/templates/instances/resize_tab.html:75
#: instances/templates/instances/resize_tab.html:76
msgid "vCPU hot plug"
msgstr "vCPU sıcak takma"
#: instances/templates/instances/resize_tab.html:77
#: instances/templates/instances/resize_tab.html:78
msgid "Lets vCPUs up to the maximum be turned on and off while the VM runs."
msgstr ""
"Sanal makine çalışırken azami sayıya kadar vCPU'ların açılıp kapatılmasını "
"sağlar."
#: instances/templates/instances/resize_tab.html:77
#: instances/templates/instances/resize_tab.html:78
#: instances/templates/instances/settings_tab.html:919
msgid "Shut the VM down to change this."
msgstr "Bunu değiştirmek için sanal makineyi kapatın."
#: instances/templates/instances/resize_tab.html:84
#: instances/templates/instances/resize_tab.html:85
#, python-format
msgid "%(cur)s MiB of %(max)s MiB"
msgstr "%(cur)s MiB / %(max)s MiB"
#: instances/templates/instances/resize_tab.html:85
#: instances/templates/instances/resize_tab.html:86
#, python-format
msgid "Host: %(total)s"
msgstr "Sunucu: %(total)s"
#: instances/templates/instances/resize_tab.html:89
#: instances/templates/instances/resize_tab.html:90
msgid "Current (MiB)"
msgstr "Şu an (MiB)"
#: instances/templates/instances/resize_tab.html:93
#: instances/templates/instances/resize_tab.html:94
msgid "Maximum (MiB)"
msgstr "En fazla (MiB)"
#: instances/templates/instances/resize_tab.html:98
#: instances/templates/instances/resize_tab.html:99
msgid "Resize memory"
msgstr "Belleği boyutlandır"
#: instances/templates/instances/resize_tab.html:101
#: instances/templates/instances/resize_tab.html:102
msgid ""
"The current memory changes now, up to the maximum; shut the VM down to change"
" the maximum."
@ -4882,7 +4882,7 @@ msgstr ""
"Geçerli bellek, azami değere kadar hemen değişir; azami değeri değiştirmek "
"için sanal makineyi kapatın."
#: instances/templates/instances/resize_tab.html:104
#: instances/templates/instances/resize_tab.html:105
msgid ""
"A new size in GiB, larger than the disk's; empty keeps a disk as it is. Disks"
" grow while the VM runs; the guest then grows its partition and file system."
@ -4891,22 +4891,22 @@ msgstr ""
"olduğu gibi kalır. Diskler sanal makine çalışırken büyür; ardından konuk "
"sistem bölümünü ve dosya sistemini büyütür."
#: instances/templates/instances/resize_tab.html:110
#: instances/templates/instances/resize_tab.html:111
#: instances/templates/instances/settings_tab.html:211
msgid "Error getting disk info"
msgstr "Disk bilgisi elde edilirken hata"
#: instances/templates/instances/resize_tab.html:112
#: instances/templates/instances/resize_tab.html:113
#, python-format
msgid "Now %(size)s"
msgstr "Şu an %(size)s"
#: instances/templates/instances/resize_tab.html:115
#: instances/templates/instances/resize_tab.html:116
msgid "New size"
msgstr "Yeni boyut"
#: instances/templates/instances/resize_tab.html:124
#: instances/templates/instances/resize_tab.html:126
#: instances/templates/instances/resize_tab.html:128
msgid "Grow disks"
msgstr "Diskleri büyüt"
@ -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:177
#: instances/views.py:178
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:183 instances/views.py:217
#: instances/views.py:184 instances/views.py:218
msgid "Too many searches are still running; try again shortly."
msgstr "Çok fazla arama hâlâ çalışıyor; birazdan yeniden deneyin."
#: instances/views.py:265
#: instances/views.py:266
#, 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:271
#: instances/views.py:272
#, 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:272
#: instances/views.py:273
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:280
#: instances/views.py:281
#, python-format
msgid "'%(name)s' is no longer on its host."
msgstr "'%(name)s' artık sunucusunda yok."
#: instances/views.py:367
#: instances/views.py:368
msgid "There is no other host to migrate to."
msgstr "Taşınacak başka bir sunucu yok."
#: instances/views.py:369
#: instances/views.py:370
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:371
#: instances/views.py:372
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:373
#: instances/views.py:374
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:585
#: instances/views.py:586
#, 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:660 instances/views.py:661
#: instances/views.py:661 instances/views.py:662
msgid "The VM was moved meanwhile; try again."
msgstr "Sanal makine bu arada taşındı; yeniden deneyin."
#: instances/views.py:777
#: instances/views.py:778
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:781
#: instances/views.py:782
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,186 +6197,191 @@ 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:799
#: instances/views.py:800
#, python-format
msgid "Invalid disk options: %(options)s"
msgstr "Geçersiz disk seçenekleri: %(options)s"
#: instances/views.py:811 instances/views.py:902
#: instances/views.py:812 instances/views.py:903
#, python-format
msgid "Invalid options: %(options)s"
msgstr "Geçersiz seçenekler: %(options)s"
#: instances/views.py:843
#: instances/views.py:844
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:1030
#: instances/views.py:1031
#, 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:1037 instances/views.py:1055 instances/views.py:1064
#: instances/views.py:1038 instances/views.py:1056 instances/views.py:1065
#, python-format
msgid "gstfsd error: %(err)s"
msgstr "gstfsd hatası: %(err)s"
#: instances/views.py:1065
#: instances/views.py:1066
msgid "the reply is not signed with the key"
msgstr "yanıt anahtarla imzalanmamış"
#: instances/views.py:1073
#: instances/views.py:1074
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:1086
#: instances/views.py:1087
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:1114
#: instances/views.py:1115
msgid "Reset root password"
msgstr "Root parolasını sıfırla"
#: instances/views.py:1118
#: instances/views.py:1119
msgid "Enter a password"
msgstr "Bir parola girin"
#: instances/views.py:1132
#: instances/views.py:1133
msgid "Select an SSH public key"
msgstr "Bir SSH açık anahtarı seçin"
#: instances/views.py:1154
#: instances/views.py:1155
#, python-format
msgid "Installed new SSH public key %(keyname)s"
msgstr "Yeni %(keyname)s SSH açık anahtarı yüklendi"
#: instances/views.py:1174
#: instances/views.py:1175
msgid "Enter a whole number of vCPUs"
msgstr "vCPU sayısı için bir tam sayı girin"
#: instances/views.py:1178
#: instances/views.py:1179
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:1181
#: instances/views.py:1182
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:1188
#: instances/views.py:1189
#, 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:1196
#: instances/views.py:1197
#, 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:1215
#: instances/views.py:1216
msgid "Enter a whole number for memory"
msgstr "Bellek için bir tam sayı girin"
#: instances/views.py:1218
#: instances/views.py:1219
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:1222
#: instances/views.py:1223
#, 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:1228
#: instances/views.py:1229
#, 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:1248
#: instances/views.py:1249
msgid "Enter disk sizes as whole GiB"
msgstr "Disk boyutlarını tam GiB olarak girin"
#: instances/views.py:1252
#: instances/views.py:1253
#, 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
#, 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:1260
#: instances/views.py:1265
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:1269
#: instances/views.py:1274
#, 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:1281
#: instances/views.py:1286
#, 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:1283
#: instances/views.py:1288
#, python-format
msgid "Disk is resized: %(dev)s"
msgstr "Disk boyutu değiştirildi: %(dev)s"
#: instances/views.py:1377
#: instances/views.py:1382
msgid "The VM's machine has no PCIe slots to add"
msgstr "Sanal makinenin makine tipinde eklenecek PCIe yuvası yok"
#: instances/views.py:1382
#: instances/views.py:1387
#, python-format
msgid "%(count)s PCIe slots added"
msgstr "%(count)s PCIe yuvası eklendi"
#: instances/views.py:1384
#: instances/views.py:1389
#, 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:1430
#: instances/views.py:1435
#, python-format
msgid "%(volume)s is already a disk of this VM"
msgstr "%(volume)s zaten bu sanal makinenin bir diski"
#: instances/views.py:1520
#: instances/views.py:1525
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:1525
#: instances/views.py:1530
msgid "Volume is changed successfully."
msgstr "Birim başarıyla değiştirildi."
#: instances/views.py:1545
#: instances/views.py:1550
#, 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:1550 vrtManager/instance.py:2346
#: instances/views.py:1555 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:1556
#: instances/views.py:1561
#, 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:1571
#: instances/views.py:1576
#, 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:1583
#: instances/views.py:1588
#, python-format
msgid ""
"The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete "
@ -6385,66 +6390,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:1594
#: instances/views.py:1599
#, 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:1622
#: instances/views.py:1627
#, 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:1625
#: instances/views.py:1630
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:1630
#: instances/views.py:1635
#, 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:1711
#: instances/views.py:1716
#, python-format
msgid "Pool %(pool)s was not read again: %(err)s"
msgstr "%(pool)s havuzu yeniden okunamadı: %(err)s"
#: instances/views.py:1732
#: instances/views.py:1737
#, python-format
msgid "Snapshot was not deleted: %(err)s"
msgstr "Anlık görüntü silinmedi: %(err)s"
#: instances/views.py:1850
#: instances/views.py:1855
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:1856 vrtManager/instance.py:1145
#: instances/views.py:1861 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:1867
#: instances/views.py:1872
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:1869
#: instances/views.py:1874
msgid "Boot order changed successfully."
msgstr "Ön yükleme sırası başarıyla değiştirildi."
#: instances/views.py:1889
#: instances/views.py:1894
msgid "The XML is empty"
msgstr "XML boş"
#: instances/views.py:1893 instances/views.py:2534
#: instances/views.py:1898 instances/views.py:2539
#, python-format
msgid "The XML is not well-formed: %(error)s"
msgstr "XML düzgün biçimlendirilmemiş: %(error)s"
#: instances/views.py:1895
#: instances/views.py:1900
#, 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:1899
#: instances/views.py:1904
msgid ""
"The definition has changed since the editor was opened. Reload the page to "
"edit the current one."
@ -6452,40 +6457,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:1915
#: instances/views.py:1920
msgid "The XML definition was saved."
msgstr "XML tanımı kaydedildi."
#: instances/views.py:1917
#: instances/views.py:1922
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:1998
#: instances/views.py:2003
msgid "Select one network interface to change"
msgstr "Değiştirilecek bir ağ arabirimi seçin"
#: instances/views.py:2036
#: instances/views.py:2041
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:2038
#: instances/views.py:2043
msgid "Network device changed"
msgstr "Ağ aygıtı değiştirildi"
#: instances/views.py:2050
#: instances/views.py:2055
msgid "No network selected"
msgstr "Ağ seçilmedi"
#: instances/views.py:2055
#: instances/views.py:2060
#, 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:2074
#: instances/views.py:2079
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 "
@ -6495,21 +6500,21 @@ msgstr ""
"aygıtı sonra ekleyin; Diskler sekmesindeki PCIe yuvaları ekle, sonraki "
"başlatmadan itibaren ona boş yuvalar verir."
#: instances/views.py:2120 instances/views.py:2126
#: instances/views.py:2125 instances/views.py:2131
msgid "The VM has it"
msgstr "Sanal makinede var"
#: instances/views.py:2161
#: instances/views.py:2166
#, 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:2182
#: instances/views.py:2187
#, python-format
msgid "The host has no PCI device %(device)s"
msgstr "Sunucuda %(device)s PCI aygıtı yok"
#: instances/views.py:2200
#: instances/views.py:2205
#, python-format
msgid ""
"Removal of PCI device %(address)s requested: the guest has not let it go yet;"
@ -6519,20 +6524,20 @@ msgstr ""
"bırakmadı; bırakana ya da sanal makine durana kadar çalışan sanal makinede "
"kalır."
#: instances/views.py:2245 instances/views.py:2275
#: instances/views.py:2250 instances/views.py:2280
msgid "Select a network interface and a QoS direction"
msgstr "Bir ağ arabirimi ve bir QoS yönü seçin"
#: instances/views.py:2248 vrtManager/network.py:470
#: instances/views.py:2253 vrtManager/network.py:470
msgid "QoS rates must be whole numbers"
msgstr "QoS hızları tam sayı olmalıdır"
#: instances/views.py:2255 networks/views.py:230
#: instances/views.py:2260 networks/views.py:230
#, python-format
msgid "%(qos_dir)s QoS is set"
msgstr "%(qos_dir)s QoS ayarlandı"
#: instances/views.py:2260
#: instances/views.py:2265
#, python-format
msgid ""
"%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on."
@ -6540,12 +6545,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:2282 networks/views.py:256
#: instances/views.py:2287 networks/views.py:256
#, python-format
msgid "%(qos_dir)s QoS is deleted"
msgstr "%(qos_dir)s QoS silindi"
#: instances/views.py:2287
#: instances/views.py:2292
#, python-format
msgid ""
"%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is "
@ -6554,21 +6559,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:2315
#: instances/views.py:2320
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:2317
#: instances/views.py:2322
#, python-format
msgid "%(user)s is already an owner"
msgstr "%(user)s zaten bir sahip"
#: instances/views.py:2362
#: instances/views.py:2367
#, python-format
msgid "Console settings were not saved: %(errors)s"
msgstr "Konsol ayarları kaydedilmedi: %(errors)s"
#: instances/views.py:2384
#: instances/views.py:2389
msgid ""
"Error setting console password. You should check that your instance have an "
"graphic device."
@ -6576,37 +6581,37 @@ msgstr ""
"Konsol parolası ayarlanırken hata oluştu. Sanal makinenin bir grafik aygıtına"
" sahip olduğundan emin olunuz."
#: instances/views.py:2431
#: instances/views.py:2436
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:2437
#: instances/views.py:2442
#, python-format
msgid "%(quota)s: '%(instance_name)s' stays a template."
msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor."
#: instances/views.py:2521
#: instances/views.py:2526
msgid "The XML has no name"
msgstr "XML'de ad yok"
#: instances/views.py:2536 webvirtcloud/middleware.py:156
#: instances/views.py:2541 webvirtcloud/middleware.py:156
#, python-format
msgid "libvirt Error - %(exception)s"
msgstr "libvirt Hatası - %(exception)s"
#: instances/views.py:2543
#: instances/views.py:2548
msgid "An empty disk of the size you set"
msgstr "Belirlediğiniz boyutta boş bir disk"
#: instances/views.py:2544
#: instances/views.py:2549
msgid "Volumes already in a pool"
msgstr "Bir havuzda zaten bulunan birimler"
#: instances/views.py:2545
#: instances/views.py:2550
msgid "A copy of a template volume"
msgstr "Bir şablon biriminin kopyası"
#: instances/views.py:2623
#: instances/views.py:2628
msgid ""
"This host has no running storage pool for the VM's disks: add or start one on"
" its Storage page."
@ -6614,29 +6619,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:2625
#: instances/views.py:2630
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:2657
#: instances/views.py:2662
#, 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:2684
#: instances/views.py:2689
msgid "Flavor Created"
msgstr "Flavor Oluşturuldu"
#: instances/views.py:2692
#: instances/views.py:2697
msgid "Create Flavor"
msgstr "Kullanıcı Oluştur"
#: instances/views.py:2704
#: instances/views.py:2709
msgid "Flavor Deleted"
msgstr "Flavor Silindi"
#: instances/views.py:2710
#: instances/views.py:2715
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.

View file

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-11-12 13:40+0000\n"
"POT-Creation-Date: 2026-11-12 19:09+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
@ -53,15 +53,15 @@ msgstr "其他用户已使用此邮箱地址"
msgid "Key name already exist"
msgstr "密钥名称已存在"
#: accounts/forms.py:76
#: accounts/forms.py:77
msgid "Public key already exist"
msgstr "公钥已存在"
#: accounts/forms.py:79
#: accounts/forms.py:80
msgid "Invalid key"
msgstr "无效的密钥"
#: accounts/forms.py:95 computes/templates/computes/instances.html:45
#: accounts/forms.py:96 computes/templates/computes/instances.html:45
#: instances/templates/add_instance_volume.html:39
#: instances/templates/allinstances_index_grouped.html:11
#: instances/templates/allinstances_index_nongrouped.html:6
@ -73,27 +73,27 @@ msgstr "无效的密钥"
msgid "Name"
msgstr "名称"
#: accounts/forms.py:95
#: accounts/forms.py:96
msgid "What uses it, such as a script or a host"
msgstr "用途,例如某个脚本或主机"
#: accounts/forms.py:97 accounts/templates/api_token_list.html:19
#: accounts/forms.py:98 accounts/templates/api_token_list.html:19
msgid "Expires"
msgstr "有效期"
#: accounts/forms.py:98
#: accounts/forms.py:99
msgid "in 30 days"
msgstr "30 天后"
#: accounts/forms.py:98
#: accounts/forms.py:99
msgid "in 90 days"
msgstr "90 天后"
#: accounts/forms.py:98
#: accounts/forms.py:99
msgid "in a year"
msgstr "一年后"
#: accounts/forms.py:98 accounts/templates/account.html:29
#: accounts/forms.py:99 accounts/templates/account.html:29
#: accounts/templates/api_token_list.html:19
#: accounts/templates/api_token_list.html:20 accounts/templates/profile.html:25
#: admin/templates/admin/user_form.html:21
@ -103,7 +103,7 @@ msgstr "一年后"
msgid "never"
msgstr "永不"
#: accounts/forms.py:103
#: accounts/forms.py:104
msgid "Email"
msgstr "邮箱"
@ -403,7 +403,7 @@ msgid "2FA Protection Active"
msgstr "双因素保护已启用"
#: accounts/templates/accounts/otp_qr.html:4
#: accounts/templates/accounts/otp_qr.html:6 accounts/utils.py:78
#: accounts/templates/accounts/otp_qr.html:6 accounts/utils.py:66
msgid "OTP QR Code"
msgstr "OTP 二维码"
@ -559,7 +559,7 @@ msgstr "SSH 密钥 %(name)s 的操作"
msgid "No SSH keys."
msgstr "没有 SSH 密钥。"
#: accounts/utils.py:79
#: accounts/utils.py:67
#, python-format
msgid ""
"Open this link within an hour to see the OTP QR code of account '%(user)s':\n"
@ -716,7 +716,7 @@ msgstr "NEW_USER_DEFAULT_INSTANCES:%(name)s 不是唯一的一台虚拟机"
#: instances/templates/allinstances_index_grouped.html:16
#: instances/templates/allinstances_index_nongrouped.html:14
#: instances/templates/create_instance_w2.html:63
#: instances/templates/instances/resize_tab.html:29
#: instances/templates/instances/resize_tab.html:30
#: instances/templates/instances/settings_tab.html:853
msgid "vCPUs"
msgstr "vCPU"
@ -728,7 +728,7 @@ msgstr "vCPU"
#: instances/templates/allinstances_index_nongrouped.html:15
#: instances/templates/create_inst_block.html:33
#: instances/templates/instance.html:66
#: instances/templates/instances/resize_tab.html:17
#: instances/templates/instances/resize_tab.html:18
#: instances/templates/instances/stats_tab.html:36
msgid "Memory"
msgstr "内存"
@ -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:424 instances/views.py:426 logs/views.py:18
#: instances/views.py:425 instances/views.py:427 logs/views.py:18
msgid "Unknown"
msgstr "未知"
@ -1685,7 +1685,7 @@ msgstr "新建虚拟机默认值"
#: appsettings/views.py:41 instances/templates/instance.html:70
#: instances/templates/instances/destroy_instance_form.html:33
#: instances/templates/instances/resize_tab.html:20
#: instances/templates/instances/resize_tab.html:21
#: instances/templates/instances/settings_tab.html:197
msgid "Disks"
msgstr "磁盘"
@ -2629,7 +2629,7 @@ msgid ""
msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。"
#: instances/api/viewsets.py:149 instances/api/viewsets.py:167
#: instances/views.py:814 instances/views.py:834 instances/views.py:1806
#: instances/views.py:815 instances/views.py:835 instances/views.py:1811
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:2523
#: instances/jobs.py:895 instances/jobs.py:940 instances/views.py:2528
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:2543
#: instances/templates/create_instance_w2.html:134 instances/views.py:2548
msgid "New disk"
msgstr "新磁盘"
@ -3555,7 +3555,7 @@ msgstr "选择运行虚拟机的主机。"
#: instances/templates/create_inst_block.html:23
#: instances/templates/instance.html:62
#: instances/templates/instances/resize_tab.html:14
#: instances/templates/instances/resize_tab.html:15
#: instances/templates/instances/stats_tab.html:29
msgid "CPU"
msgstr "CPU"
@ -3681,7 +3681,7 @@ msgstr "自定义 CPU 型号"
msgid "Size (GiB)"
msgstr "大小(GiB)"
#: instances/templates/create_instance_w2.html:161 instances/views.py:2544
#: instances/templates/create_instance_w2.html:161 instances/views.py:2549
msgid "Existing volumes"
msgstr "已有卷"
@ -3717,7 +3717,7 @@ msgstr "设备"
msgid "Remove"
msgstr "移除"
#: instances/templates/create_instance_w2.html:194 instances/views.py:2545
#: instances/templates/create_instance_w2.html:194 instances/views.py:2550
msgid "Clone from template"
msgstr "从模板克隆"
@ -4551,132 +4551,132 @@ msgstr "强制关闭"
msgid "Power Cycle"
msgstr "电源重置"
#: instances/templates/instances/resize_tab.html:8
#: instances/templates/instances/resize_tab.html:9
msgid "You don't have permission for resizing instance"
msgstr "您没有调整虚拟机配置的权限"
#: instances/templates/instances/resize_tab.html:12
#: instances/templates/instances/resize_tab.html:13
msgid "Resources to resize"
msgstr "可调整的资源"
#: instances/templates/instances/resize_tab.html:35
#: instances/templates/instances/resize_tab.html:36
msgid "on, turn off"
msgstr "已开启,点击关闭"
#: instances/templates/instances/resize_tab.html:37
#: instances/templates/instances/resize_tab.html:38
msgid "off, turn on"
msgstr "已关闭,点击开启"
#: instances/templates/instances/resize_tab.html:41
#: instances/templates/instances/resize_tab.html:42
msgid "on"
msgstr "已开启"
#: instances/templates/instances/resize_tab.html:41
#: instances/templates/instances/resize_tab.html:42
msgid "off"
msgstr "已关闭"
#: instances/templates/instances/resize_tab.html:45
#: instances/templates/instances/resize_tab.html:46
#, python-format
msgid "%(cur)s on, up to %(max)s"
msgstr "已开启 %(cur)s 个,最多 %(max)s 个"
#: instances/templates/instances/resize_tab.html:46
#: instances/templates/instances/resize_tab.html:47
#, python-format
msgid "Host: %(count)s logical CPUs"
msgstr "主机:%(count)s 个逻辑 CPU"
#: instances/templates/instances/resize_tab.html:49
#: instances/templates/instances/resize_tab.html:50
msgid "Click a vCPU to turn it on or off now; the next start keeps it so."
msgstr "点击某个 vCPU 可立即开启或关闭它;下次启动时保持该状态。"
#: instances/templates/instances/resize_tab.html:49
#: instances/templates/instances/resize_tab.html:50
msgid "A paused VM cannot let one go: resume it to turn vCPUs off."
msgstr "已暂停的虚拟机无法释放 vCPU:请先恢复它再关闭 vCPU。"
#: instances/templates/instances/resize_tab.html:54
#: instances/templates/instances/resize_tab.html:55
msgid "Current"
msgstr "当前"
#: instances/templates/instances/resize_tab.html:60
#: instances/templates/instances/resize_tab.html:61
msgid "Maximum"
msgstr "最大"
#: instances/templates/instances/resize_tab.html:66
#: instances/templates/instances/resize_tab.html:67
msgid "Resize CPU"
msgstr "调整 CPU"
#: instances/templates/instances/resize_tab.html:69
#: instances/templates/instances/resize_tab.html:101
#: instances/templates/instances/resize_tab.html:70
#: instances/templates/instances/resize_tab.html:102
msgid "The VM gets these at its next start."
msgstr "虚拟机会在下次启动时获得这些设置。"
#: instances/templates/instances/resize_tab.html:69
#: instances/templates/instances/resize_tab.html:70
msgid "Shut the VM down to change its vCPUs."
msgstr "请将虚拟机关机后再更改其 vCPU。"
#: instances/templates/instances/resize_tab.html:75
#: instances/templates/instances/resize_tab.html:76
msgid "vCPU hot plug"
msgstr "vCPU 热插拔"
#: instances/templates/instances/resize_tab.html:77
#: instances/templates/instances/resize_tab.html:78
msgid "Lets vCPUs up to the maximum be turned on and off while the VM runs."
msgstr "允许在虚拟机运行时开启或关闭不超过最大数量的 vCPU。"
#: instances/templates/instances/resize_tab.html:77
#: instances/templates/instances/resize_tab.html:78
#: instances/templates/instances/settings_tab.html:919
msgid "Shut the VM down to change this."
msgstr "请先关闭虚拟机再修改此项。"
#: instances/templates/instances/resize_tab.html:84
#: instances/templates/instances/resize_tab.html:85
#, python-format
msgid "%(cur)s MiB of %(max)s MiB"
msgstr "%(cur)s MiB / %(max)s MiB"
#: instances/templates/instances/resize_tab.html:85
#: instances/templates/instances/resize_tab.html:86
#, python-format
msgid "Host: %(total)s"
msgstr "主机:%(total)s"
#: instances/templates/instances/resize_tab.html:89
#: instances/templates/instances/resize_tab.html:90
msgid "Current (MiB)"
msgstr "当前(MiB)"
#: instances/templates/instances/resize_tab.html:93
#: instances/templates/instances/resize_tab.html:94
msgid "Maximum (MiB)"
msgstr "最大(MiB)"
#: instances/templates/instances/resize_tab.html:98
#: instances/templates/instances/resize_tab.html:99
msgid "Resize memory"
msgstr "调整内存"
#: instances/templates/instances/resize_tab.html:101
#: instances/templates/instances/resize_tab.html:102
msgid ""
"The current memory changes now, up to the maximum; shut the VM down to change"
" the maximum."
msgstr "当前内存可立即调整,但不能超过最大值;修改最大值需先关闭虚拟机。"
#: instances/templates/instances/resize_tab.html:104
#: instances/templates/instances/resize_tab.html:105
msgid ""
"A new size in GiB, larger than the disk's; empty keeps a disk as it is. Disks"
" grow while the VM runs; the guest then grows its partition and file system."
msgstr "新大小(GiB),须大于磁盘当前大小;留空则保持不变。磁盘可在虚拟机运行时扩容,之后由客户机扩展其分区和文件系统。"
#: instances/templates/instances/resize_tab.html:110
#: instances/templates/instances/resize_tab.html:111
#: instances/templates/instances/settings_tab.html:211
msgid "Error getting disk info"
msgstr "获取磁盘信息出错"
#: instances/templates/instances/resize_tab.html:112
#: instances/templates/instances/resize_tab.html:113
#, python-format
msgid "Now %(size)s"
msgstr "当前 %(size)s"
#: instances/templates/instances/resize_tab.html:115
#: instances/templates/instances/resize_tab.html:116
msgid "New size"
msgstr "新大小"
#: instances/templates/instances/resize_tab.html:124
#: instances/templates/instances/resize_tab.html:126
#: instances/templates/instances/resize_tab.html:128
msgid "Grow disks"
msgstr "扩容磁盘"
@ -5782,63 +5782,63 @@ msgstr "无效的 MAC 地址"
msgid "More MAC addresses than networks"
msgstr "MAC 地址数量多于网络数量"
#: instances/views.py:177
#: instances/views.py:178
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:183 instances/views.py:217
#: instances/views.py:184 instances/views.py:218
msgid "Too many searches are still running; try again shortly."
msgstr "仍在运行的搜索过多;请稍后再试。"
#: instances/views.py:265
#: instances/views.py:266
#, 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:271
#: instances/views.py:272
#, python-format
msgid "The host of '%(name)s' cannot be reached right now."
msgstr "目前无法连接“%(name)s”所在的主机。"
#: instances/views.py:272
#: instances/views.py:273
msgid " Jobs on it can be followed under Jobs in the menu."
msgstr " 其上的任务可在菜单的“任务”中跟踪。"
#: instances/views.py:280
#: instances/views.py:281
#, python-format
msgid "'%(name)s' is no longer on its host."
msgstr "“%(name)s”已不在其主机上。"
#: instances/views.py:367
#: instances/views.py:368
msgid "There is no other host to migrate to."
msgstr "没有其他可迁移到的主机。"
#: instances/views.py:369
#: instances/views.py:370
msgid "A VM migrates when it is running, paused or shut off."
msgstr "虚拟机在运行、暂停或关机状态下均可迁移。"
#: instances/views.py:371
#: instances/views.py:372
msgid ""
"A VM with snapshots cannot be migrated: its snapshots stay on this host. "
"Delete them first."
msgstr "有快照的虚拟机无法迁移:其快照保留在本主机上。请先删除快照。"
#: instances/views.py:373
#: instances/views.py:374
msgid ""
"A VM with host devices cannot be migrated: the destination may not have them."
" Remove them first."
msgstr "有主机设备的虚拟机无法迁移:目标主机可能没有这些设备。请先移除它们。"
#: instances/views.py:585
#: instances/views.py:586
#, python-format
msgid "Disk %(dev)s has changed since the page was loaded; reload the page"
msgstr "磁盘 %(dev)s 在页面加载后已更改;请刷新页面"
#: instances/views.py:660 instances/views.py:661
#: instances/views.py:661 instances/views.py:662
msgid "The VM was moved meanwhile; try again."
msgstr "该虚拟机在此期间已被移动;请重试。"
#: instances/views.py:777
#: instances/views.py:778
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:781
#: instances/views.py:782
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,275 +5858,280 @@ msgstr ""
"运行中的虚拟机没有可用 PCI 插槽来添加磁盘所需的 SCSI 控制器:请关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe "
"插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。"
#: instances/views.py:799
#: instances/views.py:800
#, python-format
msgid "Invalid disk options: %(options)s"
msgstr "无效的磁盘选项:%(options)s"
#: instances/views.py:811 instances/views.py:902
#: instances/views.py:812 instances/views.py:903
#, python-format
msgid "Invalid options: %(options)s"
msgstr "无效的选项:%(options)s"
#: instances/views.py:843
#: instances/views.py:844
msgid "The VM was forced off but did not start again: it stays off."
msgstr "虚拟机已被强制关机,但没有再次启动:它保持关机状态。"
#: instances/views.py:1030
#: instances/views.py:1031
#, python-format
msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)"
msgstr "请先设置 %(compute)s 的 gstfsd 密钥(计算节点,编辑该主机)"
#: instances/views.py:1037 instances/views.py:1055 instances/views.py:1064
#: instances/views.py:1038 instances/views.py:1056 instances/views.py:1065
#, python-format
msgid "gstfsd error: %(err)s"
msgstr "gstfsd 错误:%(err)s"
#: instances/views.py:1065
#: instances/views.py:1066
msgid "the reply is not signed with the key"
msgstr "回复未使用该密钥签名"
#: instances/views.py:1073
#: instances/views.py:1074
msgid "Shut the VM down, or start its QEMU guest agent, and try again"
msgstr "请关闭虚拟机,或启动其 QEMU 客户机代理,然后重试"
#: instances/views.py:1086
#: instances/views.py:1087
msgid "The change may still be made when the agent answers again."
msgstr "当代理再次响应时,此更改仍可能生效。"
#: instances/views.py:1114
#: instances/views.py:1115
msgid "Reset root password"
msgstr "重置 root 密码"
#: instances/views.py:1118
#: instances/views.py:1119
msgid "Enter a password"
msgstr "请输入密码"
#: instances/views.py:1132
#: instances/views.py:1133
msgid "Select an SSH public key"
msgstr "请选择 SSH 公钥"
#: instances/views.py:1154
#: instances/views.py:1155
#, python-format
msgid "Installed new SSH public key %(keyname)s"
msgstr "已安装新的 SSH 公钥 %(keyname)s"
#: instances/views.py:1174
#: instances/views.py:1175
msgid "Enter a whole number of vCPUs"
msgstr "请输入整数个 vCPU"
#: instances/views.py:1178
#: instances/views.py:1179
msgid "Shut off the VM to change its vCPUs"
msgstr "请关闭虚拟机以更改其 vCPU"
#: instances/views.py:1181
#: instances/views.py:1182
msgid "The current vCPUs cannot be more than the maximum"
msgstr "当前 vCPU 数不能超过最大值"
#: instances/views.py:1188
#: instances/views.py:1189
#, python-format
msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'."
msgstr "%(quota)s:无法调整“%(instance_name)s”的 CPU。"
#: instances/views.py:1196
#: instances/views.py:1197
#, python-format
msgid "vCPUs set to %(cur)s (maximum %(max)s)"
msgstr "vCPU 已设为 %(cur)s(最大 %(max)s)"
#: instances/views.py:1215
#: instances/views.py:1216
msgid "Enter a whole number for memory"
msgstr "请输入整数内存值"
#: instances/views.py:1218
#: instances/views.py:1219
msgid "The current memory cannot be more than the maximum"
msgstr "当前内存不能超过最大值"
#: instances/views.py:1222
#: instances/views.py:1223
#, python-format
msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'."
msgstr "%(quota)s:无法调整“%(instance_name)s”的内存。"
#: instances/views.py:1228
#: instances/views.py:1229
#, python-format
msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)"
msgstr "内存已设为 %(cur)s MiB(最大 %(max)s MiB)"
#: instances/views.py:1248
#: instances/views.py:1249
msgid "Enter disk sizes as whole GiB"
msgstr "请以整数 GiB 输入磁盘大小"
#: instances/views.py:1252
#: instances/views.py:1253
#, python-format
msgid "Disk %(dev)s was changed meanwhile; reload the page"
msgstr "磁盘 %(dev)s 在此期间已更改;请重新加载页面"
#: instances/views.py:1257
#, python-format
msgid "%(dev)s is %(size)s: a disk cannot shrink"
msgstr "%(dev)s 为 %(size)s:磁盘不能缩小"
#: instances/views.py:1260
#: instances/views.py:1265
msgid "No disks were selected or valid for resizing."
msgstr "未选择磁盘或没有可调整大小的有效磁盘。"
#: instances/views.py:1269
#: instances/views.py:1274
#, python-format
msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'."
msgstr "%(quota)s:无法调整“%(instance_name)s”的磁盘。"
#: instances/views.py:1281
#: instances/views.py:1286
#, python-format
msgid "The storage pool of %(dev)s cannot resize its volumes"
msgstr "%(dev)s 所在的存储池无法调整其卷的大小"
#: instances/views.py:1283
#: instances/views.py:1288
#, python-format
msgid "Disk is resized: %(dev)s"
msgstr "磁盘已调整大小:%(dev)s"
#: instances/views.py:1377
#: instances/views.py:1382
msgid "The VM's machine has no PCIe slots to add"
msgstr "该虚拟机的机器类型没有可添加的 PCIe 插槽"
#: instances/views.py:1382
#: instances/views.py:1387
#, python-format
msgid "%(count)s PCIe slots added"
msgstr "已添加 %(count)s 个 PCIe 插槽"
#: instances/views.py:1384
#: instances/views.py:1389
#, python-format
msgid "%(count)s PCIe slots added: the VM gets them at its next start"
msgstr "已添加 %(count)s 个 PCIe 插槽:虚拟机在下次启动时获得它们"
#: instances/views.py:1430
#: instances/views.py:1435
#, python-format
msgid "%(volume)s is already a disk of this VM"
msgstr "%(volume)s 已是此虚拟机的磁盘"
#: instances/views.py:1520
#: instances/views.py:1525
msgid "Volume changes are applied. But it will be activated after shutdown"
msgstr "卷更改已应用,但将在关机后生效"
#: instances/views.py:1525
#: instances/views.py:1530
msgid "Volume is changed successfully."
msgstr "卷已成功更改。"
#: instances/views.py:1545
#: instances/views.py:1550
#, python-format
msgid "Disk %(dev)s is not a storage volume of this instance"
msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷"
#: instances/views.py:1550 vrtManager/instance.py:2346
#: instances/views.py:1555 vrtManager/instance.py:2346
msgid "The VM has a saved state; start it or remove the saved state first"
msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态"
#: instances/views.py:1556
#: instances/views.py:1561
#, python-format
msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down"
msgstr "磁盘 %(dev)s 有待生效的更改;请在虚拟机关机后删除它"
#: instances/views.py:1571
#: instances/views.py:1576
#, python-format
msgid "Volume %(vol)s is used by another VM; detach it instead"
msgstr "卷 %(vol)s 正被另一台虚拟机使用;请改为分离它"
#: instances/views.py:1583
#: instances/views.py:1588
#, 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:1594
#: instances/views.py:1599
#, python-format
msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s"
msgstr "磁盘 %(dev)s 已分离,但其卷已保留:%(err)s"
#: instances/views.py:1622
#: instances/views.py:1627
#, python-format
msgid "This VM cannot take a CD-ROM on the %(bus)s bus now"
msgstr "该虚拟机现在无法在 %(bus)s 总线上添加 CD-ROM"
#: instances/views.py:1625
#: instances/views.py:1630
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:1630
#: instances/views.py:1635
#, python-format
msgid "%(image)s is already in a CD-ROM of this VM"
msgstr "%(image)s 已在此虚拟机的某个光驱中"
#: instances/views.py:1711
#: instances/views.py:1716
#, python-format
msgid "Pool %(pool)s was not read again: %(err)s"
msgstr "未重新读取存储池 %(pool)s:%(err)s"
#: instances/views.py:1732
#: instances/views.py:1737
#, python-format
msgid "Snapshot was not deleted: %(err)s"
msgstr "快照未删除:%(err)s"
#: instances/views.py:1850
#: instances/views.py:1855
msgid "Add at least one device to the boot order."
msgstr "请至少向启动顺序中添加一个设备。"
#: instances/views.py:1856 vrtManager/instance.py:1145
#: instances/views.py:1861 vrtManager/instance.py:1145
msgid "Invalid Device Type for boot order"
msgstr "启动顺序的设备类型无效"
#: instances/views.py:1867
#: instances/views.py:1872
msgid "Boot order changed. It applies at the next start."
msgstr "启动顺序已更改,将在下次启动时生效。"
#: instances/views.py:1869
#: instances/views.py:1874
msgid "Boot order changed successfully."
msgstr "启动顺序已成功更改。"
#: instances/views.py:1889
#: instances/views.py:1894
msgid "The XML is empty"
msgstr "XML 为空"
#: instances/views.py:1893 instances/views.py:2534
#: instances/views.py:1898 instances/views.py:2539
#, python-format
msgid "The XML is not well-formed: %(error)s"
msgstr "XML 格式不正确:%(error)s"
#: instances/views.py:1895
#: instances/views.py:1900
#, python-format
msgid "The XML must keep the VM's UUID %(uuid)s."
msgstr "XML 必须保留虚拟机的 UUID %(uuid)s。"
#: instances/views.py:1899
#: instances/views.py:1904
msgid ""
"The definition has changed since the editor was opened. Reload the page to "
"edit the current one."
msgstr "自打开编辑器以来定义已被更改。请重新加载页面以编辑当前定义。"
#: instances/views.py:1915
#: instances/views.py:1920
msgid "The XML definition was saved."
msgstr "XML 定义已保存。"
#: instances/views.py:1917
#: instances/views.py:1922
msgid "The XML definition was saved; the VM uses it from its next start."
msgstr "XML 定义已保存;虚拟机从下次启动起使用它。"
#: instances/views.py:1998
#: instances/views.py:2003
msgid "Select one network interface to change"
msgstr "请选择一个要更改的网络接口"
#: instances/views.py:2036
#: instances/views.py:2041
msgid "Network Device Config is changed. Please shutdown instance to activate."
msgstr "网络设备配置已更改。请关闭虚拟机以使其生效。"
#: instances/views.py:2038
#: instances/views.py:2043
msgid "Network device changed"
msgstr "网络设备已更改"
#: instances/views.py:2050
#: instances/views.py:2055
msgid "No network selected"
msgstr "未选择网络"
#: instances/views.py:2055
#: instances/views.py:2060
#, python-format
msgid "The VM already has a network device with MAC %(mac)s"
msgstr "虚拟机已有 MAC 地址为 %(mac)s 的网络设备"
#: instances/views.py:2074
#: instances/views.py:2079
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 "
@ -6134,136 +6139,136 @@ msgid ""
msgstr ""
"运行中的虚拟机没有可用 PCI 插槽来添加网络设备:请关机后再添加设备。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。"
#: instances/views.py:2120 instances/views.py:2126
#: instances/views.py:2125 instances/views.py:2131
msgid "The VM has it"
msgstr "虚拟机已有此设备"
#: instances/views.py:2161
#: instances/views.py:2166
#, python-format
msgid "The host has no USB device %(device)s; reload the page"
msgstr "主机没有 USB 设备 %(device)s;请重新加载页面"
#: instances/views.py:2182
#: instances/views.py:2187
#, python-format
msgid "The host has no PCI device %(device)s"
msgstr "主机上没有 PCI 设备 %(device)s"
#: instances/views.py:2200
#: instances/views.py:2205
#, 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:2245 instances/views.py:2275
#: instances/views.py:2250 instances/views.py:2280
msgid "Select a network interface and a QoS direction"
msgstr "请选择网络接口和 QoS 方向"
#: instances/views.py:2248 vrtManager/network.py:470
#: instances/views.py:2253 vrtManager/network.py:470
msgid "QoS rates must be whole numbers"
msgstr "QoS 速率必须为整数"
#: instances/views.py:2255 networks/views.py:230
#: instances/views.py:2260 networks/views.py:230
#, python-format
msgid "%(qos_dir)s QoS is set"
msgstr "%(qos_dir)s QoS 已设置"
#: instances/views.py:2260
#: instances/views.py:2265
#, 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:2282 networks/views.py:256
#: instances/views.py:2287 networks/views.py:256
#, python-format
msgid "%(qos_dir)s QoS is deleted"
msgstr "%(qos_dir)s QoS 已删除"
#: instances/views.py:2287
#: instances/views.py:2292
#, 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:2315
#: instances/views.py:2320
msgid "Only one owner is allowed and the one already added"
msgstr "只允许一个所有者,且已添加"
#: instances/views.py:2317
#: instances/views.py:2322
#, python-format
msgid "%(user)s is already an owner"
msgstr "%(user)s 已是所有者"
#: instances/views.py:2362
#: instances/views.py:2367
#, python-format
msgid "Console settings were not saved: %(errors)s"
msgstr "控制台设置未保存:%(errors)s"
#: instances/views.py:2384
#: instances/views.py:2389
msgid ""
"Error setting console password. You should check that your instance have an "
"graphic device."
msgstr "设置控制台密码出错。请检查虚拟机是否有图形设备。"
#: instances/views.py:2431
#: instances/views.py:2436
msgid "Shut the VM down to change whether it is a template."
msgstr "请关闭虚拟机以更改其是否为模板。"
#: instances/views.py:2437
#: instances/views.py:2442
#, python-format
msgid "%(quota)s: '%(instance_name)s' stays a template."
msgstr "%(quota)s:“%(instance_name)s”仍为模板。"
#: instances/views.py:2521
#: instances/views.py:2526
msgid "The XML has no name"
msgstr "XML 中没有名称"
#: instances/views.py:2536 webvirtcloud/middleware.py:156
#: instances/views.py:2541 webvirtcloud/middleware.py:156
#, python-format
msgid "libvirt Error - %(exception)s"
msgstr "libvirt 错误 - %(exception)s"
#: instances/views.py:2543
#: instances/views.py:2548
msgid "An empty disk of the size you set"
msgstr "按设定大小创建的空磁盘"
#: instances/views.py:2544
#: instances/views.py:2549
msgid "Volumes already in a pool"
msgstr "存储池中已有的卷"
#: instances/views.py:2545
#: instances/views.py:2550
msgid "A copy of a template volume"
msgstr "模板卷的副本"
#: instances/views.py:2623
#: instances/views.py:2628
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:2625
#: instances/views.py:2630
msgid "This host has no network for the VM: add one on its Networks page."
msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。"
#: instances/views.py:2657
#: instances/views.py:2662
#, python-format
msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it"
msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它"
#: instances/views.py:2684
#: instances/views.py:2689
msgid "Flavor Created"
msgstr "规格已创建"
#: instances/views.py:2692
#: instances/views.py:2697
msgid "Create Flavor"
msgstr "创建规格"
#: instances/views.py:2704
#: instances/views.py:2709
msgid "Flavor Deleted"
msgstr "规格已删除"
#: instances/views.py:2710
#: instances/views.py:2715
msgid "Only the size template goes; VMs made from it keep their size."
msgstr "仅删除此规格;由它创建的虚拟机保持其大小。"