diff --git a/instances/templates/instances/info_tab.html b/instances/templates/instances/info_tab.html index 653dcda1..a0992c69 100644 --- a/instances/templates/instances/info_tab.html +++ b/instances/templates/instances/info_tab.html @@ -18,4 +18,16 @@
{% trans "Timezone / Offset" %}
+ {# instance_page.js fills and shows it when the agent gives the file systems #} + + + + + + + + + + + diff --git a/instances/tests/test_guest_info.py b/instances/tests/test_guest_info.py new file mode 100644 index 00000000..b3c45db0 --- /dev/null +++ b/instances/tests/test_guest_info.py @@ -0,0 +1,42 @@ +"""The Guest Info tab's reading: the guest's OS and its file systems, their +sizes in words for the page.""" + +from unittest.mock import PropertyMock, patch + +from django.contrib.auth import get_user_model +from django.template.loader import render_to_string +from django.test import TestCase +from django.urls import reverse +from lxml import html + +from computes.models import Compute +from instances.models import Instance + + +class GuestInfoTestCase(TestCase): + def setUp(self): + compute = Compute.objects.create(name="gi", hostname="192.0.2.41", login="root", password="", type=1) + self.instance = Instance.objects.create(compute=compute, name="gi-vm", uuid="00000000-0000-4000-8000-0000000000a1") + self.client.force_login(get_user_model().objects.create_superuser("gi-admin", "gi@example.com", "pw")) + patcher = patch.object(Instance, "proxy", new_callable=PropertyMock) + self.proxy = patcher.start().return_value + self.addCleanup(patcher.stop) + + def test_each_file_system_is_told_in_words(self): + self.proxy.osinfo.return_value = {"id": "rocky", "filesystems": [ + {"mountpoint": "/", "type": "xfs", "used": 9 * 2**30, "total": 10 * 2**30}]} + data = self.client.get(reverse("instances:osinfo", args=[self.instance.pk])).json() + self.assertEqual(data["filesystems"], [{"mountpoint": "/", "type": "xfs", "used": 9 * 2**30, "total": 10 * 2**30, + "used_text": "9.0\xa0GB", "total_text": "10.0\xa0GB", "percent": 90}]) + + def test_a_file_system_used_past_its_total_is_full(self): + # a BSD guest's total leaves out the space reserved for root, which used counts + self.proxy.osinfo.return_value = {"filesystems": [{"mountpoint": "/", "type": "ufs", "used": 104, "total": 100}]} + data = self.client.get(reverse("instances:osinfo", args=[self.instance.pk])).json() + self.assertEqual(data["filesystems"][0]["percent"], 100) + + def test_the_tab_has_a_hidden_table_for_them(self): + # filled and shown by instance_page.js when the agent gives some + table = html.fromstring(render_to_string("instances/info_tab.html")).xpath("//table[@id='osfilesystems']")[0] + self.assertIsNotNone(table.get("hidden")) + self.assertEqual(table.xpath(".//th/text()"), ["Mount point", "Type", "Used"]) diff --git a/instances/views.py b/instances/views.py index ec73d2fe..8c1d25d1 100755 --- a/instances/views.py +++ b/instances/views.py @@ -549,7 +549,11 @@ def stats(request, pk): def osinfo(request, pk): instance = get_instance(request.user, pk) try: - return JsonResponse(instance.proxy.osinfo()) + info = instance.proxy.osinfo() + for fs in info.get("filesystems", []): # sizes in the page's words + fs.update(used_text=filesizeformat(fs["used"]), total_text=filesizeformat(fs["total"]), + percent=min(100, fs["used"] * 100 // fs["total"])) # used may pass a BSD guest's total + return JsonResponse(info) except libvirtError as err: return JsonResponse({"error": error_text(request, err)}, status=400) diff --git a/locale/tr/LC_MESSAGES/django.mo b/locale/tr/LC_MESSAGES/django.mo index 9223fb10..3ef95fe2 100644 Binary files a/locale/tr/LC_MESSAGES/django.mo and b/locale/tr/LC_MESSAGES/django.mo differ diff --git a/locale/tr/LC_MESSAGES/django.po b/locale/tr/LC_MESSAGES/django.po index d0395bb4..2fae89a5 100644 --- a/locale/tr/LC_MESSAGES/django.po +++ b/locale/tr/LC_MESSAGES/django.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-11-20 05:53+0000\n" +"POT-Creation-Date: 2026-11-20 06:10+0000\n" "PO-Revision-Date: 2020-11-04 12:00+0000\n" "Last-Translator: catborise , 2020\n" "Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/tr/)\n" @@ -3503,7 +3503,7 @@ msgstr "" "VNC olarak değiştirin." #: instances/api/viewsets.py:160 instances/api/viewsets.py:178 -#: instances/views.py:865 instances/views.py:887 instances/views.py:1877 +#: instances/views.py:869 instances/views.py:891 instances/views.py:1881 msgid "Templates cannot be started." msgstr "Şablon makineler başlatılamaz." @@ -3575,7 +3575,7 @@ msgstr "" msgid "A password takes no line breaks or other control characters." msgstr "Parola satır sonu ya da başka denetim karakteri içeremez." -#: instances/forms.py:114 vrtManager/instance.py:1728 +#: instances/forms.py:114 vrtManager/instance.py:1738 msgid "" "The console listens on no address (on a network, a socket or nowhere); change" " it in the XML editor" @@ -3678,7 +3678,7 @@ msgstr "" msgid "Delete snapshot" msgstr "Anlık görüntüyü sil" -#: instances/jobs.py:365 vrtManager/instance.py:2489 +#: instances/jobs.py:365 vrtManager/instance.py:2499 #, python-format msgid "The VM has no external snapshot named %(name)s" msgstr "Sanal makinede %(name)s adında harici anlık görüntü yok" @@ -3713,7 +3713,7 @@ msgstr "Sanal makine artık işin çalıştığı sunucuda değil" msgid "Take snapshot" msgstr "Anlık görüntü al" -#: instances/jobs.py:433 instances/jobs.py:442 vrtManager/instance.py:2078 +#: instances/jobs.py:433 instances/jobs.py:442 vrtManager/instance.py:2088 #, python-format msgid "A snapshot named %(name)s already exists" msgstr "%(name)s adında bir anlık görüntü zaten var" @@ -3877,12 +3877,12 @@ msgstr "" msgid "Each network card needs a network" msgstr "Her ağ kartının bir ağı olmalı" -#: instances/jobs.py:876 vrtManager/backup.py:387 vrtManager/instance.py:2905 +#: instances/jobs.py:876 vrtManager/backup.py:387 vrtManager/instance.py:2915 #, python-format msgid "This host has no network %(name)s" msgstr "Bu sunucuda %(name)s ağı yok" -#: instances/jobs.py:878 vrtManager/backup.py:391 vrtManager/instance.py:2907 +#: instances/jobs.py:878 vrtManager/backup.py:391 vrtManager/instance.py:2917 #, python-format msgid "This host has no network filter %(name)s" msgstr "Bu sunucuda %(name)s ağ filtresi yok" @@ -3907,7 +3907,7 @@ msgstr "" msgid "Create VM" msgstr "Sanal makine oluştur" -#: instances/jobs.py:936 instances/jobs.py:983 instances/views.py:2650 +#: instances/jobs.py:936 instances/jobs.py:983 instances/views.py:2654 msgid "A virtual machine with this name already exists" msgstr "Bu isimde bir sanal makine mevcut" @@ -3956,7 +3956,7 @@ msgstr "cloud-init tohumu, disk için bir dizin depolama havuzu gerektirir" msgid "This host offers no firmware %(firmware)s" msgstr "Bu sunucu %(firmware)s firmware'ini sunmuyor" -#: instances/jobs.py:965 vrtManager/instance.py:3255 +#: instances/jobs.py:965 vrtManager/instance.py:3265 msgid "This host offers no TPM 2.0: install swtpm on it" msgstr "Bu sunucu TPM 2.0 sunmuyor: üzerine swtpm kurun" @@ -4271,7 +4271,7 @@ msgid "Disk source" msgstr "Disk kaynağı" #: instances/templates/add_instance_volume.html:21 -#: instances/templates/create_instance_w2.html:134 instances/views.py:2680 +#: instances/templates/create_instance_w2.html:134 instances/views.py:2684 msgid "New disk" msgstr "Yeni disk" @@ -4668,7 +4668,7 @@ msgstr "Özel CPU modelleri" msgid "Size (GiB)" msgstr "Boyut (GiB)" -#: instances/templates/create_instance_w2.html:161 instances/views.py:2681 +#: instances/templates/create_instance_w2.html:161 instances/views.py:2685 msgid "Existing volumes" msgstr "Mevcut birimler" @@ -4705,7 +4705,7 @@ msgstr "Aygıt" msgid "Remove" msgstr "Kaldır" -#: instances/templates/create_instance_w2.html:194 instances/views.py:2682 +#: instances/templates/create_instance_w2.html:194 instances/views.py:2686 msgid "Clone from template" msgstr "Şablondan klonla" @@ -5269,7 +5269,7 @@ msgid "Add USB device" msgstr "USB aygıtı ekle" #: instances/templates/instances/host_devices_form.html:18 -#: vrtManager/instance.py:3158 +#: vrtManager/instance.py:3168 msgid "" "A VM with a saved state does not change its USB devices: start it, or start " "it without its saved state" @@ -5356,6 +5356,31 @@ msgstr "Çekirdek Sürümü" msgid "Timezone / Offset" msgstr "Saat Dilimi / Konum" +#: instances/templates/instances/info_tab.html:23 +msgid "File systems" +msgstr "Dosya sistemleri" + +#: instances/templates/instances/info_tab.html:26 +msgid "Mount point" +msgstr "Bağlama noktası" + +#: instances/templates/instances/info_tab.html:27 +#: instances/templates/instances/settings_tab.html:338 +#: interfaces/templates/create_iface_block.html:26 +#: interfaces/templates/interface.html:43 +#: interfaces/templates/interface.html:120 +#: networks/templates/create_net_block.html:26 +#: networks/templates/network.html:58 networks/templates/networks.html:35 +#: nodedevs/templates/nodedevs.html:34 nodedevs/templates/nodedevs.html:80 +#: storages/templates/storage.html:99 storages/templates/storages.html:39 +#: virtsecrets/templates/secrets.html:29 +msgid "Type" +msgstr "Tip" + +#: instances/templates/instances/info_tab.html:28 +msgid "Used" +msgstr "Kullanılan" + #: instances/templates/instances/migrate_plan.html:4 #, python-format msgid "The disks could not be checked: %(error)s" @@ -5997,18 +6022,6 @@ msgstr "" "macvtap birçok yapılandırmada sunucu ile sanal makine ağı arasındaki " "iletişimde çalışmaz" -#: instances/templates/instances/settings_tab.html:338 -#: interfaces/templates/create_iface_block.html:26 -#: interfaces/templates/interface.html:43 -#: interfaces/templates/interface.html:120 -#: networks/templates/create_net_block.html:26 -#: networks/templates/network.html:58 networks/templates/networks.html:35 -#: nodedevs/templates/nodedevs.html:34 nodedevs/templates/nodedevs.html:80 -#: storages/templates/storage.html:99 storages/templates/storages.html:39 -#: virtsecrets/templates/secrets.html:29 -msgid "Type" -msgstr "Tip" - #: instances/templates/instances/settings_tab.html:339 msgid "Host device" msgstr "Sunucudaki aygıt" @@ -7098,16 +7111,16 @@ msgstr "" "Sunucu aygıtları olan bir sanal makine taşınamaz: hedefte bu aygıtlar " "olmayabilir. Önce onları kaldırın." -#: instances/views.py:636 +#: instances/views.py:640 #, 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:711 instances/views.py:712 +#: instances/views.py:715 instances/views.py:716 msgid "The VM was moved meanwhile; try again." msgstr "Sanal makine bu arada taşındı; yeniden deneyin." -#: instances/views.py:828 +#: instances/views.py:832 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 " @@ -7120,7 +7133,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:832 +#: instances/views.py:836 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" @@ -7132,195 +7145,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:850 +#: instances/views.py:854 #, python-format msgid "Invalid disk options: %(options)s" msgstr "Geçersiz disk seçenekleri: %(options)s" -#: instances/views.py:862 instances/views.py:957 +#: instances/views.py:866 instances/views.py:961 #, python-format msgid "Invalid options: %(options)s" msgstr "Geçersiz seçenekler: %(options)s" -#: instances/views.py:897 +#: instances/views.py:901 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:1085 +#: instances/views.py:1089 #, 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:1092 instances/views.py:1110 instances/views.py:1119 +#: instances/views.py:1096 instances/views.py:1114 instances/views.py:1123 #, python-format msgid "gstfsd error: %(err)s" msgstr "gstfsd hatası: %(err)s" -#: instances/views.py:1120 +#: instances/views.py:1124 msgid "the reply is not signed with the key" msgstr "yanıt anahtarla imzalanmamış" -#: instances/views.py:1128 +#: instances/views.py:1132 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:1136 +#: instances/views.py:1140 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:1151 +#: instances/views.py:1155 msgid "Enter a password" msgstr "Bir parola girin" -#: instances/views.py:1156 +#: instances/views.py:1160 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:1172 +#: instances/views.py:1176 msgid "Reset root password" msgstr "Root parolasını sıfırla" -#: instances/views.py:1188 +#: instances/views.py:1192 msgid "Select an SSH public key" msgstr "Bir SSH açık anahtarı seçin" -#: instances/views.py:1210 +#: instances/views.py:1214 #, python-format msgid "Installed new SSH public key %(keyname)s" msgstr "Yeni %(keyname)s SSH açık anahtarı yüklendi" -#: instances/views.py:1230 +#: instances/views.py:1234 msgid "Enter a whole number of vCPUs" msgstr "vCPU sayısı için bir tam sayı girin" -#: instances/views.py:1234 +#: instances/views.py:1238 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:1237 +#: instances/views.py:1241 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:1244 +#: instances/views.py:1248 #, 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:1252 +#: instances/views.py:1256 #, 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:1271 +#: instances/views.py:1275 msgid "Enter a whole number for memory" msgstr "Bellek için bir tam sayı girin" -#: instances/views.py:1274 +#: instances/views.py:1278 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:1278 +#: instances/views.py:1282 #, 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:1284 +#: instances/views.py:1288 #, 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:1304 +#: instances/views.py:1308 msgid "Enter disk sizes as whole GiB" msgstr "Disk boyutlarını tam GiB olarak girin" -#: instances/views.py:1308 +#: instances/views.py:1312 #, 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:1312 +#: instances/views.py:1316 #, 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:1320 +#: instances/views.py:1324 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:1329 +#: instances/views.py:1333 #, 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:1341 +#: instances/views.py:1345 #, 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:1343 +#: instances/views.py:1347 #, python-format msgid "Disk is resized: %(dev)s" msgstr "Disk boyutu değiştirildi: %(dev)s" -#: instances/views.py:1437 +#: instances/views.py:1441 msgid "The VM's machine has no PCIe slots to add" msgstr "Sanal makinenin makine tipinde eklenecek PCIe yuvası yok" -#: instances/views.py:1442 +#: instances/views.py:1446 #, python-format msgid "%(count)s PCIe slots added" msgstr "%(count)s PCIe yuvası eklendi" -#: instances/views.py:1444 +#: instances/views.py:1448 #, 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:1495 +#: instances/views.py:1499 #, python-format msgid "%(volume)s is already a disk of this VM" msgstr "%(volume)s zaten bu sanal makinenin bir diski" -#: instances/views.py:1585 +#: instances/views.py:1589 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:1590 +#: instances/views.py:1594 msgid "Volume is changed successfully." msgstr "Birim başarıyla değiştirildi." -#: instances/views.py:1610 +#: instances/views.py:1614 #, 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:1615 vrtManager/instance.py:2499 +#: instances/views.py:1619 vrtManager/instance.py:2509 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:1621 +#: instances/views.py:1625 #, 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:1636 +#: instances/views.py:1640 #, 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:1654 +#: instances/views.py:1658 #, python-format msgid "" "The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete " @@ -7329,66 +7342,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:1665 +#: instances/views.py:1669 #, 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:1693 +#: instances/views.py:1697 #, 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:1696 +#: instances/views.py:1700 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:1701 +#: instances/views.py:1705 #, 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:1782 +#: instances/views.py:1786 #, python-format msgid "Pool %(pool)s was not read again: %(err)s" msgstr "%(pool)s havuzu yeniden okunamadı: %(err)s" -#: instances/views.py:1803 +#: instances/views.py:1807 #, python-format msgid "Snapshot was not deleted: %(err)s" msgstr "Anlık görüntü silinmedi: %(err)s" -#: instances/views.py:1922 +#: instances/views.py:1926 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:1928 vrtManager/instance.py:1269 +#: instances/views.py:1932 vrtManager/instance.py:1279 msgid "Invalid Device Type for boot order" msgstr "Ön yükleme sırası için geçersiz aygıt türü" -#: instances/views.py:1939 +#: instances/views.py:1943 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:1941 +#: instances/views.py:1945 msgid "Boot order changed successfully." msgstr "Ön yükleme sırası başarıyla değiştirildi." -#: instances/views.py:1961 +#: instances/views.py:1965 msgid "The XML is empty" msgstr "XML boş" -#: instances/views.py:1965 instances/views.py:2662 +#: instances/views.py:1969 instances/views.py:2666 #, python-format msgid "The XML is not well-formed: %(error)s" msgstr "XML düzgün biçimlendirilmemiş: %(error)s" -#: instances/views.py:1967 +#: instances/views.py:1971 #, 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:1971 +#: instances/views.py:1975 msgid "" "The definition has changed since the editor was opened. Reload the page to " "edit the current one." @@ -7396,45 +7409,45 @@ msgstr "" "Düzenleyici açıldığından beri tanım değişti. Geçerli tanımı düzenlemek için " "sayfayı yeniden yükleyin." -#: instances/views.py:1987 +#: instances/views.py:1991 msgid "The XML definition was saved." msgstr "XML tanımı kaydedildi." -#: instances/views.py:1989 +#: instances/views.py:1993 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:2070 +#: instances/views.py:2074 msgid "Select one network interface to change" msgstr "Değiştirilecek bir ağ arabirimi seçin" -#: instances/views.py:2084 +#: instances/views.py:2088 #, python-format msgid "Network interface %(mac)s was changed meanwhile; reload the page" msgstr "%(mac)s ağ arayüzü bu arada değişti; sayfayı yeniden yükleyin" -#: instances/views.py:2114 +#: instances/views.py:2118 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:2116 +#: instances/views.py:2120 msgid "Network device changed" msgstr "Ağ aygıtı değiştirildi" -#: instances/views.py:2128 +#: instances/views.py:2132 msgid "No network selected" msgstr "Ağ seçilmedi" -#: instances/views.py:2133 +#: instances/views.py:2137 #, 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:2152 +#: instances/views.py:2156 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 " @@ -7444,21 +7457,21 @@ msgstr "" "aygıtı sonra ekleyin; Diskler sekmesindeki PCIe yuvaları ekle, sonraki " "başlatmadan itibaren ona boş yuvalar verir." -#: instances/views.py:2198 instances/views.py:2204 +#: instances/views.py:2202 instances/views.py:2208 msgid "The VM has it" msgstr "Sanal makinede var" -#: instances/views.py:2239 +#: instances/views.py:2243 #, 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:2260 +#: instances/views.py:2264 #, python-format msgid "The host has no PCI device %(device)s" msgstr "Sunucuda %(device)s PCI aygıtı yok" -#: instances/views.py:2278 +#: instances/views.py:2282 #, python-format msgid "" "Removal of PCI device %(address)s requested: the guest has not let it go yet;" @@ -7468,20 +7481,20 @@ msgstr "" "bırakmadı; bırakana ya da sanal makine durana kadar çalışan sanal makinede " "kalır." -#: instances/views.py:2323 instances/views.py:2353 +#: instances/views.py:2327 instances/views.py:2357 msgid "Select a network interface and a QoS direction" msgstr "Bir ağ arabirimi ve bir QoS yönü seçin" -#: instances/views.py:2326 vrtManager/network.py:470 +#: instances/views.py:2330 vrtManager/network.py:470 msgid "QoS rates must be whole numbers" msgstr "QoS hızları tam sayı olmalıdır" -#: instances/views.py:2333 networks/views.py:235 +#: instances/views.py:2337 networks/views.py:235 #, python-format msgid "%(qos_dir)s QoS is set" msgstr "%(qos_dir)s QoS ayarlandı" -#: instances/views.py:2338 +#: instances/views.py:2342 #, python-format msgid "" "%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on." @@ -7489,12 +7502,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:2360 networks/views.py:261 +#: instances/views.py:2364 networks/views.py:261 #, python-format msgid "%(qos_dir)s QoS is deleted" msgstr "%(qos_dir)s QoS silindi" -#: instances/views.py:2365 +#: instances/views.py:2369 #, python-format msgid "" "%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is " @@ -7503,21 +7516,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:2393 +#: instances/views.py:2397 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:2395 +#: instances/views.py:2399 #, python-format msgid "%(user)s is already an owner" msgstr "%(user)s zaten bir sahip" -#: instances/views.py:2460 +#: instances/views.py:2464 #, python-format msgid "Console settings were not saved: %(errors)s" msgstr "Konsol ayarları kaydedilmedi: %(errors)s" -#: instances/views.py:2482 +#: instances/views.py:2486 msgid "" "Error setting console password. You should check that your instance have an " "graphic device." @@ -7525,37 +7538,37 @@ msgstr "" "Konsol parolası ayarlanırken hata oluştu. Sanal makinenin bir grafik aygıtına" " sahip olduğundan emin olunuz." -#: instances/views.py:2529 +#: instances/views.py:2533 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:2535 +#: instances/views.py:2539 #, python-format msgid "%(quota)s: '%(instance_name)s' stays a template." msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor." -#: instances/views.py:2648 +#: instances/views.py:2652 msgid "The XML has no name" msgstr "XML'de ad yok" -#: instances/views.py:2666 webvirtcloud/middleware.py:157 +#: instances/views.py:2670 webvirtcloud/middleware.py:157 #, python-format msgid "libvirt Error - %(exception)s" msgstr "libvirt Hatası - %(exception)s" -#: instances/views.py:2680 +#: instances/views.py:2684 msgid "An empty disk of the size you set" msgstr "Belirlediğiniz boyutta boş bir disk" -#: instances/views.py:2681 +#: instances/views.py:2685 msgid "Volumes already in a pool" msgstr "Bir havuzda zaten bulunan birimler" -#: instances/views.py:2682 +#: instances/views.py:2686 msgid "A copy of a template volume" msgstr "Bir şablon biriminin kopyası" -#: instances/views.py:2772 +#: instances/views.py:2776 msgid "" "This host has no running storage pool for the VM's disks: add or start one on" " its Storage page." @@ -7563,29 +7576,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:2774 +#: instances/views.py:2778 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:2806 +#: instances/views.py:2810 #, 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:2835 +#: instances/views.py:2839 msgid "Flavor Created" msgstr "Flavor Oluşturuldu" -#: instances/views.py:2843 +#: instances/views.py:2847 msgid "Create Flavor" msgstr "Kullanıcı Oluştur" -#: instances/views.py:2855 +#: instances/views.py:2859 msgid "Flavor Deleted" msgstr "Flavor Silindi" -#: instances/views.py:2861 +#: instances/views.py:2865 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ı" @@ -11652,7 +11665,7 @@ msgstr "" "Ana makinenin ya da harici bir TPM'i olan sanal makine klonlanmaz; önce onu " "kaldırın" -#: vrtManager/instance.py:1257 +#: vrtManager/instance.py:1267 msgid "" "A device other than a disk or NIC is in the boot order: change it in the XML " "editor" @@ -11660,47 +11673,47 @@ msgstr "" "Önyükleme sırasında disk veya NIC dışında bir aygıt var: bunu XML " "düzenleyicide değiştirin" -#: vrtManager/instance.py:1272 +#: vrtManager/instance.py:1282 #, python-format msgid "Boot device %(dev)s is not in the definition" msgstr "Ön yükleme aygıtı %(dev)s tanımda yok" -#: vrtManager/instance.py:1292 +#: vrtManager/instance.py:1302 #, python-format msgid "CD-ROM %(dev)s is not in the running definition" msgstr "CD-ROM %(dev)s çalışan tanımda yok" -#: vrtManager/instance.py:1293 +#: vrtManager/instance.py:1303 #, python-format msgid "CD-ROM %(dev)s is not in the persistent definition" msgstr "CD-ROM %(dev)s kalıcı tanımda yok" -#: vrtManager/instance.py:1306 +#: vrtManager/instance.py:1316 #, python-format msgid "Media of %(dev)s changed in the running VM only: %(err)s" msgstr "%(dev)s ortamı yalnızca çalışan sanal makinede değişti: %(err)s" -#: vrtManager/instance.py:1317 +#: vrtManager/instance.py:1327 #, python-format msgid "ISO image %(image)s was not found" msgstr "ISO imajı %(image)s bulunamadı" -#: vrtManager/instance.py:1319 +#: vrtManager/instance.py:1329 #, python-format msgid "ISO image %(image)s is in more than one storage pool" msgstr "ISO imajı %(image)s birden fazla depolama havuzunda var" -#: vrtManager/instance.py:1414 +#: vrtManager/instance.py:1424 #, python-format msgid "Disk %(target_dev)s is not in the VM's definition" msgstr "Disk %(target_dev)s sanal makinenin tanımında yok" -#: vrtManager/instance.py:1546 +#: vrtManager/instance.py:1556 msgid "Please shutdown the instance then try to enable vCPU hotplug" msgstr "" "vCPU hotplug özelliğini etkinleştirmek için önce sanal makineyi kapatın" -#: vrtManager/instance.py:1749 +#: vrtManager/instance.py:1759 #, python-format msgid "" "The serial console is a %(type)s one, the browser opens only a pty one; " @@ -11709,11 +11722,11 @@ msgstr "" "Seri konsol %(type)s türünde, tarayıcı yalnızca pty türünü açar; bunu XML " "düzenleyicide değiştirin" -#: vrtManager/instance.py:1860 +#: vrtManager/instance.py:1870 msgid "The VM has no video card" msgstr "Sanal makinede ekran kartı yok" -#: vrtManager/instance.py:1870 +#: vrtManager/instance.py:1880 #, python-format msgid "" "The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set" @@ -11722,62 +11735,62 @@ msgstr "" "VM'nin CPU topolojisi %(count)s vCPU içeriyor: başka bir en fazla değer için " "onu XML düzenleyicide değiştirin" -#: vrtManager/instance.py:1896 +#: vrtManager/instance.py:1906 #, python-format msgid "The VM's next start has a maximum memory of %(max)s MiB" msgstr "" "Sanal makinenin bir sonraki başlangıcındaki en yüksek bellek %(max)s MiB" -#: vrtManager/instance.py:2037 +#: vrtManager/instance.py:2047 msgid "" "The VM has external snapshots; internal snapshots cannot be mixed with them" msgstr "" "Sanal makinenin harici anlık görüntüleri var; dahili anlık görüntüler " "bunlarla karıştırılamaz" -#: vrtManager/instance.py:2069 +#: vrtManager/instance.py:2079 msgid "A snapshot with memory is not quiesced; it keeps the whole guest state" msgstr "" "Bellekli bir anlık görüntüde dosya sistemleri dondurulmaz; tüm konuk durumunu" " saklar" -#: vrtManager/instance.py:2071 +#: vrtManager/instance.py:2081 msgid "Only a running VM's file systems can be frozen" msgstr "Yalnızca çalışan bir sanal makinenin dosya sistemleri dondurulabilir" -#: vrtManager/instance.py:2073 +#: vrtManager/instance.py:2083 msgid "The QEMU guest agent is not connected; it freezes the file systems" msgstr "QEMU konuk aracısı bağlı değil; dosya sistemlerini o dondurur" -#: vrtManager/instance.py:2076 +#: vrtManager/instance.py:2086 msgid "" "The VM has internal snapshots; external snapshots cannot be mixed with them" msgstr "" "Sanal makinenin dahili anlık görüntüleri var; harici anlık görüntüler " "bunlarla karıştırılamaz" -#: vrtManager/instance.py:2081 +#: vrtManager/instance.py:2091 msgid "Newer snapshots exist after the last revert; delete them first" msgstr "" "Son geri dönüşten sonra daha yeni anlık görüntüler var; önce onları silin" -#: vrtManager/instance.py:2084 +#: vrtManager/instance.py:2094 msgid "No snapshot is current; revert to a snapshot first" msgstr "Geçerli anlık görüntü yok; önce bir anlık görüntüye geri dönün" -#: vrtManager/instance.py:2090 +#: vrtManager/instance.py:2100 #, python-format msgid "Eject the media from %(dev)s first" msgstr "Önce %(dev)s içindeki ortamı çıkarın" -#: vrtManager/instance.py:2092 +#: vrtManager/instance.py:2102 #, python-format msgid "Disk %(dev)s is not a file; external snapshots need file disks" msgstr "" "Disk %(dev)s bir dosya değil; harici anlık görüntüler dosya diskleri " "gerektirir" -#: vrtManager/instance.py:2100 +#: vrtManager/instance.py:2110 #, python-format msgid "" "The storage pools could not be refreshed, so their free space is unknown: " @@ -11785,21 +11798,21 @@ msgid "" msgstr "" "Depolama havuzları yenilenemedi, bu yüzden boş alanları bilinmiyor: %(err)s" -#: vrtManager/instance.py:2123 +#: vrtManager/instance.py:2133 msgid "Memory is saved only from a running VM" msgstr "Bellek yalnızca çalışan bir sanal makineden kaydedilir" -#: vrtManager/instance.py:2125 +#: vrtManager/instance.py:2135 msgid "The VM has no disk to keep its memory next to" msgstr "Sanal makinenin, belleğinin yanına kaydedileceği bir diski yok" -#: vrtManager/instance.py:2129 +#: vrtManager/instance.py:2139 #, python-format msgid "%(disk)s is not in a storage pool; memory is saved only into one" msgstr "" "%(disk)s bir depolama havuzunda değil; bellek yalnızca bir havuza kaydedilir" -#: vrtManager/instance.py:2160 +#: vrtManager/instance.py:2170 #, python-format msgid "" "Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f " @@ -11810,7 +11823,7 @@ msgstr "" "%(size).1f GiB gerektiriyor (sanal makinenin oradaki disklerinin " "%%%(percent)g kadarı, en az %(minimum)g GiB, ve kaydediliyorsa bellek)" -#: vrtManager/instance.py:2178 +#: vrtManager/instance.py:2188 msgid "" "This snapshot was taken by an older version on a UEFI VM and cannot be " "reverted; delete it instead" @@ -11818,7 +11831,7 @@ msgstr "" "Bu anlık görüntü UEFI bir sanal makinede eski bir sürümle alındı ve geri " "dönülemez; bunun yerine silin" -#: vrtManager/instance.py:2208 +#: vrtManager/instance.py:2218 #, python-format msgid "" "The revert failed twice; try again in a moment (%(error)s). The VM is " @@ -11827,7 +11840,7 @@ msgstr "" "Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). " "Sanal makine çalışıyor." -#: vrtManager/instance.py:2210 +#: vrtManager/instance.py:2220 #, python-format msgid "" "The revert failed twice; try again in a moment (%(error)s). The VM is shut " @@ -11836,13 +11849,13 @@ msgstr "" "Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). " "Sanal makine kapalı." -#: vrtManager/instance.py:2378 +#: vrtManager/instance.py:2388 msgid "A disk moves when its VM is defined and running, paused or shut off" msgstr "" "Bir disk, sanal makinesi tanımlıyken ve çalışırken, duraklatılmışken veya " "kapalıyken taşınır" -#: vrtManager/instance.py:2380 +#: vrtManager/instance.py:2390 msgid "" "A disk of a VM with snapshots, a saved state or a running block job does not " "move" @@ -11850,7 +11863,7 @@ msgstr "" "Anlık görüntüleri, kaydedilmiş durumu veya çalışan bir blok işi olan sanal " "makinenin diski taşınmaz" -#: vrtManager/instance.py:2388 +#: vrtManager/instance.py:2398 #, python-format msgid "" "%(dev)s is not a disk file of the VM, the same in its running and next " @@ -11859,121 +11872,121 @@ msgstr "" "%(dev)s, sanal makinenin çalışan ve sonraki başlatma tanımlarında aynı olan " "bir disk dosyası değil" -#: vrtManager/instance.py:2393 +#: vrtManager/instance.py:2403 #, python-format msgid "%(dev)s does not move: only writable raw and qcow2 disks do" msgstr "%(dev)s taşınmaz: yalnızca yazılabilir raw ve qcow2 diskler taşınır" -#: vrtManager/instance.py:2400 +#: vrtManager/instance.py:2410 #, python-format msgid "%(dev)s does not move: no storage pool has %(path)s" msgstr "%(dev)s taşınmaz: hiçbir depolama havuzunda %(path)s yok" -#: vrtManager/instance.py:2402 +#: vrtManager/instance.py:2412 #, python-format msgid "%(dev)s does not move: it has a backing file" msgstr "%(dev)s taşınmaz: temel (backing) dosyası var" -#: vrtManager/instance.py:2405 +#: vrtManager/instance.py:2415 #, python-format msgid "%(pool_name)s is not an active pool of disk files of this host" msgstr "%(pool_name)s bu sunucunun etkin bir disk dosyası havuzu değil" -#: vrtManager/instance.py:2408 +#: vrtManager/instance.py:2418 #, python-format msgid "%(dev)s is in pool %(pool_name)s already" msgstr "%(dev)s zaten %(pool_name)s havuzunda" -#: vrtManager/instance.py:2412 +#: vrtManager/instance.py:2422 #, python-format msgid "Pool %(pool_name)s already has a file %(name)s" msgstr "%(pool_name)s havuzunda zaten %(name)s dosyası var" -#: vrtManager/instance.py:2436 +#: vrtManager/instance.py:2446 #, python-format msgid "The copy of %(dev)s ended before it was complete" msgstr "%(dev)s kopyası tamamlanmadan sona erdi" -#: vrtManager/instance.py:2481 +#: vrtManager/instance.py:2491 #, python-format msgid "%(error)s; remove %(dest)s if it is there: %(cleanup_error)s" msgstr "%(error)s; varsa %(dest)s dosyasını kaldırın: %(cleanup_error)s" -#: vrtManager/instance.py:2483 +#: vrtManager/instance.py:2493 #, python-format msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s" msgstr "" "%(error)s; sanal makine şu anda %(dest)s dosyasını kullanıyor olabilir: " "%(dev)s diskini kontrol edin" -#: vrtManager/instance.py:2490 +#: vrtManager/instance.py:2500 #, python-format msgid "The VM has no internal snapshot named %(name)s" msgstr "Sanal makinenin %(name)s adlı dahili anlık görüntüsü yok" -#: vrtManager/instance.py:2501 +#: vrtManager/instance.py:2511 msgid "A snapshot job is still running on this VM; try again when it ends" msgstr "" "Bu sanal makinede hâlâ bir anlık görüntü işi çalışıyor; bittiğinde tekrar " "deneyin" -#: vrtManager/instance.py:2511 +#: vrtManager/instance.py:2521 msgid "Shut the VM down to revert to an internal snapshot" msgstr "Dahili bir anlık görüntüye geri dönmek için sanal makineyi kapatın" -#: vrtManager/instance.py:2578 +#: vrtManager/instance.py:2588 msgid "Cannot clone a VM whose NVRAM is not a file" msgstr "NVRAM'i dosya olmayan bir sanal makine klonlanamaz" -#: vrtManager/instance.py:2649 +#: vrtManager/instance.py:2659 #, python-format msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s" msgstr "" "Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(path)s" -#: vrtManager/instance.py:2660 +#: vrtManager/instance.py:2670 msgid "Shut the VM down before cloning it" msgstr "Klonlamadan önce sanal makineyi kapatın" -#: vrtManager/instance.py:2687 +#: vrtManager/instance.py:2697 #, python-format msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s" msgstr "" "Klonlama başarısız oldu (%(err)s); bu kopyaları elle kaldırın: %(leftovers)s" -#: vrtManager/instance.py:2698 +#: vrtManager/instance.py:2708 msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it" msgstr "" "Canlı klonlama libvirt 11.10 veya sonrasını gerektirir; klonlamak için sanal " "makineyi kapatın" -#: vrtManager/instance.py:2701 +#: vrtManager/instance.py:2711 msgid "A VM with a TPM is cloned only shut down" msgstr "TPM'i olan bir sanal makine yalnızca kapalıyken klonlanır" -#: vrtManager/instance.py:2704 +#: vrtManager/instance.py:2714 #, python-format msgid "Disk %(dev)s is not a local file; shut the VM down to clone it" msgstr "" "Disk %(dev)s yerel bir dosya değil; klonlamak için sanal makineyi kapatın" -#: vrtManager/instance.py:2706 +#: vrtManager/instance.py:2716 #, python-format msgid "Disk %(dev)s is shareable; shut the VM down to clone it" msgstr "Disk %(dev)s paylaşılabilir; klonlamak için sanal makineyi kapatın" -#: vrtManager/instance.py:2711 +#: vrtManager/instance.py:2721 #, python-format msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it" msgstr "" "Disk %(dev)s sonraki başlatmada değişiyor; klonlamak için sanal makineyi " "kapatın" -#: vrtManager/instance.py:2713 +#: vrtManager/instance.py:2723 msgid "Another job is running on the VM; clone it when that ends" msgstr "Sanal makinede başka bir iş çalışıyor; o bittiğinde klonlayın" -#: vrtManager/instance.py:2739 +#: vrtManager/instance.py:2749 #, python-format msgid "" "Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB" @@ -11983,25 +11996,25 @@ msgstr "" "gerektiriyor (kopyalanan diskler, artı bunların %%%(percent)g kadarı, en az " "%(minimum)g GiB)" -#: vrtManager/instance.py:2756 +#: vrtManager/instance.py:2766 #, python-format msgid "Volume %(name)s already exists in storage pool %(pool)s" msgstr "%(name)s birimi %(pool)s depolama havuzunda zaten var" -#: vrtManager/instance.py:2944 +#: vrtManager/instance.py:2954 msgid "A network interface that is a host device is removed in the XML editor" msgstr "Sunucu aygıtı olan bir ağ arabirimi XML düzenleyicide kaldırılır" -#: vrtManager/instance.py:2960 +#: vrtManager/instance.py:2970 #, python-format msgid "No network interface with MAC %(old_mac)s" msgstr "MAC adresi %(old_mac)s olan ağ arabirimi yok" -#: vrtManager/instance.py:2963 +#: vrtManager/instance.py:2973 msgid "A network interface that is a host device is changed in the XML editor" msgstr "Sunucu aygıtı olan bir ağ arabirimi XML düzenleyicide değiştirilir" -#: vrtManager/instance.py:3057 +#: vrtManager/instance.py:3067 msgid "" "A VM changes its PCI devices while it runs, or is shut off without a saved " "state" @@ -12009,43 +12022,43 @@ msgstr "" "Sanal makine PCI aygıtlarını çalışırken veya kaydedilmiş durumu olmadan " "kapalıyken değiştirir" -#: vrtManager/instance.py:3078 +#: vrtManager/instance.py:3088 #, python-format msgid "%(err)s; whether the VM has %(device)s now is not known" msgstr "%(err)s; sanal makinede şu anda %(device)s olup olmadığı bilinmiyor" -#: vrtManager/instance.py:3080 +#: vrtManager/instance.py:3090 #, python-format msgid "%(err)s; %(device)s: the VM is not running, its next start has it" msgstr "%(err)s; %(device)s: sanal makine çalışmıyor, sonraki başlatmada var" -#: vrtManager/instance.py:3081 +#: vrtManager/instance.py:3091 #, python-format msgid "" "%(err)s; %(device)s: the VM is not running, its next start does not have it" msgstr "%(err)s; %(device)s: sanal makine çalışmıyor, sonraki başlatmada yok" -#: vrtManager/instance.py:3082 +#: vrtManager/instance.py:3092 #, python-format msgid "%(err)s; %(device)s: the running VM has it, its next start has it" msgstr "" "%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada var" -#: vrtManager/instance.py:3083 +#: vrtManager/instance.py:3093 #, python-format msgid "" "%(err)s; %(device)s: the running VM has it, its next start does not have it" msgstr "" "%(err)s; %(device)s: çalışan sanal makinede var, sonraki başlatmada yok" -#: vrtManager/instance.py:3084 +#: vrtManager/instance.py:3094 #, python-format msgid "" "%(err)s; %(device)s: the running VM does not have it, its next start has it" msgstr "" "%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada var" -#: vrtManager/instance.py:3086 +#: vrtManager/instance.py:3096 #, python-format msgid "" "%(err)s; %(device)s: the running VM does not have it, its next start does not" @@ -12053,48 +12066,48 @@ msgid "" msgstr "" "%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada yok" -#: vrtManager/instance.py:3120 +#: vrtManager/instance.py:3130 #, python-format msgid "The VM has no PCI device %(address)s" msgstr "Sanal makinede %(address)s PCI aygıtı yok" -#: vrtManager/instance.py:3141 +#: vrtManager/instance.py:3151 msgid "The VM has no USB controller" msgstr "Sanal makinede USB denetleyicisi yok" -#: vrtManager/instance.py:3175 +#: vrtManager/instance.py:3185 msgid "The VM has no such USB device" msgstr "Sanal makinede böyle bir USB aygıtı yok" -#: vrtManager/instance.py:3189 +#: vrtManager/instance.py:3199 #, python-format msgid "The VM has no network interface %(mac)s" msgstr "Sanal makinede %(mac)s ağ arabirimi yok" -#: vrtManager/instance.py:3221 +#: vrtManager/instance.py:3231 msgid "The VM has its own RNG device: change it in the XML editor" msgstr "" "Sanal makinenin kendi RNG aygıtı var: bunu XML düzenleyicide değiştirin" -#: vrtManager/instance.py:3248 +#: vrtManager/instance.py:3258 msgid "The VM has its own TPM: change it in the XML editor" msgstr "Sanal makinenin kendi TPM'i var: bunu XML düzenleyicide değiştirin" -#: vrtManager/instance.py:3267 +#: vrtManager/instance.py:3277 #, python-format msgid "Unknown crash action %(action)s" msgstr "Bilinmeyen çökme eylemi %(action)s" -#: vrtManager/instance.py:3294 +#: vrtManager/instance.py:3304 #, python-format msgid "Network interface %(mac)s is not in the definition" msgstr "%(mac)s ağ arayüzü tanımda yok" -#: vrtManager/instance.py:3385 +#: vrtManager/instance.py:3395 msgid "The guest agent did not answer in time; nothing was changed" msgstr "Konuk ajanı zamanında yanıt vermedi; hiçbir şey değiştirilmedi" -#: vrtManager/instance.py:3388 +#: vrtManager/instance.py:3398 msgid "The VM runs Windows: its guest agent sets no root password or SSH key" msgstr "" "Sanal makinede Windows çalışıyor: konuk ajanı root parolası ya da SSH " diff --git a/locale/zh/LC_MESSAGES/django.mo b/locale/zh/LC_MESSAGES/django.mo index 7a56186a..458eb33f 100644 Binary files a/locale/zh/LC_MESSAGES/django.mo and b/locale/zh/LC_MESSAGES/django.mo differ diff --git a/locale/zh/LC_MESSAGES/django.po b/locale/zh/LC_MESSAGES/django.po index f67bd6c0..ba389cd1 100644 --- a/locale/zh/LC_MESSAGES/django.po +++ b/locale/zh/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-11-20 05:53+0000\n" +"POT-Creation-Date: 2026-11-20 06:10+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" @@ -3322,7 +3322,7 @@ msgid "" msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。" #: instances/api/viewsets.py:160 instances/api/viewsets.py:178 -#: instances/views.py:865 instances/views.py:887 instances/views.py:1877 +#: instances/views.py:869 instances/views.py:891 instances/views.py:1881 msgid "Templates cannot be started." msgstr "模板无法启动。" @@ -3392,7 +3392,7 @@ msgstr "VNC 密码最多 8 个字母、数字或符号,不能有带重音的 msgid "A password takes no line breaks or other control characters." msgstr "密码不能包含换行或其他控制字符。" -#: instances/forms.py:114 vrtManager/instance.py:1728 +#: instances/forms.py:114 vrtManager/instance.py:1738 msgid "" "The console listens on no address (on a network, a socket or nowhere); change" " it in the XML editor" @@ -3486,7 +3486,7 @@ msgstr "虚拟机未定义;请检查这些卷,然后处理此任务:%(volu msgid "Delete snapshot" msgstr "删除快照" -#: instances/jobs.py:365 vrtManager/instance.py:2489 +#: instances/jobs.py:365 vrtManager/instance.py:2499 #, python-format msgid "The VM has no external snapshot named %(name)s" msgstr "虚拟机没有名为 %(name)s 的外部快照" @@ -3518,7 +3518,7 @@ msgstr "虚拟机已不在运行该任务的计算节点上" msgid "Take snapshot" msgstr "创建快照" -#: instances/jobs.py:433 instances/jobs.py:442 vrtManager/instance.py:2078 +#: instances/jobs.py:433 instances/jobs.py:442 vrtManager/instance.py:2088 #, python-format msgid "A snapshot named %(name)s already exists" msgstr "名为 %(name)s 的快照已存在" @@ -3659,12 +3659,12 @@ msgstr "镜像已存在。请检查卷或更改虚拟机名称" msgid "Each network card needs a network" msgstr "每个网卡都需要一个网络" -#: instances/jobs.py:876 vrtManager/backup.py:387 vrtManager/instance.py:2905 +#: instances/jobs.py:876 vrtManager/backup.py:387 vrtManager/instance.py:2915 #, python-format msgid "This host has no network %(name)s" msgstr "此主机没有网络 %(name)s" -#: instances/jobs.py:878 vrtManager/backup.py:391 vrtManager/instance.py:2907 +#: instances/jobs.py:878 vrtManager/backup.py:391 vrtManager/instance.py:2917 #, python-format msgid "This host has no network filter %(name)s" msgstr "此主机没有网络过滤器 %(name)s" @@ -3686,7 +3686,7 @@ msgstr "磁盘缓存 %(cache)s 与设置中的原生 (native) 磁盘 I/O 不兼 msgid "Create VM" msgstr "创建虚拟机" -#: instances/jobs.py:936 instances/jobs.py:983 instances/views.py:2650 +#: instances/jobs.py:936 instances/jobs.py:983 instances/views.py:2654 msgid "A virtual machine with this name already exists" msgstr "同名虚拟机已存在" @@ -3734,7 +3734,7 @@ msgstr "cloud-init 种子需要为磁盘使用目录类型的存储池" msgid "This host offers no firmware %(firmware)s" msgstr "此主机不提供固件 %(firmware)s" -#: instances/jobs.py:965 vrtManager/instance.py:3255 +#: instances/jobs.py:965 vrtManager/instance.py:3265 msgid "This host offers no TPM 2.0: install swtpm on it" msgstr "此主机不提供 TPM 2.0:请在主机上安装 swtpm" @@ -4038,7 +4038,7 @@ msgid "Disk source" msgstr "磁盘来源" #: instances/templates/add_instance_volume.html:21 -#: instances/templates/create_instance_w2.html:134 instances/views.py:2680 +#: instances/templates/create_instance_w2.html:134 instances/views.py:2684 msgid "New disk" msgstr "新磁盘" @@ -4423,7 +4423,7 @@ msgstr "自定义 CPU 型号" msgid "Size (GiB)" msgstr "大小(GiB)" -#: instances/templates/create_instance_w2.html:161 instances/views.py:2681 +#: instances/templates/create_instance_w2.html:161 instances/views.py:2685 msgid "Existing volumes" msgstr "已有卷" @@ -4460,7 +4460,7 @@ msgstr "设备" msgid "Remove" msgstr "移除" -#: instances/templates/create_instance_w2.html:194 instances/views.py:2682 +#: instances/templates/create_instance_w2.html:194 instances/views.py:2686 msgid "Clone from template" msgstr "从模板克隆" @@ -4991,7 +4991,7 @@ msgid "Add USB device" msgstr "添加 USB 设备" #: instances/templates/instances/host_devices_form.html:18 -#: vrtManager/instance.py:3158 +#: vrtManager/instance.py:3168 msgid "" "A VM with a saved state does not change its USB devices: start it, or start " "it without its saved state" @@ -5070,6 +5070,31 @@ msgstr "内核版本" msgid "Timezone / Offset" msgstr "时区 / 偏移" +#: instances/templates/instances/info_tab.html:23 +msgid "File systems" +msgstr "文件系统" + +#: instances/templates/instances/info_tab.html:26 +msgid "Mount point" +msgstr "挂载点" + +#: instances/templates/instances/info_tab.html:27 +#: instances/templates/instances/settings_tab.html:338 +#: interfaces/templates/create_iface_block.html:26 +#: interfaces/templates/interface.html:43 +#: interfaces/templates/interface.html:120 +#: networks/templates/create_net_block.html:26 +#: networks/templates/network.html:58 networks/templates/networks.html:35 +#: nodedevs/templates/nodedevs.html:34 nodedevs/templates/nodedevs.html:80 +#: storages/templates/storage.html:99 storages/templates/storages.html:39 +#: virtsecrets/templates/secrets.html:29 +msgid "Type" +msgstr "类型" + +#: instances/templates/instances/info_tab.html:28 +msgid "Used" +msgstr "已用" + #: instances/templates/instances/migrate_plan.html:4 #, python-format msgid "The disks could not be checked: %(error)s" @@ -5666,18 +5691,6 @@ msgid "" "communication" msgstr "在大多数配置中,macvtap 无法用于主机与客户机之间的网络通信" -#: instances/templates/instances/settings_tab.html:338 -#: interfaces/templates/create_iface_block.html:26 -#: interfaces/templates/interface.html:43 -#: interfaces/templates/interface.html:120 -#: networks/templates/create_net_block.html:26 -#: networks/templates/network.html:58 networks/templates/networks.html:35 -#: nodedevs/templates/nodedevs.html:34 nodedevs/templates/nodedevs.html:80 -#: storages/templates/storage.html:99 storages/templates/storages.html:39 -#: virtsecrets/templates/secrets.html:29 -msgid "Type" -msgstr "类型" - #: instances/templates/instances/settings_tab.html:339 msgid "Host device" msgstr "主机上的设备" @@ -6672,16 +6685,16 @@ msgid "" " Remove them first." msgstr "有主机设备的虚拟机无法迁移:目标主机可能没有这些设备。请先移除它们。" -#: instances/views.py:636 +#: instances/views.py:640 #, python-format msgid "Disk %(dev)s has changed since the page was loaded; reload the page" msgstr "磁盘 %(dev)s 在页面加载后已更改;请刷新页面" -#: instances/views.py:711 instances/views.py:712 +#: instances/views.py:715 instances/views.py:716 msgid "The VM was moved meanwhile; try again." msgstr "该虚拟机在此期间已被移动;请重试。" -#: instances/views.py:828 +#: instances/views.py:832 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 " @@ -6691,7 +6704,7 @@ msgstr "" "运行中的虚拟机在此总线上没有可用 PCI 插槽来添加磁盘:如果虚拟机有 SCSI 控制器,请选择 scsi " "总线;或关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。" -#: instances/views.py:832 +#: instances/views.py:836 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" @@ -6701,289 +6714,289 @@ msgstr "" "运行中的虚拟机没有可用 PCI 插槽来添加磁盘所需的 SCSI 控制器:请关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe " "插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。" -#: instances/views.py:850 +#: instances/views.py:854 #, python-format msgid "Invalid disk options: %(options)s" msgstr "无效的磁盘选项:%(options)s" -#: instances/views.py:862 instances/views.py:957 +#: instances/views.py:866 instances/views.py:961 #, python-format msgid "Invalid options: %(options)s" msgstr "无效的选项:%(options)s" -#: instances/views.py:897 +#: instances/views.py:901 msgid "The VM was forced off but did not start again: it stays off." msgstr "虚拟机已被强制关机,但没有再次启动:它保持关机状态。" -#: instances/views.py:1085 +#: instances/views.py:1089 #, python-format msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)" msgstr "请先设置 %(compute)s 的 gstfsd 密钥(计算节点,编辑该主机)" -#: instances/views.py:1092 instances/views.py:1110 instances/views.py:1119 +#: instances/views.py:1096 instances/views.py:1114 instances/views.py:1123 #, python-format msgid "gstfsd error: %(err)s" msgstr "gstfsd 错误:%(err)s" -#: instances/views.py:1120 +#: instances/views.py:1124 msgid "the reply is not signed with the key" msgstr "回复未使用该密钥签名" -#: instances/views.py:1128 +#: instances/views.py:1132 msgid "Shut the VM down, or start its QEMU guest agent, and try again" msgstr "请关闭虚拟机,或启动其 QEMU 客户机代理,然后重试" -#: instances/views.py:1136 +#: instances/views.py:1140 msgid "The change may still be made when the agent answers again." msgstr "当代理再次响应时,此更改仍可能生效。" -#: instances/views.py:1151 +#: instances/views.py:1155 msgid "Enter a password" msgstr "请输入密码" -#: instances/views.py:1156 +#: instances/views.py:1160 msgid "Enter a password of at most 4096 characters, without NUL characters" msgstr "请输入不超过 4096 个字符且不含 NUL 字符的密码" -#: instances/views.py:1172 +#: instances/views.py:1176 msgid "Reset root password" msgstr "重置 root 密码" -#: instances/views.py:1188 +#: instances/views.py:1192 msgid "Select an SSH public key" msgstr "请选择 SSH 公钥" -#: instances/views.py:1210 +#: instances/views.py:1214 #, python-format msgid "Installed new SSH public key %(keyname)s" msgstr "已安装新的 SSH 公钥 %(keyname)s" -#: instances/views.py:1230 +#: instances/views.py:1234 msgid "Enter a whole number of vCPUs" msgstr "请输入整数个 vCPU" -#: instances/views.py:1234 +#: instances/views.py:1238 msgid "Shut off the VM to change its vCPUs" msgstr "请关闭虚拟机以更改其 vCPU" -#: instances/views.py:1237 +#: instances/views.py:1241 msgid "The current vCPUs cannot be more than the maximum" msgstr "当前 vCPU 数不能超过最大值" -#: instances/views.py:1244 +#: instances/views.py:1248 #, python-format msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'." msgstr "%(quota)s:无法调整“%(instance_name)s”的 CPU。" -#: instances/views.py:1252 +#: instances/views.py:1256 #, python-format msgid "vCPUs set to %(cur)s (maximum %(max)s)" msgstr "vCPU 已设为 %(cur)s(最大 %(max)s)" -#: instances/views.py:1271 +#: instances/views.py:1275 msgid "Enter a whole number for memory" msgstr "请输入整数内存值" -#: instances/views.py:1274 +#: instances/views.py:1278 msgid "The current memory cannot be more than the maximum" msgstr "当前内存不能超过最大值" -#: instances/views.py:1278 +#: instances/views.py:1282 #, python-format msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'." msgstr "%(quota)s:无法调整“%(instance_name)s”的内存。" -#: instances/views.py:1284 +#: instances/views.py:1288 #, python-format msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)" msgstr "内存已设为 %(cur)s MiB(最大 %(max)s MiB)" -#: instances/views.py:1304 +#: instances/views.py:1308 msgid "Enter disk sizes as whole GiB" msgstr "请以整数 GiB 输入磁盘大小" -#: instances/views.py:1308 +#: instances/views.py:1312 #, python-format msgid "Disk %(dev)s was changed meanwhile; reload the page" msgstr "磁盘 %(dev)s 在此期间已更改;请重新加载页面" -#: instances/views.py:1312 +#: instances/views.py:1316 #, python-format msgid "%(dev)s is %(size)s: a disk cannot shrink" msgstr "%(dev)s 为 %(size)s:磁盘不能缩小" -#: instances/views.py:1320 +#: instances/views.py:1324 msgid "No disks were selected or valid for resizing." msgstr "未选择磁盘或没有可调整大小的有效磁盘。" -#: instances/views.py:1329 +#: instances/views.py:1333 #, python-format msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'." msgstr "%(quota)s:无法调整“%(instance_name)s”的磁盘。" -#: instances/views.py:1341 +#: instances/views.py:1345 #, python-format msgid "The storage pool of %(dev)s cannot resize its volumes" msgstr "%(dev)s 所在的存储池无法调整其卷的大小" -#: instances/views.py:1343 +#: instances/views.py:1347 #, python-format msgid "Disk is resized: %(dev)s" msgstr "磁盘已调整大小:%(dev)s" -#: instances/views.py:1437 +#: instances/views.py:1441 msgid "The VM's machine has no PCIe slots to add" msgstr "该虚拟机的机器类型没有可添加的 PCIe 插槽" -#: instances/views.py:1442 +#: instances/views.py:1446 #, python-format msgid "%(count)s PCIe slots added" msgstr "已添加 %(count)s 个 PCIe 插槽" -#: instances/views.py:1444 +#: instances/views.py:1448 #, python-format msgid "%(count)s PCIe slots added: the VM gets them at its next start" msgstr "已添加 %(count)s 个 PCIe 插槽:虚拟机在下次启动时获得它们" -#: instances/views.py:1495 +#: instances/views.py:1499 #, python-format msgid "%(volume)s is already a disk of this VM" msgstr "%(volume)s 已是此虚拟机的磁盘" -#: instances/views.py:1585 +#: instances/views.py:1589 msgid "Volume changes are applied. But it will be activated after shutdown" msgstr "卷更改已应用,但将在关机后生效" -#: instances/views.py:1590 +#: instances/views.py:1594 msgid "Volume is changed successfully." msgstr "卷已成功更改。" -#: instances/views.py:1610 +#: instances/views.py:1614 #, python-format msgid "Disk %(dev)s is not a storage volume of this instance" msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷" -#: instances/views.py:1615 vrtManager/instance.py:2499 +#: instances/views.py:1619 vrtManager/instance.py:2509 msgid "The VM has a saved state; start it or remove the saved state first" msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态" -#: instances/views.py:1621 +#: instances/views.py:1625 #, python-format msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down" msgstr "磁盘 %(dev)s 有待生效的更改;请在虚拟机关机后删除它" -#: instances/views.py:1636 +#: instances/views.py:1640 #, python-format msgid "Volume %(vol)s is used by another VM; detach it instead" msgstr "卷 %(vol)s 正被另一台虚拟机使用;请改为分离它" -#: instances/views.py:1654 +#: instances/views.py:1658 #, 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:1665 +#: instances/views.py:1669 #, python-format msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s" msgstr "磁盘 %(dev)s 已分离,但其卷已保留:%(err)s" -#: instances/views.py:1693 +#: instances/views.py:1697 #, python-format msgid "This VM cannot take a CD-ROM on the %(bus)s bus now" msgstr "该虚拟机现在无法在 %(bus)s 总线上添加 CD-ROM" -#: instances/views.py:1696 +#: instances/views.py:1700 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:1701 +#: instances/views.py:1705 #, python-format msgid "%(image)s is already in a CD-ROM of this VM" msgstr "%(image)s 已在此虚拟机的某个光驱中" -#: instances/views.py:1782 +#: instances/views.py:1786 #, python-format msgid "Pool %(pool)s was not read again: %(err)s" msgstr "未重新读取存储池 %(pool)s:%(err)s" -#: instances/views.py:1803 +#: instances/views.py:1807 #, python-format msgid "Snapshot was not deleted: %(err)s" msgstr "快照未删除:%(err)s" -#: instances/views.py:1922 +#: instances/views.py:1926 msgid "Add at least one device to the boot order." msgstr "请至少向启动顺序中添加一个设备。" -#: instances/views.py:1928 vrtManager/instance.py:1269 +#: instances/views.py:1932 vrtManager/instance.py:1279 msgid "Invalid Device Type for boot order" msgstr "启动顺序的设备类型无效" -#: instances/views.py:1939 +#: instances/views.py:1943 msgid "Boot order changed. It applies at the next start." msgstr "启动顺序已更改,将在下次启动时生效。" -#: instances/views.py:1941 +#: instances/views.py:1945 msgid "Boot order changed successfully." msgstr "启动顺序已成功更改。" -#: instances/views.py:1961 +#: instances/views.py:1965 msgid "The XML is empty" msgstr "XML 为空" -#: instances/views.py:1965 instances/views.py:2662 +#: instances/views.py:1969 instances/views.py:2666 #, python-format msgid "The XML is not well-formed: %(error)s" msgstr "XML 格式不正确:%(error)s" -#: instances/views.py:1967 +#: instances/views.py:1971 #, python-format msgid "The XML must keep the VM's UUID %(uuid)s." msgstr "XML 必须保留虚拟机的 UUID %(uuid)s。" -#: instances/views.py:1971 +#: instances/views.py:1975 msgid "" "The definition has changed since the editor was opened. Reload the page to " "edit the current one." msgstr "自打开编辑器以来定义已被更改。请重新加载页面以编辑当前定义。" -#: instances/views.py:1987 +#: instances/views.py:1991 msgid "The XML definition was saved." msgstr "XML 定义已保存。" -#: instances/views.py:1989 +#: instances/views.py:1993 msgid "The XML definition was saved; the VM uses it from its next start." msgstr "XML 定义已保存;虚拟机从下次启动起使用它。" -#: instances/views.py:2070 +#: instances/views.py:2074 msgid "Select one network interface to change" msgstr "请选择一个要更改的网络接口" -#: instances/views.py:2084 +#: instances/views.py:2088 #, python-format msgid "Network interface %(mac)s was changed meanwhile; reload the page" msgstr "网络接口 %(mac)s 在此期间已更改;请重新加载页面" -#: instances/views.py:2114 +#: instances/views.py:2118 msgid "Network Device Config is changed. Please shutdown instance to activate." msgstr "网络设备配置已更改。请关闭虚拟机以使其生效。" -#: instances/views.py:2116 +#: instances/views.py:2120 msgid "Network device changed" msgstr "网络设备已更改" -#: instances/views.py:2128 +#: instances/views.py:2132 msgid "No network selected" msgstr "未选择网络" -#: instances/views.py:2133 +#: instances/views.py:2137 #, python-format msgid "The VM already has a network device with MAC %(mac)s" msgstr "虚拟机已有 MAC 地址为 %(mac)s 的网络设备" -#: instances/views.py:2152 +#: instances/views.py:2156 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 " @@ -6991,136 +7004,136 @@ msgid "" msgstr "" "运行中的虚拟机没有可用 PCI 插槽来添加网络设备:请关机后再添加设备。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。" -#: instances/views.py:2198 instances/views.py:2204 +#: instances/views.py:2202 instances/views.py:2208 msgid "The VM has it" msgstr "虚拟机已有此设备" -#: instances/views.py:2239 +#: instances/views.py:2243 #, python-format msgid "The host has no USB device %(device)s; reload the page" msgstr "主机没有 USB 设备 %(device)s;请重新加载页面" -#: instances/views.py:2260 +#: instances/views.py:2264 #, python-format msgid "The host has no PCI device %(device)s" msgstr "主机上没有 PCI 设备 %(device)s" -#: instances/views.py:2278 +#: instances/views.py:2282 #, 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:2323 instances/views.py:2353 +#: instances/views.py:2327 instances/views.py:2357 msgid "Select a network interface and a QoS direction" msgstr "请选择网络接口和 QoS 方向" -#: instances/views.py:2326 vrtManager/network.py:470 +#: instances/views.py:2330 vrtManager/network.py:470 msgid "QoS rates must be whole numbers" msgstr "QoS 速率必须为整数" -#: instances/views.py:2333 networks/views.py:235 +#: instances/views.py:2337 networks/views.py:235 #, python-format msgid "%(qos_dir)s QoS is set" msgstr "%(qos_dir)s QoS 已设置" -#: instances/views.py:2338 +#: instances/views.py:2342 #, 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:2360 networks/views.py:261 +#: instances/views.py:2364 networks/views.py:261 #, python-format msgid "%(qos_dir)s QoS is deleted" msgstr "%(qos_dir)s QoS 已删除" -#: instances/views.py:2365 +#: instances/views.py:2369 #, 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:2393 +#: instances/views.py:2397 msgid "Only one owner is allowed and the one already added" msgstr "只允许一个所有者,且已添加" -#: instances/views.py:2395 +#: instances/views.py:2399 #, python-format msgid "%(user)s is already an owner" msgstr "%(user)s 已是所有者" -#: instances/views.py:2460 +#: instances/views.py:2464 #, python-format msgid "Console settings were not saved: %(errors)s" msgstr "控制台设置未保存:%(errors)s" -#: instances/views.py:2482 +#: instances/views.py:2486 msgid "" "Error setting console password. You should check that your instance have an " "graphic device." msgstr "设置控制台密码出错。请检查虚拟机是否有图形设备。" -#: instances/views.py:2529 +#: instances/views.py:2533 msgid "Shut the VM down to change whether it is a template." msgstr "请关闭虚拟机以更改其是否为模板。" -#: instances/views.py:2535 +#: instances/views.py:2539 #, python-format msgid "%(quota)s: '%(instance_name)s' stays a template." msgstr "%(quota)s:“%(instance_name)s”仍为模板。" -#: instances/views.py:2648 +#: instances/views.py:2652 msgid "The XML has no name" msgstr "XML 中没有名称" -#: instances/views.py:2666 webvirtcloud/middleware.py:157 +#: instances/views.py:2670 webvirtcloud/middleware.py:157 #, python-format msgid "libvirt Error - %(exception)s" msgstr "libvirt 错误 - %(exception)s" -#: instances/views.py:2680 +#: instances/views.py:2684 msgid "An empty disk of the size you set" msgstr "按设定大小创建的空磁盘" -#: instances/views.py:2681 +#: instances/views.py:2685 msgid "Volumes already in a pool" msgstr "存储池中已有的卷" -#: instances/views.py:2682 +#: instances/views.py:2686 msgid "A copy of a template volume" msgstr "模板卷的副本" -#: instances/views.py:2772 +#: instances/views.py:2776 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:2774 +#: instances/views.py:2778 msgid "This host has no network for the VM: add one on its Networks page." msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。" -#: instances/views.py:2806 +#: instances/views.py:2810 #, python-format msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it" msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它" -#: instances/views.py:2835 +#: instances/views.py:2839 msgid "Flavor Created" msgstr "规格已创建" -#: instances/views.py:2843 +#: instances/views.py:2847 msgid "Create Flavor" msgstr "创建规格" -#: instances/views.py:2855 +#: instances/views.py:2859 msgid "Flavor Deleted" msgstr "规格已删除" -#: instances/views.py:2861 +#: instances/views.py:2865 msgid "Only the size template goes; VMs made from it keep their size." msgstr "仅删除此规格;由它创建的虚拟机保持其大小。" @@ -10943,135 +10956,135 @@ msgstr "快照名称为 1-64 个字母、数字、'.'、'_' 或 '-',且不能 msgid "A VM with a host's or an external TPM is not cloned; remove it first" msgstr "带有主机 TPM 或外部 TPM 的虚拟机无法克隆;请先将其移除" -#: vrtManager/instance.py:1257 +#: vrtManager/instance.py:1267 msgid "" "A device other than a disk or NIC is in the boot order: change it in the XML " "editor" msgstr "启动顺序中有磁盘或网卡以外的设备:请在 XML 编辑器中修改" -#: vrtManager/instance.py:1272 +#: vrtManager/instance.py:1282 #, python-format msgid "Boot device %(dev)s is not in the definition" msgstr "启动设备 %(dev)s 不在定义中" -#: vrtManager/instance.py:1292 +#: vrtManager/instance.py:1302 #, python-format msgid "CD-ROM %(dev)s is not in the running definition" msgstr "CD-ROM %(dev)s 不在运行中的定义中" -#: vrtManager/instance.py:1293 +#: vrtManager/instance.py:1303 #, python-format msgid "CD-ROM %(dev)s is not in the persistent definition" msgstr "CD-ROM %(dev)s 不在持久定义中" -#: vrtManager/instance.py:1306 +#: vrtManager/instance.py:1316 #, python-format msgid "Media of %(dev)s changed in the running VM only: %(err)s" msgstr "%(dev)s 的介质仅在运行中的虚拟机中更改:%(err)s" -#: vrtManager/instance.py:1317 +#: vrtManager/instance.py:1327 #, python-format msgid "ISO image %(image)s was not found" msgstr "未找到 ISO 镜像 %(image)s" -#: vrtManager/instance.py:1319 +#: vrtManager/instance.py:1329 #, python-format msgid "ISO image %(image)s is in more than one storage pool" msgstr "ISO 镜像 %(image)s 位于多个存储池中" -#: vrtManager/instance.py:1414 +#: vrtManager/instance.py:1424 #, python-format msgid "Disk %(target_dev)s is not in the VM's definition" msgstr "磁盘 %(target_dev)s 不在虚拟机的定义中" -#: vrtManager/instance.py:1546 +#: vrtManager/instance.py:1556 msgid "Please shutdown the instance then try to enable vCPU hotplug" msgstr "请先关闭虚拟机,再启用 vCPU 热插拔" -#: vrtManager/instance.py:1749 +#: vrtManager/instance.py:1759 #, python-format msgid "" "The serial console is a %(type)s one, the browser opens only a pty one; " "change it in the XML editor" msgstr "串行控制台的类型是 %(type)s,浏览器只能打开 pty 类型的;请在 XML 编辑器中更改" -#: vrtManager/instance.py:1860 +#: vrtManager/instance.py:1870 msgid "The VM has no video card" msgstr "虚拟机没有显卡" -#: vrtManager/instance.py:1870 +#: vrtManager/instance.py:1880 #, python-format msgid "" "The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set" " another maximum" msgstr "该虚拟机的 CPU 拓扑为 %(count)s 个 vCPU:要设置其他最大值,请在 XML 编辑器中修改拓扑" -#: vrtManager/instance.py:1896 +#: vrtManager/instance.py:1906 #, python-format msgid "The VM's next start has a maximum memory of %(max)s MiB" msgstr "虚拟机下次启动时的最大内存为 %(max)s MiB" -#: vrtManager/instance.py:2037 +#: vrtManager/instance.py:2047 msgid "" "The VM has external snapshots; internal snapshots cannot be mixed with them" msgstr "虚拟机有外部快照;内部快照不能与其混用" -#: vrtManager/instance.py:2069 +#: vrtManager/instance.py:2079 msgid "A snapshot with memory is not quiesced; it keeps the whole guest state" msgstr "含内存的快照不会静默文件系统;它保存整个客户机状态" -#: vrtManager/instance.py:2071 +#: vrtManager/instance.py:2081 msgid "Only a running VM's file systems can be frozen" msgstr "只有运行中的虚拟机的文件系统可以冻结" -#: vrtManager/instance.py:2073 +#: vrtManager/instance.py:2083 msgid "The QEMU guest agent is not connected; it freezes the file systems" msgstr "QEMU 客户机代理未连接;文件系统由它冻结" -#: vrtManager/instance.py:2076 +#: vrtManager/instance.py:2086 msgid "" "The VM has internal snapshots; external snapshots cannot be mixed with them" msgstr "虚拟机有内部快照;外部快照不能与其混用" -#: vrtManager/instance.py:2081 +#: vrtManager/instance.py:2091 msgid "Newer snapshots exist after the last revert; delete them first" msgstr "上次还原后存在更新的快照;请先删除它们" -#: vrtManager/instance.py:2084 +#: vrtManager/instance.py:2094 msgid "No snapshot is current; revert to a snapshot first" msgstr "没有当前快照;请先还原到某个快照" -#: vrtManager/instance.py:2090 +#: vrtManager/instance.py:2100 #, python-format msgid "Eject the media from %(dev)s first" msgstr "请先弹出 %(dev)s 中的介质" -#: vrtManager/instance.py:2092 +#: vrtManager/instance.py:2102 #, python-format msgid "Disk %(dev)s is not a file; external snapshots need file disks" msgstr "磁盘 %(dev)s 不是文件;外部快照需要文件磁盘" -#: vrtManager/instance.py:2100 +#: vrtManager/instance.py:2110 #, python-format msgid "" "The storage pools could not be refreshed, so their free space is unknown: " "%(err)s" msgstr "无法刷新存储池,其可用空间未知:%(err)s" -#: vrtManager/instance.py:2123 +#: vrtManager/instance.py:2133 msgid "Memory is saved only from a running VM" msgstr "只能保存运行中的虚拟机的内存" -#: vrtManager/instance.py:2125 +#: vrtManager/instance.py:2135 msgid "The VM has no disk to keep its memory next to" msgstr "虚拟机没有可存放其内存的磁盘" -#: vrtManager/instance.py:2129 +#: vrtManager/instance.py:2139 #, python-format msgid "%(disk)s is not in a storage pool; memory is saved only into one" msgstr "%(disk)s 不在存储池中;内存只能保存到存储池中" -#: vrtManager/instance.py:2160 +#: vrtManager/instance.py:2170 #, python-format msgid "" "Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f " @@ -11081,147 +11094,147 @@ msgstr "" "存储池 %(pool)s 可用 %(free).1f GiB;快照需要 %(size).1f GiB(其中虚拟机磁盘的 %(percent)g%%,至少 " "%(minimum)g GiB,若保存内存则另加内存)" -#: vrtManager/instance.py:2178 +#: vrtManager/instance.py:2188 msgid "" "This snapshot was taken by an older version on a UEFI VM and cannot be " "reverted; delete it instead" msgstr "此快照由旧版本在 UEFI 虚拟机上创建,无法还原;请将其删除" -#: vrtManager/instance.py:2208 +#: vrtManager/instance.py:2218 #, python-format msgid "" "The revert failed twice; try again in a moment (%(error)s). The VM is " "running." msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机正在运行。" -#: vrtManager/instance.py:2210 +#: vrtManager/instance.py:2220 #, python-format msgid "" "The revert failed twice; try again in a moment (%(error)s). The VM is shut " "off." msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机已关机。" -#: vrtManager/instance.py:2378 +#: vrtManager/instance.py:2388 msgid "A disk moves when its VM is defined and running, paused or shut off" msgstr "仅当虚拟机已定义且处于运行、暂停或关机状态时才能移动磁盘" -#: vrtManager/instance.py:2380 +#: vrtManager/instance.py:2390 msgid "" "A disk of a VM with snapshots, a saved state or a running block job does not " "move" msgstr "有快照、保存的状态或正在运行块任务的虚拟机的磁盘不能移动" -#: vrtManager/instance.py:2388 +#: vrtManager/instance.py:2398 #, python-format msgid "" "%(dev)s is not a disk file of the VM, the same in its running and next " "start's definition" msgstr "%(dev)s 不是该虚拟机在运行中的定义和下次启动定义中相同的磁盘文件" -#: vrtManager/instance.py:2393 +#: vrtManager/instance.py:2403 #, python-format msgid "%(dev)s does not move: only writable raw and qcow2 disks do" msgstr "%(dev)s 不能移动:只能移动可写的 raw 和 qcow2 磁盘" -#: vrtManager/instance.py:2400 +#: vrtManager/instance.py:2410 #, python-format msgid "%(dev)s does not move: no storage pool has %(path)s" msgstr "%(dev)s 不能移动:没有存储池包含 %(path)s" -#: vrtManager/instance.py:2402 +#: vrtManager/instance.py:2412 #, python-format msgid "%(dev)s does not move: it has a backing file" msgstr "%(dev)s 不能移动:它有后备文件" -#: vrtManager/instance.py:2405 +#: vrtManager/instance.py:2415 #, python-format msgid "%(pool_name)s is not an active pool of disk files of this host" msgstr "%(pool_name)s 不是此主机上活动的磁盘文件存储池" -#: vrtManager/instance.py:2408 +#: vrtManager/instance.py:2418 #, python-format msgid "%(dev)s is in pool %(pool_name)s already" msgstr "%(dev)s 已在存储池 %(pool_name)s 中" -#: vrtManager/instance.py:2412 +#: vrtManager/instance.py:2422 #, python-format msgid "Pool %(pool_name)s already has a file %(name)s" msgstr "存储池 %(pool_name)s 中已有文件 %(name)s" -#: vrtManager/instance.py:2436 +#: vrtManager/instance.py:2446 #, python-format msgid "The copy of %(dev)s ended before it was complete" msgstr "%(dev)s 的复制在完成前结束" -#: vrtManager/instance.py:2481 +#: vrtManager/instance.py:2491 #, python-format msgid "%(error)s; remove %(dest)s if it is there: %(cleanup_error)s" msgstr "%(error)s;如果 %(dest)s 存在请将其删除:%(cleanup_error)s" -#: vrtManager/instance.py:2483 +#: vrtManager/instance.py:2493 #, python-format msgid "%(error)s; the VM may use %(dest)s now: check its disk %(dev)s" msgstr "%(error)s;虚拟机现在可能在使用 %(dest)s:请检查其磁盘 %(dev)s" -#: vrtManager/instance.py:2490 +#: vrtManager/instance.py:2500 #, python-format msgid "The VM has no internal snapshot named %(name)s" msgstr "虚拟机没有名为 %(name)s 的内部快照" -#: vrtManager/instance.py:2501 +#: vrtManager/instance.py:2511 msgid "A snapshot job is still running on this VM; try again when it ends" msgstr "此虚拟机上仍有快照任务在运行;请在其结束后重试" -#: vrtManager/instance.py:2511 +#: vrtManager/instance.py:2521 msgid "Shut the VM down to revert to an internal snapshot" msgstr "请关闭虚拟机后再还原到内部快照" -#: vrtManager/instance.py:2578 +#: vrtManager/instance.py:2588 msgid "Cannot clone a VM whose NVRAM is not a file" msgstr "NVRAM 不是文件的虚拟机无法克隆" -#: vrtManager/instance.py:2649 +#: vrtManager/instance.py:2659 #, python-format msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s" msgstr "克隆失败(%(err)s);请手动删除这些副本:%(path)s" -#: vrtManager/instance.py:2660 +#: vrtManager/instance.py:2670 msgid "Shut the VM down before cloning it" msgstr "请先关闭虚拟机再克隆" -#: vrtManager/instance.py:2687 +#: vrtManager/instance.py:2697 #, python-format msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s" msgstr "克隆失败(%(err)s);请手动删除这些副本:%(leftovers)s" -#: vrtManager/instance.py:2698 +#: vrtManager/instance.py:2708 msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it" msgstr "在线克隆需要 libvirt 11.10 或更高版本;请关闭虚拟机后再克隆" -#: vrtManager/instance.py:2701 +#: vrtManager/instance.py:2711 msgid "A VM with a TPM is cloned only shut down" msgstr "带 TPM 的虚拟机只能在关机时克隆" -#: vrtManager/instance.py:2704 +#: vrtManager/instance.py:2714 #, python-format msgid "Disk %(dev)s is not a local file; shut the VM down to clone it" msgstr "磁盘 %(dev)s 不是本地文件;请关闭虚拟机后再克隆" -#: vrtManager/instance.py:2706 +#: vrtManager/instance.py:2716 #, python-format msgid "Disk %(dev)s is shareable; shut the VM down to clone it" msgstr "磁盘 %(dev)s 是可共享的;请关闭虚拟机后再克隆" -#: vrtManager/instance.py:2711 +#: vrtManager/instance.py:2721 #, python-format msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it" msgstr "磁盘 %(dev)s 在下次启动时会改变;请关闭虚拟机后再克隆" -#: vrtManager/instance.py:2713 +#: vrtManager/instance.py:2723 msgid "Another job is running on the VM; clone it when that ends" msgstr "虚拟机上有另一个任务正在运行;请在其结束后再克隆" -#: vrtManager/instance.py:2739 +#: vrtManager/instance.py:2749 #, python-format msgid "" "Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB" @@ -11230,111 +11243,111 @@ msgstr "" "存储池 %(pool)s 可用 %(free).1f GiB;克隆需要 %(size).1f GiB(复制的磁盘,再加其 %(percent)g%%,至少" " %(minimum)g GiB)" -#: vrtManager/instance.py:2756 +#: vrtManager/instance.py:2766 #, python-format msgid "Volume %(name)s already exists in storage pool %(pool)s" msgstr "卷 %(name)s 已存在于存储池 %(pool)s 中" -#: vrtManager/instance.py:2944 +#: vrtManager/instance.py:2954 msgid "A network interface that is a host device is removed in the XML editor" msgstr "作为主机设备的网络接口需在 XML 编辑器中删除" -#: vrtManager/instance.py:2960 +#: vrtManager/instance.py:2970 #, python-format msgid "No network interface with MAC %(old_mac)s" msgstr "没有 MAC 为 %(old_mac)s 的网络接口" -#: vrtManager/instance.py:2963 +#: vrtManager/instance.py:2973 msgid "A network interface that is a host device is changed in the XML editor" msgstr "作为主机设备的网络接口需在 XML 编辑器中修改" -#: vrtManager/instance.py:3057 +#: vrtManager/instance.py:3067 msgid "" "A VM changes its PCI devices while it runs, or is shut off without a saved " "state" msgstr "虚拟机只能在运行时或无保存的状态的关机时更改其 PCI 设备" -#: vrtManager/instance.py:3078 +#: vrtManager/instance.py:3088 #, python-format msgid "%(err)s; whether the VM has %(device)s now is not known" msgstr "%(err)s;虚拟机现在是否有 %(device)s 未知" -#: vrtManager/instance.py:3080 +#: vrtManager/instance.py:3090 #, python-format msgid "%(err)s; %(device)s: the VM is not running, its next start has it" msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时有它" -#: vrtManager/instance.py:3081 +#: vrtManager/instance.py:3091 #, python-format msgid "" "%(err)s; %(device)s: the VM is not running, its next start does not have it" msgstr "%(err)s;%(device)s:虚拟机未运行,下次启动时没有它" -#: vrtManager/instance.py:3082 +#: vrtManager/instance.py:3092 #, python-format msgid "%(err)s; %(device)s: the running VM has it, its next start has it" msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时有它" -#: vrtManager/instance.py:3083 +#: vrtManager/instance.py:3093 #, python-format msgid "" "%(err)s; %(device)s: the running VM has it, its next start does not have it" msgstr "%(err)s;%(device)s:运行中的虚拟机有它,下次启动时没有它" -#: vrtManager/instance.py:3084 +#: vrtManager/instance.py:3094 #, python-format msgid "" "%(err)s; %(device)s: the running VM does not have it, its next start has it" msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时有它" -#: vrtManager/instance.py:3086 +#: vrtManager/instance.py:3096 #, python-format msgid "" "%(err)s; %(device)s: the running VM does not have it, its next start does not" " have it" msgstr "%(err)s;%(device)s:运行中的虚拟机没有它,下次启动时没有它" -#: vrtManager/instance.py:3120 +#: vrtManager/instance.py:3130 #, python-format msgid "The VM has no PCI device %(address)s" msgstr "虚拟机没有 PCI 设备 %(address)s" -#: vrtManager/instance.py:3141 +#: vrtManager/instance.py:3151 msgid "The VM has no USB controller" msgstr "虚拟机没有 USB 控制器" -#: vrtManager/instance.py:3175 +#: vrtManager/instance.py:3185 msgid "The VM has no such USB device" msgstr "虚拟机没有此 USB 设备" -#: vrtManager/instance.py:3189 +#: vrtManager/instance.py:3199 #, python-format msgid "The VM has no network interface %(mac)s" msgstr "虚拟机没有网络接口 %(mac)s" -#: vrtManager/instance.py:3221 +#: vrtManager/instance.py:3231 msgid "The VM has its own RNG device: change it in the XML editor" msgstr "虚拟机有自己的 RNG 设备:请在 XML 编辑器中修改" -#: vrtManager/instance.py:3248 +#: vrtManager/instance.py:3258 msgid "The VM has its own TPM: change it in the XML editor" msgstr "虚拟机有自己的 TPM:请在 XML 编辑器中修改" -#: vrtManager/instance.py:3267 +#: vrtManager/instance.py:3277 #, python-format msgid "Unknown crash action %(action)s" msgstr "未知的崩溃操作 %(action)s" -#: vrtManager/instance.py:3294 +#: vrtManager/instance.py:3304 #, python-format msgid "Network interface %(mac)s is not in the definition" msgstr "网络接口 %(mac)s 不在定义中" -#: vrtManager/instance.py:3385 +#: vrtManager/instance.py:3395 msgid "The guest agent did not answer in time; nothing was changed" msgstr "客户机代理未及时响应;未做任何更改" -#: vrtManager/instance.py:3388 +#: vrtManager/instance.py:3398 msgid "The VM runs Windows: its guest agent sets no root password or SSH key" msgstr "该虚拟机运行 Windows:其客户机代理不能设置 root 密码或 SSH 密钥" diff --git a/static/js/instance_page.js b/static/js/instance_page.js index 95aa2ea0..e7d8a931 100644 --- a/static/js/instance_page.js +++ b/static/js/instance_page.js @@ -33,11 +33,40 @@ $('#oskernelversion').text(data['kernel-version'] || ''); $('#osversion').text(data.version || ''); $('#ostimezone').text(data.zone ? data.zone + " / " + data.offset : ''); + show_filesystems(data.filesystems || []); }).fail(function (xhr) { var message = xhr.responseJSON && xhr.responseJSON.error; error.text(message || silent).removeClass('d-none'); + show_filesystems([]); }); } + // each file system: its mount point, type, and how full it is (a bar, amber from 85 %) + function show_filesystems(filesystems) { + var table = document.getElementById('osfilesystems'); + var body = table.tBodies[0]; + body.replaceChildren(); + filesystems.forEach(function (fs) { + var row = body.insertRow(); + row.insertCell().textContent = fs.mountpoint; + row.insertCell().textContent = fs.type; + var used = row.insertCell(); + used.textContent = fs.used_text + " / " + fs.total_text; + var bar = document.createElement('div'); + bar.className = 'progress mt-1'; + bar.style.setProperty('--bs-progress-height', '0.3rem'); + bar.setAttribute('role', 'progressbar'); + bar.setAttribute('aria-valuenow', fs.percent); + bar.setAttribute('aria-valuemin', 0); + bar.setAttribute('aria-valuemax', 100); + bar.setAttribute('aria-label', fs.mountpoint); + var fill = document.createElement('div'); + fill.className = 'progress-bar' + (fs.percent >= 85 ? ' bg-warning' : ''); + fill.style.width = fs.percent + '%'; + bar.appendChild(fill); + used.appendChild(bar); + }); + table.hidden = filesystems.length === 0; + } function get_osinfo() { show_tab('#settings'); show_tab('#osinfo'); diff --git a/vrtManager/instance.py b/vrtManager/instance.py index 66a58344..d9778f65 100644 --- a/vrtManager/instance.py +++ b/vrtManager/instance.py @@ -784,8 +784,21 @@ class wvmInstance(wvmConnect): for command in ("guest-get-timezone", "guest-get-host-name"): with contextlib.suppress(libvirtError): info.update(agent_command(self.instance, command)) + with contextlib.suppress(libvirtError): + info["filesystems"] = self.guest_filesystems() return info + def guest_filesystems(self): + """The guest's mounted file systems the agent gives both sizes of (not + pseudo ones), by mount point: [{"mountpoint", "type", "used", "total"}], bytes.""" + filesystems = [] + for fs in agent_command(self.instance, "guest-get-fsinfo") or []: + used, total = (fs or {}).get("used-bytes"), (fs or {}).get("total-bytes") + if isinstance(used, int) and isinstance(total, int) and total > 0: + filesystems.append({"mountpoint": str(fs.get("mountpoint", "")), "type": str(fs.get("type", "")), + "used": used, "total": total}) + return sorted(filesystems, key=lambda fs: fs["mountpoint"]) + def start(self, flags=0): self.instance.createWithFlags(flags) diff --git a/vrtManager/tests/test_interface_addresses.py b/vrtManager/tests/test_interface_addresses.py index 3dafc054..158d3253 100644 --- a/vrtManager/tests/test_interface_addresses.py +++ b/vrtManager/tests/test_interface_addresses.py @@ -68,13 +68,14 @@ class InterfaceAddressesTestCase(unittest.TestCase): class OsInfoTestCase(unittest.TestCase): def test_the_os_details_are_asked_with_a_timeout(self): answers = {"guest-get-osinfo": {"kernel-release": "6.12"}, "guest-get-timezone": {"zone": "UTC"}, - "guest-get-host-name": {"host-name": "web"}} + "guest-get-host-name": {"host-name": "web"}, "guest-get-fsinfo": []} inst = wvmInstance.__new__(wvmInstance) inst.instance = MagicMock() with patch.object(module, "qemuAgentCommand", side_effect=lambda dom, cmd, timeout, flags: json.dumps( {"return": answers[json.loads(cmd)["execute"]]})) as agent: - self.assertEqual(inst.osinfo(), {"kernel-release": "6.12", "zone": "UTC", "host-name": "web"}) + self.assertEqual(inst.osinfo(), {"kernel-release": "6.12", "zone": "UTC", "host-name": "web", + "filesystems": []}) self.assertEqual({c.args[2] for c in agent.call_args_list}, {10}) def test_a_command_the_agent_lacks_leaves_out_only_its_details(self): @@ -82,14 +83,30 @@ class OsInfoTestCase(unittest.TestCase): inst.instance = MagicMock() def agent(dom, cmd, timeout, flags): - if json.loads(cmd)["execute"] == "guest-get-timezone": - raise libvirtError("The command guest-get-timezone has not been found") + if json.loads(cmd)["execute"] in ("guest-get-timezone", "guest-get-fsinfo"): + raise libvirtError("The command has not been found") return json.dumps({"return": {"guest-get-osinfo": {"id": "alma"}, "guest-get-host-name": {"host-name": "web"}}[ json.loads(cmd)["execute"]]}) with patch.object(module, "qemuAgentCommand", side_effect=agent): self.assertEqual(inst.osinfo(), {"id": "alma", "host-name": "web"}) + def test_the_file_systems_with_a_size_by_mount_point(self): + fsinfo = [ + {"name": "vda2", "mountpoint": "/boot", "type": "xfs", "used-bytes": 2**28, "total-bytes": 2**30}, + {"name": "vda1", "mountpoint": "/var/lib/containers/overlay", "type": "overlay"}, # no size: left out + {"name": "vdb1", "mountpoint": "/data", "type": "xfs", "total-bytes": 2**30}, # no used size: left out + None, + {"name": "vda1", "mountpoint": "/", "type": "xfs", "used-bytes": 3 * 2**30, "total-bytes": 10 * 2**30}, + ] + inst = wvmInstance.__new__(wvmInstance) + inst.instance = MagicMock() + with patch.object(module, "qemuAgentCommand", return_value=json.dumps({"return": fsinfo})): + self.assertEqual(inst.guest_filesystems(), [ + {"mountpoint": "/", "type": "xfs", "used": 3 * 2**30, "total": 10 * 2**30}, + {"mountpoint": "/boot", "type": "xfs", "used": 2**28, "total": 2**30}, + ]) + if __name__ == "__main__": unittest.main()