mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 09:26:03 +00:00
fix(instances): a VM is not migrated to a host whose filters of its names differ
A migration checked only that the destination had network filters of the names the VM's NICs use. A VM runs with its host's filter of a name, whatever its rules: a destination whose filter of that name was empty, or lacked a filter it references, left the VM unfiltered there. The filters the VM names and those they reference are now compared rule by rule (each host's UUID aside), and one missing or different on the destination refuses the migration. A filter created or edited with a reference to a filter the host does not have, which libvirt accepts, is refused too: a VM using it would not start.
This commit is contained in:
parent
b664e34161
commit
b1c6184931
9 changed files with 384 additions and 275 deletions
Binary file not shown.
|
|
@ -11,7 +11,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-13 08:24+0000\n"
|
||||
"POT-Creation-Date: 2026-11-13 08:27+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"
|
||||
|
|
@ -2881,7 +2881,7 @@ msgstr ""
|
|||
msgid "Delete snapshot"
|
||||
msgstr "Anlık görüntüyü sil"
|
||||
|
||||
#: instances/jobs.py:356 vrtManager/instance.py:2354
|
||||
#: instances/jobs.py:356 vrtManager/instance.py:2388
|
||||
#, 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"
|
||||
|
|
@ -2916,7 +2916,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:424 instances/jobs.py:433 vrtManager/instance.py:1945
|
||||
#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:1979
|
||||
#, python-format
|
||||
msgid "A snapshot named %(name)s already exists"
|
||||
msgstr "%(name)s adında bir anlık görüntü zaten var"
|
||||
|
|
@ -3078,12 +3078,12 @@ msgstr ""
|
|||
msgid "Each network card needs a network"
|
||||
msgstr "Her ağ kartının bir ağı olmalı"
|
||||
|
||||
#: instances/jobs.py:851 vrtManager/instance.py:2804
|
||||
#: instances/jobs.py:851 vrtManager/instance.py:2838
|
||||
#, python-format
|
||||
msgid "This host has no network %(name)s"
|
||||
msgstr "Bu sunucuda %(name)s ağı yok"
|
||||
|
||||
#: instances/jobs.py:853 vrtManager/instance.py:2806
|
||||
#: instances/jobs.py:853 vrtManager/instance.py:2840
|
||||
#, python-format
|
||||
msgid "This host has no network filter %(name)s"
|
||||
msgstr "Bu sunucuda %(name)s ağ filtresi yok"
|
||||
|
|
@ -3148,7 +3148,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:928 vrtManager/instance.py:3153
|
||||
#: instances/jobs.py:928 vrtManager/instance.py:3187
|
||||
msgid "This host offers no TPM 2.0: install swtpm on it"
|
||||
msgstr "Bu sunucu TPM 2.0 sunmuyor: üzerine swtpm kurun"
|
||||
|
||||
|
|
@ -4441,7 +4441,7 @@ msgid "Add USB device"
|
|||
msgstr "USB aygıtı ekle"
|
||||
|
||||
#: instances/templates/instances/host_devices_form.html:18
|
||||
#: vrtManager/instance.py:3057
|
||||
#: vrtManager/instance.py:3091
|
||||
msgid ""
|
||||
"A VM with a saved state does not change its USB devices: start it, or start "
|
||||
"it without its saved state"
|
||||
|
|
@ -6374,7 +6374,7 @@ msgstr "Birim başarıyla değiştirildi."
|
|||
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:1557 vrtManager/instance.py:2364
|
||||
#: instances/views.py:1557 vrtManager/instance.py:2398
|
||||
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"
|
||||
|
|
@ -6436,7 +6436,7 @@ msgstr "Anlık görüntü silinmedi: %(err)s"
|
|||
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:1869 vrtManager/instance.py:1163
|
||||
#: instances/views.py:1869 vrtManager/instance.py:1197
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "Ön yükleme sırası için geçersiz aygıt türü"
|
||||
|
||||
|
|
@ -9195,77 +9195,84 @@ msgstr ""
|
|||
"%(pool)s havuzu etkin değil: içindeki sanal makine disklerinin oluşturulduğu "
|
||||
"dosyalar denetlenemiyor; önce havuzu başlatın"
|
||||
|
||||
#: vrtManager/instance.py:144
|
||||
#: vrtManager/instance.py:173
|
||||
msgid "A running or paused VM cannot be migrated offline"
|
||||
msgstr "Çalışan veya duraklatılmış bir sanal makine çevrimdışı taşınamaz"
|
||||
|
||||
#: vrtManager/instance.py:147
|
||||
#: vrtManager/instance.py:176
|
||||
msgid "The VM can be migrated when it is running, paused or shut off"
|
||||
msgstr "Sanal makine çalışırken, duraklatılmışken veya kapalıyken taşınabilir"
|
||||
|
||||
#: vrtManager/instance.py:170
|
||||
#: vrtManager/instance.py:199
|
||||
msgid "A VM with snapshots cannot be migrated"
|
||||
msgstr "Anlık görüntüleri olan bir sanal makine taşınamaz"
|
||||
|
||||
#: vrtManager/instance.py:173
|
||||
#: vrtManager/instance.py:202
|
||||
msgid "A VM with a saved state cannot be migrated"
|
||||
msgstr "Kaydedilmiş durumu olan bir sanal makine taşınamaz"
|
||||
|
||||
#: vrtManager/instance.py:180
|
||||
#: vrtManager/instance.py:209
|
||||
msgid "A VM with host devices cannot be migrated; remove them first"
|
||||
msgstr "Sunucu aygıtları olan bir sanal makine taşınamaz; önce onları kaldırın"
|
||||
|
||||
#: vrtManager/instance.py:183
|
||||
#: vrtManager/instance.py:213
|
||||
#, python-format
|
||||
msgid "The destination host does not have these networks of the VM: %(names)s"
|
||||
msgstr "Hedef sunucuda VM'in şu ağları yok: %(names)s"
|
||||
|
||||
#: vrtManager/instance.py:186
|
||||
#: vrtManager/instance.py:217
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The destination host does not have these network filters of the VM: %(names)s"
|
||||
msgstr "Hedef sunucuda VM'in şu ağ filtreleri yok: %(names)s"
|
||||
|
||||
#: vrtManager/instance.py:189
|
||||
#: vrtManager/instance.py:220
|
||||
#, python-format
|
||||
msgid ""
|
||||
"These network filters of the VM have other rules on the destination host: "
|
||||
"%(names)s"
|
||||
msgstr "VM'in şu ağ filtrelerinin hedef sunucudaki kuralları farklı: %(names)s"
|
||||
|
||||
#: vrtManager/instance.py:223
|
||||
#, python-format
|
||||
msgid "The destination host does not have these secrets of the VM: %(names)s"
|
||||
msgstr "Hedef sunucuda VM'in şu parolaları yok: %(names)s"
|
||||
|
||||
#: vrtManager/instance.py:196
|
||||
#: vrtManager/instance.py:230
|
||||
#, python-format
|
||||
msgid "The destination host does not have these disks of the VM: %(disks)s"
|
||||
msgstr "Hedef sunucuda sanal makinenin şu diskleri yok: %(disks)s"
|
||||
|
||||
#: vrtManager/instance.py:197
|
||||
#: vrtManager/instance.py:231
|
||||
#, python-format
|
||||
msgid "%(target)s (%(source)s)"
|
||||
msgstr "%(target)s (%(source)s)"
|
||||
|
||||
#: vrtManager/instance.py:205
|
||||
#: vrtManager/instance.py:239
|
||||
msgid "Destination host emulator is different. Cannot be migrated"
|
||||
msgstr "Hedef sunucunun emülatörü farklı. Taşınamaz"
|
||||
|
||||
#: vrtManager/instance.py:339
|
||||
#: vrtManager/instance.py:373
|
||||
msgid "an image is not copied; eject it first"
|
||||
msgstr "bir imaj kopyalanmaz; önce onu çıkarın"
|
||||
|
||||
#: vrtManager/instance.py:342
|
||||
#: vrtManager/instance.py:376
|
||||
msgid "a read-only or encrypted disk is not copied"
|
||||
msgstr "salt okunur veya şifreli bir disk kopyalanmaz"
|
||||
|
||||
#: vrtManager/instance.py:345
|
||||
#: vrtManager/instance.py:379
|
||||
msgid "only raw and qcow2 disks are copied"
|
||||
msgstr "yalnızca raw ve qcow2 diskler kopyalanır"
|
||||
|
||||
#: vrtManager/instance.py:347
|
||||
#: vrtManager/instance.py:381
|
||||
msgid "no storage pool of the source host has it"
|
||||
msgstr "kaynak sunucunun hiçbir depolama havuzunda yok"
|
||||
|
||||
#: vrtManager/instance.py:349
|
||||
#: vrtManager/instance.py:383
|
||||
msgid "a disk with a backing file is not copied"
|
||||
msgstr "temel (backing) dosyası olan bir disk kopyalanmaz"
|
||||
|
||||
#: vrtManager/instance.py:369
|
||||
#: vrtManager/instance.py:403
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): the destination host does not share it; choose a pool "
|
||||
|
|
@ -9274,12 +9281,12 @@ msgstr ""
|
|||
"%(target)s (%(path)s): hedef sunucu bunu paylaşmıyor; kopyalanacağı bir havuz"
|
||||
" seçin"
|
||||
|
||||
#: vrtManager/instance.py:373
|
||||
#: vrtManager/instance.py:407
|
||||
#, python-format
|
||||
msgid "%(target)s (%(path)s): %(refusal)s"
|
||||
msgstr "%(target)s (%(path)s): %(refusal)s"
|
||||
|
||||
#: vrtManager/instance.py:378
|
||||
#: vrtManager/instance.py:412
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): the destination host has no pool %(pool)s for disk "
|
||||
|
|
@ -9287,7 +9294,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"%(target)s (%(path)s): hedef sunucuda disk dosyaları için %(pool)s havuzu yok"
|
||||
|
||||
#: vrtManager/instance.py:385
|
||||
#: vrtManager/instance.py:419
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): pool %(pool)s of the destination host already has a "
|
||||
|
|
@ -9296,17 +9303,17 @@ msgstr ""
|
|||
"%(target)s (%(path)s): hedef sunucunun %(pool)s havuzunda zaten %(file)s "
|
||||
"dosyası var"
|
||||
|
||||
#: vrtManager/instance.py:392
|
||||
#: vrtManager/instance.py:426
|
||||
#, python-format
|
||||
msgid "%(target)s (%(path)s): another disk is copied to %(dest)s"
|
||||
msgstr "%(target)s (%(path)s): başka bir disk %(dest)s konumuna kopyalanıyor"
|
||||
|
||||
#: vrtManager/instance.py:397
|
||||
#: vrtManager/instance.py:431
|
||||
#, python-format
|
||||
msgid "%(target)s: the VM has no disk file to copy"
|
||||
msgstr "%(target)s: sanal makinenin kopyalanacak disk dosyası yok"
|
||||
|
||||
#: vrtManager/instance.py:401
|
||||
#: vrtManager/instance.py:435
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s) of the next start: the destination host does not share "
|
||||
|
|
@ -9315,12 +9322,12 @@ msgstr ""
|
|||
"Sonraki başlatmanın %(target)s (%(path)s) diski: hedef sunucu bunu "
|
||||
"paylaşmıyor"
|
||||
|
||||
#: vrtManager/instance.py:405
|
||||
#: vrtManager/instance.py:439
|
||||
#, python-format
|
||||
msgid "The disks cannot be migrated: %(problems)s"
|
||||
msgstr "Diskler taşınamaz: %(problems)s"
|
||||
|
||||
#: vrtManager/instance.py:418
|
||||
#: vrtManager/instance.py:452
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; remove the partial disk copies from the destination host: "
|
||||
|
|
@ -9328,14 +9335,14 @@ msgid ""
|
|||
msgstr ""
|
||||
"%(error)s; yarım kalan disk kopyalarını hedef sunucudan kaldırın: %(copies)s"
|
||||
|
||||
#: vrtManager/instance.py:435
|
||||
#: vrtManager/instance.py:469
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; remove the partial disk copies from the destination host: %(left)s"
|
||||
msgstr ""
|
||||
"%(error)s; yarım kalan disk kopyalarını hedef sunucudan kaldırın: %(left)s"
|
||||
|
||||
#: vrtManager/instance.py:449
|
||||
#: vrtManager/instance.py:483
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The NVRAM file %(path)s is not in libvirt's NVRAM directory %(dir)s and "
|
||||
|
|
@ -9344,26 +9351,26 @@ msgstr ""
|
|||
"%(path)s NVRAM dosyası libvirt'in NVRAM dizini %(dir)s içinde değil ve "
|
||||
"kopyalanamaz"
|
||||
|
||||
#: vrtManager/instance.py:458
|
||||
#: vrtManager/instance.py:492
|
||||
#, python-format
|
||||
msgid "The destination host cannot see the NVRAM file %(path)s"
|
||||
msgstr "Hedef sunucu %(path)s NVRAM dosyasını göremiyor"
|
||||
|
||||
#: vrtManager/instance.py:549
|
||||
#: vrtManager/instance.py:583
|
||||
#, python-format
|
||||
msgid "%(type)s disk, cannot be checked"
|
||||
msgstr "%(type)s disk, kontrol edilemiyor"
|
||||
|
||||
#: vrtManager/instance.py:589
|
||||
#: vrtManager/instance.py:623
|
||||
#, python-format
|
||||
msgid "The destination host already has a VM %(key)s"
|
||||
msgstr "Hedef sunucuda zaten %(key)s sanal makinesi var"
|
||||
|
||||
#: vrtManager/instance.py:611
|
||||
#: vrtManager/instance.py:645
|
||||
msgid "The VM was started on the source host during the migration"
|
||||
msgstr "Sanal makine taşıma sırasında kaynak sunucuda başlatıldı"
|
||||
|
||||
#: vrtManager/instance.py:627
|
||||
#: vrtManager/instance.py:661
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; the VM may now be defined only on the destination host: check both"
|
||||
|
|
@ -9372,7 +9379,7 @@ msgstr ""
|
|||
"%(error)s; sanal makine artık yalnızca hedef sunucuda tanımlı olabilir: iki "
|
||||
"sunucuyu da kontrol edin"
|
||||
|
||||
#: vrtManager/instance.py:633
|
||||
#: vrtManager/instance.py:667
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; the VM is now defined on both hosts, remove it from the "
|
||||
|
|
@ -9381,7 +9388,7 @@ msgstr ""
|
|||
"%(error)s; sanal makine artık iki sunucuda da tanımlı, hedeften kaldırın: "
|
||||
"%(undo_error)s"
|
||||
|
||||
#: vrtManager/instance.py:639
|
||||
#: vrtManager/instance.py:673
|
||||
msgid ""
|
||||
"Snapshot names are 1-64 letters, digits, '.', '_' or '-' and do not start "
|
||||
"with '.'"
|
||||
|
|
@ -9389,7 +9396,7 @@ msgstr ""
|
|||
"Anlık görüntü adları 1-64 harf, rakam, '.', '_' veya '-' karakterinden oluşur"
|
||||
" ve '.' ile başlamaz"
|
||||
|
||||
#: vrtManager/instance.py:1151
|
||||
#: vrtManager/instance.py:1185
|
||||
msgid ""
|
||||
"A device other than a disk or NIC is in the boot order: change it in the XML "
|
||||
"editor"
|
||||
|
|
@ -9397,51 +9404,51 @@ 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:1166
|
||||
#: vrtManager/instance.py:1200
|
||||
#, 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:1186
|
||||
#: vrtManager/instance.py:1220
|
||||
#, 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:1187
|
||||
#: vrtManager/instance.py:1221
|
||||
#, 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:1200
|
||||
#: vrtManager/instance.py:1234
|
||||
#, 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:1211
|
||||
#: vrtManager/instance.py:1245
|
||||
#, python-format
|
||||
msgid "ISO image %(image)s was not found"
|
||||
msgstr "ISO imajı %(image)s bulunamadı"
|
||||
|
||||
#: vrtManager/instance.py:1213
|
||||
#: vrtManager/instance.py:1247
|
||||
#, 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:1308
|
||||
#: vrtManager/instance.py:1342
|
||||
#, 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:1440
|
||||
#: vrtManager/instance.py:1474
|
||||
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:1727
|
||||
#: vrtManager/instance.py:1761
|
||||
msgid "The VM has no video card"
|
||||
msgstr "Sanal makinede ekran kartı yok"
|
||||
|
||||
#: vrtManager/instance.py:1737
|
||||
#: vrtManager/instance.py:1771
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The VM's CPU topology has %(count)s vCPUs: change it in the XML editor to set"
|
||||
|
|
@ -9450,62 +9457,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:1763
|
||||
#: vrtManager/instance.py:1797
|
||||
#, 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:1904
|
||||
#: vrtManager/instance.py:1938
|
||||
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:1936
|
||||
#: vrtManager/instance.py:1970
|
||||
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:1938
|
||||
#: vrtManager/instance.py:1972
|
||||
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:1940
|
||||
#: vrtManager/instance.py:1974
|
||||
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:1943
|
||||
#: vrtManager/instance.py:1977
|
||||
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:1948
|
||||
#: vrtManager/instance.py:1982
|
||||
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:1951
|
||||
#: vrtManager/instance.py:1985
|
||||
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:1957
|
||||
#: vrtManager/instance.py:1991
|
||||
#, python-format
|
||||
msgid "Eject the media from %(dev)s first"
|
||||
msgstr "Önce %(dev)s içindeki ortamı çıkarın"
|
||||
|
||||
#: vrtManager/instance.py:1959
|
||||
#: vrtManager/instance.py:1993
|
||||
#, 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:1967
|
||||
#: vrtManager/instance.py:2001
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The storage pools could not be refreshed, so their free space is unknown: "
|
||||
|
|
@ -9513,21 +9520,21 @@ msgid ""
|
|||
msgstr ""
|
||||
"Depolama havuzları yenilenemedi, bu yüzden boş alanları bilinmiyor: %(err)s"
|
||||
|
||||
#: vrtManager/instance.py:1988
|
||||
#: vrtManager/instance.py:2022
|
||||
msgid "Memory is saved only from a running VM"
|
||||
msgstr "Bellek yalnızca çalışan bir sanal makineden kaydedilir"
|
||||
|
||||
#: vrtManager/instance.py:1990
|
||||
#: vrtManager/instance.py:2024
|
||||
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:1994
|
||||
#: vrtManager/instance.py:2028
|
||||
#, 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:2025
|
||||
#: vrtManager/instance.py:2059
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f "
|
||||
|
|
@ -9538,7 +9545,7 @@ msgstr ""
|
|||
"%(size).1f GiB gerektiriyor (sanal makinenin oradaki disklerinin "
|
||||
"%%%(percent)g kadarı, en az %(minimum)g GiB, ve kaydediliyorsa bellek)"
|
||||
|
||||
#: vrtManager/instance.py:2043
|
||||
#: vrtManager/instance.py:2077
|
||||
msgid ""
|
||||
"This snapshot was taken by an older version on a UEFI VM and cannot be "
|
||||
"reverted; delete it instead"
|
||||
|
|
@ -9546,7 +9553,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:2073
|
||||
#: vrtManager/instance.py:2107
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The revert failed twice; try again in a moment (%(error)s). The VM is "
|
||||
|
|
@ -9555,7 +9562,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:2075
|
||||
#: vrtManager/instance.py:2109
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The revert failed twice; try again in a moment (%(error)s). The VM is shut "
|
||||
|
|
@ -9564,13 +9571,13 @@ msgstr ""
|
|||
"Geri dönüş iki kez başarısız oldu; biraz sonra tekrar deneyin (%(error)s). "
|
||||
"Sanal makine kapalı."
|
||||
|
||||
#: vrtManager/instance.py:2243
|
||||
#: vrtManager/instance.py:2277
|
||||
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:2245
|
||||
#: vrtManager/instance.py:2279
|
||||
msgid ""
|
||||
"A disk of a VM with snapshots, a saved state or a running block job does not "
|
||||
"move"
|
||||
|
|
@ -9578,7 +9585,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:2253
|
||||
#: vrtManager/instance.py:2287
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(dev)s is not a disk file of the VM, the same in its running and next "
|
||||
|
|
@ -9587,127 +9594,127 @@ msgstr ""
|
|||
"%(dev)s, sanal makinenin çalışan ve sonraki başlatma tanımlarında aynı olan "
|
||||
"bir disk dosyası değil"
|
||||
|
||||
#: vrtManager/instance.py:2258
|
||||
#: vrtManager/instance.py:2292
|
||||
#, 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:2265
|
||||
#: vrtManager/instance.py:2299
|
||||
#, 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:2267
|
||||
#: vrtManager/instance.py:2301
|
||||
#, 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:2270
|
||||
#: vrtManager/instance.py:2304
|
||||
#, 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:2273
|
||||
#: vrtManager/instance.py:2307
|
||||
#, python-format
|
||||
msgid "%(dev)s is in pool %(pool_name)s already"
|
||||
msgstr "%(dev)s zaten %(pool_name)s havuzunda"
|
||||
|
||||
#: vrtManager/instance.py:2277
|
||||
#: vrtManager/instance.py:2311
|
||||
#, 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:2301
|
||||
#: vrtManager/instance.py:2335
|
||||
#, python-format
|
||||
msgid "The copy of %(dev)s ended before it was complete"
|
||||
msgstr "%(dev)s kopyası tamamlanmadan sona erdi"
|
||||
|
||||
#: vrtManager/instance.py:2346
|
||||
#: vrtManager/instance.py:2380
|
||||
#, 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:2348
|
||||
#: vrtManager/instance.py:2382
|
||||
#, 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:2355
|
||||
#: vrtManager/instance.py:2389
|
||||
#, 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:2366
|
||||
#: vrtManager/instance.py:2400
|
||||
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:2376
|
||||
#: vrtManager/instance.py:2410
|
||||
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:2463
|
||||
#: vrtManager/instance.py:2497
|
||||
msgid "A VM with a host's or an external TPM is not cloned; remove it first"
|
||||
msgstr ""
|
||||
"Ana makinenin ya da harici bir TPM'i olan sanal makine klonlanmaz; önce onu "
|
||||
"kaldırın"
|
||||
|
||||
#: vrtManager/instance.py:2485
|
||||
#: vrtManager/instance.py:2519
|
||||
msgid "Cannot clone a VM whose NVRAM is not a file"
|
||||
msgstr "NVRAM'i dosya olmayan bir sanal makine klonlanamaz"
|
||||
|
||||
#: vrtManager/instance.py:2555
|
||||
#: vrtManager/instance.py:2589
|
||||
#, 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:2566
|
||||
#: vrtManager/instance.py:2600
|
||||
msgid "Shut the VM down before cloning it"
|
||||
msgstr "Klonlamadan önce sanal makineyi kapatın"
|
||||
|
||||
#: vrtManager/instance.py:2620
|
||||
#: vrtManager/instance.py:2654
|
||||
#, 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:2631
|
||||
#: vrtManager/instance.py:2665
|
||||
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:2634
|
||||
#: vrtManager/instance.py:2668
|
||||
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:2637
|
||||
#: vrtManager/instance.py:2671
|
||||
#, 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:2639
|
||||
#: vrtManager/instance.py:2673
|
||||
#, 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:2644
|
||||
#: vrtManager/instance.py:2678
|
||||
#, 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:2646
|
||||
#: vrtManager/instance.py:2680
|
||||
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:2672
|
||||
#: vrtManager/instance.py:2706
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB"
|
||||
|
|
@ -9717,25 +9724,25 @@ msgstr ""
|
|||
"gerektiriyor (kopyalanan diskler, artı bunların %%%(percent)g kadarı, en az "
|
||||
"%(minimum)g GiB)"
|
||||
|
||||
#: vrtManager/instance.py:2689
|
||||
#: vrtManager/instance.py:2723
|
||||
#, 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:2843
|
||||
#: vrtManager/instance.py:2877
|
||||
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:2859
|
||||
#: vrtManager/instance.py:2893
|
||||
#, python-format
|
||||
msgid "No network interface with MAC %(old_mac)s"
|
||||
msgstr "MAC adresi %(old_mac)s olan ağ arabirimi yok"
|
||||
|
||||
#: vrtManager/instance.py:2862
|
||||
#: vrtManager/instance.py:2896
|
||||
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:2956
|
||||
#: vrtManager/instance.py:2990
|
||||
msgid ""
|
||||
"A VM changes its PCI devices while it runs, or is shut off without a saved "
|
||||
"state"
|
||||
|
|
@ -9743,43 +9750,43 @@ msgstr ""
|
|||
"Sanal makine PCI aygıtlarını çalışırken veya kaydedilmiş durumu olmadan "
|
||||
"kapalıyken değiştirir"
|
||||
|
||||
#: vrtManager/instance.py:2977
|
||||
#: vrtManager/instance.py:3011
|
||||
#, 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:2979
|
||||
#: vrtManager/instance.py:3013
|
||||
#, 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:2980
|
||||
#: vrtManager/instance.py:3014
|
||||
#, 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:2981
|
||||
#: vrtManager/instance.py:3015
|
||||
#, 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:2982
|
||||
#: vrtManager/instance.py:3016
|
||||
#, 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:2983
|
||||
#: vrtManager/instance.py:3017
|
||||
#, 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:2985
|
||||
#: vrtManager/instance.py:3019
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(err)s; %(device)s: the running VM does not have it, its next start does not"
|
||||
|
|
@ -9787,48 +9794,48 @@ msgid ""
|
|||
msgstr ""
|
||||
"%(err)s; %(device)s: çalışan sanal makinede yok, sonraki başlatmada yok"
|
||||
|
||||
#: vrtManager/instance.py:3019
|
||||
#: vrtManager/instance.py:3053
|
||||
#, python-format
|
||||
msgid "The VM has no PCI device %(address)s"
|
||||
msgstr "Sanal makinede %(address)s PCI aygıtı yok"
|
||||
|
||||
#: vrtManager/instance.py:3040
|
||||
#: vrtManager/instance.py:3074
|
||||
msgid "The VM has no USB controller"
|
||||
msgstr "Sanal makinede USB denetleyicisi yok"
|
||||
|
||||
#: vrtManager/instance.py:3074
|
||||
#: vrtManager/instance.py:3108
|
||||
msgid "The VM has no such USB device"
|
||||
msgstr "Sanal makinede böyle bir USB aygıtı yok"
|
||||
|
||||
#: vrtManager/instance.py:3088
|
||||
#: vrtManager/instance.py:3122
|
||||
#, python-format
|
||||
msgid "The VM has no network interface %(mac)s"
|
||||
msgstr "Sanal makinede %(mac)s ağ arabirimi yok"
|
||||
|
||||
#: vrtManager/instance.py:3119
|
||||
#: vrtManager/instance.py:3153
|
||||
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:3146
|
||||
#: vrtManager/instance.py:3180
|
||||
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:3165
|
||||
#: vrtManager/instance.py:3199
|
||||
#, python-format
|
||||
msgid "Unknown crash action %(action)s"
|
||||
msgstr "Bilinmeyen çökme eylemi %(action)s"
|
||||
|
||||
#: vrtManager/instance.py:3192
|
||||
#: vrtManager/instance.py:3226
|
||||
#, python-format
|
||||
msgid "Network interface %(mac)s is not in the definition"
|
||||
msgstr "%(mac)s ağ arayüzü tanımda yok"
|
||||
|
||||
#: vrtManager/instance.py:3283
|
||||
#: vrtManager/instance.py:3317
|
||||
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:3286
|
||||
#: vrtManager/instance.py:3320
|
||||
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 "
|
||||
|
|
@ -10226,57 +10233,62 @@ msgstr ""
|
|||
msgid "%(problems)s"
|
||||
msgstr "%(problems)s"
|
||||
|
||||
#: vrtManager/nwfilters.py:69
|
||||
#: vrtManager/nwfilters.py:47
|
||||
#, python-format
|
||||
msgid "The host has no network filters %(names)s to reference"
|
||||
msgstr "Sunucuda başvurulacak %(names)s ağ filtreleri yok"
|
||||
|
||||
#: vrtManager/nwfilters.py:76
|
||||
msgid "Enter one <filter> element"
|
||||
msgstr "Tek bir <filter> öğesi girin"
|
||||
|
||||
#: vrtManager/nwfilters.py:71 vrtManager/nwfilters.py:83
|
||||
#: vrtManager/nwfilters.py:78 vrtManager/nwfilters.py:91
|
||||
msgid ""
|
||||
"The filter's name may have letters, digits, dots, dashes and underscores"
|
||||
msgstr "Filtre adı harf, rakam, nokta, tire ve alt çizgi içerebilir"
|
||||
|
||||
#: vrtManager/nwfilters.py:74
|
||||
#: vrtManager/nwfilters.py:81
|
||||
msgid "A network filter with this name already exists"
|
||||
msgstr "Bu adla bir ağ filtresi zaten var"
|
||||
|
||||
#: vrtManager/nwfilters.py:76
|
||||
#: vrtManager/nwfilters.py:83
|
||||
msgid "A network filter with this UUID already exists"
|
||||
msgstr "Bu UUID ile bir ağ filtresi zaten var"
|
||||
|
||||
#: vrtManager/nwfilters.py:85
|
||||
#: vrtManager/nwfilters.py:93
|
||||
#, python-format
|
||||
msgid "A network filter named %(clone_name)s already exists"
|
||||
msgstr "%(clone_name)s adlı bir ağ filtresi zaten var"
|
||||
|
||||
#: vrtManager/nwfilters.py:97
|
||||
#: vrtManager/nwfilters.py:105
|
||||
#, python-format
|
||||
msgid "Filter %(name)s is used by VM %(vms)s"
|
||||
msgstr "%(name)s filtresi %(vms)s sanal makinesi tarafından kullanılıyor"
|
||||
|
||||
#: vrtManager/nwfilters.py:100
|
||||
#: vrtManager/nwfilters.py:108
|
||||
#, python-format
|
||||
msgid "Filter %(name)s is referenced by filter %(referencing)s"
|
||||
msgstr "%(name)s filtresine %(referencing)s filtresi başvuruyor"
|
||||
|
||||
#: vrtManager/nwfilters.py:166
|
||||
#: vrtManager/nwfilters.py:174
|
||||
msgid "The filter has changed; reload the page and try again"
|
||||
msgstr "Filtre değişti; sayfayı yeniden yükleyip tekrar deneyin"
|
||||
|
||||
#: vrtManager/nwfilters.py:176
|
||||
#: vrtManager/nwfilters.py:184
|
||||
#, python-format
|
||||
msgid "Filter %(name)s was changed meanwhile; reload the page"
|
||||
msgstr "%(name)s filtresi bu arada değişti; sayfayı yeniden yükleyin"
|
||||
|
||||
#: vrtManager/nwfilters.py:179
|
||||
#: vrtManager/nwfilters.py:187
|
||||
#, python-format
|
||||
msgid "The XML must define filter %(name)s"
|
||||
msgstr "XML, %(name)s filtresini tanımlamalıdır"
|
||||
|
||||
#: vrtManager/nwfilters.py:181
|
||||
#: vrtManager/nwfilters.py:189
|
||||
msgid "The XML must keep the filter's UUID"
|
||||
msgstr "XML, filtrenin UUID değerini korumalıdır"
|
||||
|
||||
#: vrtManager/nwfilters.py:193
|
||||
#: vrtManager/nwfilters.py:202
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Filter %(name)s cannot be referenced: it is this one, referenced already or "
|
||||
|
|
@ -10285,7 +10297,7 @@ msgstr ""
|
|||
"%(name)s filtresine başvurulamaz: bu filtrenin kendisi, zaten başvurulmuş "
|
||||
"veya sunucuda yok"
|
||||
|
||||
#: vrtManager/nwfilters.py:203
|
||||
#: vrtManager/nwfilters.py:212
|
||||
msgid "Enter one <rule> element"
|
||||
msgstr "Tek bir <rule> öğesi girin"
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-13 08:24+0000\n"
|
||||
"POT-Creation-Date: 2026-11-13 08:27+0000\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
|
@ -2771,7 +2771,7 @@ msgstr "虚拟机未定义;请检查这些卷,然后处理此任务:%(volu
|
|||
msgid "Delete snapshot"
|
||||
msgstr "删除快照"
|
||||
|
||||
#: instances/jobs.py:356 vrtManager/instance.py:2354
|
||||
#: instances/jobs.py:356 vrtManager/instance.py:2388
|
||||
#, python-format
|
||||
msgid "The VM has no external snapshot named %(name)s"
|
||||
msgstr "虚拟机没有名为 %(name)s 的外部快照"
|
||||
|
|
@ -2803,7 +2803,7 @@ msgstr "虚拟机已不在运行该任务的计算节点上"
|
|||
msgid "Take snapshot"
|
||||
msgstr "创建快照"
|
||||
|
||||
#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:1945
|
||||
#: instances/jobs.py:424 instances/jobs.py:433 vrtManager/instance.py:1979
|
||||
#, python-format
|
||||
msgid "A snapshot named %(name)s already exists"
|
||||
msgstr "名为 %(name)s 的快照已存在"
|
||||
|
|
@ -2942,12 +2942,12 @@ msgstr "镜像已存在。请检查卷或更改虚拟机名称"
|
|||
msgid "Each network card needs a network"
|
||||
msgstr "每个网卡都需要一个网络"
|
||||
|
||||
#: instances/jobs.py:851 vrtManager/instance.py:2804
|
||||
#: instances/jobs.py:851 vrtManager/instance.py:2838
|
||||
#, python-format
|
||||
msgid "This host has no network %(name)s"
|
||||
msgstr "此主机没有网络 %(name)s"
|
||||
|
||||
#: instances/jobs.py:853 vrtManager/instance.py:2806
|
||||
#: instances/jobs.py:853 vrtManager/instance.py:2840
|
||||
#, python-format
|
||||
msgid "This host has no network filter %(name)s"
|
||||
msgstr "此主机没有网络过滤器 %(name)s"
|
||||
|
|
@ -3010,7 +3010,7 @@ msgstr "cloud-init 种子需要为磁盘使用目录类型的存储池"
|
|||
msgid "This host offers no firmware %(firmware)s"
|
||||
msgstr "此主机不提供固件 %(firmware)s"
|
||||
|
||||
#: instances/jobs.py:928 vrtManager/instance.py:3153
|
||||
#: instances/jobs.py:928 vrtManager/instance.py:3187
|
||||
msgid "This host offers no TPM 2.0: install swtpm on it"
|
||||
msgstr "此主机不提供 TPM 2.0:请在主机上安装 swtpm"
|
||||
|
||||
|
|
@ -4248,7 +4248,7 @@ msgid "Add USB device"
|
|||
msgstr "添加 USB 设备"
|
||||
|
||||
#: instances/templates/instances/host_devices_form.html:18
|
||||
#: vrtManager/instance.py:3057
|
||||
#: vrtManager/instance.py:3091
|
||||
msgid ""
|
||||
"A VM with a saved state does not change its USB devices: start it, or start "
|
||||
"it without its saved state"
|
||||
|
|
@ -6027,7 +6027,7 @@ msgstr "卷已成功更改。"
|
|||
msgid "Disk %(dev)s is not a storage volume of this instance"
|
||||
msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷"
|
||||
|
||||
#: instances/views.py:1557 vrtManager/instance.py:2364
|
||||
#: instances/views.py:1557 vrtManager/instance.py:2398
|
||||
msgid "The VM has a saved state; start it or remove the saved state first"
|
||||
msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态"
|
||||
|
||||
|
|
@ -6081,7 +6081,7 @@ msgstr "快照未删除:%(err)s"
|
|||
msgid "Add at least one device to the boot order."
|
||||
msgstr "请至少向启动顺序中添加一个设备。"
|
||||
|
||||
#: instances/views.py:1869 vrtManager/instance.py:1163
|
||||
#: instances/views.py:1869 vrtManager/instance.py:1197
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "启动顺序的设备类型无效"
|
||||
|
||||
|
|
@ -8689,305 +8689,312 @@ msgid ""
|
|||
"from cannot be checked; start the pool first"
|
||||
msgstr "存储池 %(pool)s 未激活:无法检查其中虚拟机磁盘所基于的文件;请先启动该存储池"
|
||||
|
||||
#: vrtManager/instance.py:144
|
||||
#: vrtManager/instance.py:173
|
||||
msgid "A running or paused VM cannot be migrated offline"
|
||||
msgstr "运行中或已暂停的虚拟机不能离线迁移"
|
||||
|
||||
#: vrtManager/instance.py:147
|
||||
#: vrtManager/instance.py:176
|
||||
msgid "The VM can be migrated when it is running, paused or shut off"
|
||||
msgstr "虚拟机在运行、暂停或关机时可以迁移"
|
||||
|
||||
#: vrtManager/instance.py:170
|
||||
#: vrtManager/instance.py:199
|
||||
msgid "A VM with snapshots cannot be migrated"
|
||||
msgstr "有快照的虚拟机不能迁移"
|
||||
|
||||
#: vrtManager/instance.py:173
|
||||
#: vrtManager/instance.py:202
|
||||
msgid "A VM with a saved state cannot be migrated"
|
||||
msgstr "有保存的状态的虚拟机不能迁移"
|
||||
|
||||
#: vrtManager/instance.py:180
|
||||
#: vrtManager/instance.py:209
|
||||
msgid "A VM with host devices cannot be migrated; remove them first"
|
||||
msgstr "有主机设备的虚拟机不能迁移;请先移除它们"
|
||||
|
||||
#: vrtManager/instance.py:183
|
||||
#: vrtManager/instance.py:213
|
||||
#, python-format
|
||||
msgid "The destination host does not have these networks of the VM: %(names)s"
|
||||
msgstr "目标主机没有该虚拟机的这些网络:%(names)s"
|
||||
|
||||
#: vrtManager/instance.py:186
|
||||
#: vrtManager/instance.py:217
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The destination host does not have these network filters of the VM: %(names)s"
|
||||
msgstr "目标主机没有该虚拟机的这些网络过滤器:%(names)s"
|
||||
|
||||
#: vrtManager/instance.py:189
|
||||
#: vrtManager/instance.py:220
|
||||
#, python-format
|
||||
msgid ""
|
||||
"These network filters of the VM have other rules on the destination host: "
|
||||
"%(names)s"
|
||||
msgstr "该虚拟机的这些网络过滤器在目标主机上的规则不同:%(names)s"
|
||||
|
||||
#: vrtManager/instance.py:223
|
||||
#, python-format
|
||||
msgid "The destination host does not have these secrets of the VM: %(names)s"
|
||||
msgstr "目标主机没有该虚拟机的这些机密:%(names)s"
|
||||
|
||||
#: vrtManager/instance.py:196
|
||||
#: vrtManager/instance.py:230
|
||||
#, python-format
|
||||
msgid "The destination host does not have these disks of the VM: %(disks)s"
|
||||
msgstr "目标主机没有该虚拟机的这些磁盘:%(disks)s"
|
||||
|
||||
#: vrtManager/instance.py:197
|
||||
#: vrtManager/instance.py:231
|
||||
#, python-format
|
||||
msgid "%(target)s (%(source)s)"
|
||||
msgstr "%(target)s(%(source)s)"
|
||||
|
||||
#: vrtManager/instance.py:205
|
||||
#: vrtManager/instance.py:239
|
||||
msgid "Destination host emulator is different. Cannot be migrated"
|
||||
msgstr "目标主机的模拟器不同,无法迁移"
|
||||
|
||||
#: vrtManager/instance.py:339
|
||||
#: vrtManager/instance.py:373
|
||||
msgid "an image is not copied; eject it first"
|
||||
msgstr "镜像不会被复制;请先弹出它"
|
||||
|
||||
#: vrtManager/instance.py:342
|
||||
#: vrtManager/instance.py:376
|
||||
msgid "a read-only or encrypted disk is not copied"
|
||||
msgstr "只读或加密的磁盘不会被复制"
|
||||
|
||||
#: vrtManager/instance.py:345
|
||||
#: vrtManager/instance.py:379
|
||||
msgid "only raw and qcow2 disks are copied"
|
||||
msgstr "只复制 raw 和 qcow2 磁盘"
|
||||
|
||||
#: vrtManager/instance.py:347
|
||||
#: vrtManager/instance.py:381
|
||||
msgid "no storage pool of the source host has it"
|
||||
msgstr "源主机的任何存储池中都没有它"
|
||||
|
||||
#: vrtManager/instance.py:349
|
||||
#: vrtManager/instance.py:383
|
||||
msgid "a disk with a backing file is not copied"
|
||||
msgstr "有后备文件的磁盘不会被复制"
|
||||
|
||||
#: vrtManager/instance.py:369
|
||||
#: vrtManager/instance.py:403
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): the destination host does not share it; choose a pool "
|
||||
"to copy it to"
|
||||
msgstr "%(target)s (%(path)s):目标主机不共享它;请选择要复制到的存储池"
|
||||
|
||||
#: vrtManager/instance.py:373
|
||||
#: vrtManager/instance.py:407
|
||||
#, python-format
|
||||
msgid "%(target)s (%(path)s): %(refusal)s"
|
||||
msgstr "%(target)s (%(path)s):%(refusal)s"
|
||||
|
||||
#: vrtManager/instance.py:378
|
||||
#: vrtManager/instance.py:412
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): the destination host has no pool %(pool)s for disk "
|
||||
"files"
|
||||
msgstr "%(target)s (%(path)s):目标主机没有用于磁盘文件的存储池 %(pool)s"
|
||||
|
||||
#: vrtManager/instance.py:385
|
||||
#: vrtManager/instance.py:419
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s): pool %(pool)s of the destination host already has a "
|
||||
"file %(file)s"
|
||||
msgstr "%(target)s (%(path)s):目标主机的存储池 %(pool)s 中已有文件 %(file)s"
|
||||
|
||||
#: vrtManager/instance.py:392
|
||||
#: vrtManager/instance.py:426
|
||||
#, python-format
|
||||
msgid "%(target)s (%(path)s): another disk is copied to %(dest)s"
|
||||
msgstr "%(target)s (%(path)s):另一个磁盘已复制到 %(dest)s"
|
||||
|
||||
#: vrtManager/instance.py:397
|
||||
#: vrtManager/instance.py:431
|
||||
#, python-format
|
||||
msgid "%(target)s: the VM has no disk file to copy"
|
||||
msgstr "%(target)s:虚拟机没有可复制的磁盘文件"
|
||||
|
||||
#: vrtManager/instance.py:401
|
||||
#: vrtManager/instance.py:435
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(target)s (%(path)s) of the next start: the destination host does not share "
|
||||
"it"
|
||||
msgstr "下次启动的 %(target)s (%(path)s):目标主机不共享它"
|
||||
|
||||
#: vrtManager/instance.py:405
|
||||
#: vrtManager/instance.py:439
|
||||
#, python-format
|
||||
msgid "The disks cannot be migrated: %(problems)s"
|
||||
msgstr "磁盘无法迁移:%(problems)s"
|
||||
|
||||
#: vrtManager/instance.py:418
|
||||
#: vrtManager/instance.py:452
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; remove the partial disk copies from the destination host: "
|
||||
"%(copies)s"
|
||||
msgstr "%(error)s;请从目标主机删除不完整的磁盘副本:%(copies)s"
|
||||
|
||||
#: vrtManager/instance.py:435
|
||||
#: vrtManager/instance.py:469
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; remove the partial disk copies from the destination host: %(left)s"
|
||||
msgstr "%(error)s;请从目标主机删除不完整的磁盘副本:%(left)s"
|
||||
|
||||
#: vrtManager/instance.py:449
|
||||
#: vrtManager/instance.py:483
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The NVRAM file %(path)s is not in libvirt's NVRAM directory %(dir)s and "
|
||||
"cannot be copied"
|
||||
msgstr "NVRAM 文件 %(path)s 不在 libvirt 的 NVRAM 目录 %(dir)s 中,无法复制"
|
||||
|
||||
#: vrtManager/instance.py:458
|
||||
#: vrtManager/instance.py:492
|
||||
#, python-format
|
||||
msgid "The destination host cannot see the NVRAM file %(path)s"
|
||||
msgstr "目标主机看不到 NVRAM 文件 %(path)s"
|
||||
|
||||
#: vrtManager/instance.py:549
|
||||
#: vrtManager/instance.py:583
|
||||
#, python-format
|
||||
msgid "%(type)s disk, cannot be checked"
|
||||
msgstr "%(type)s 磁盘,无法检查"
|
||||
|
||||
#: vrtManager/instance.py:589
|
||||
#: vrtManager/instance.py:623
|
||||
#, python-format
|
||||
msgid "The destination host already has a VM %(key)s"
|
||||
msgstr "目标主机上已有虚拟机 %(key)s"
|
||||
|
||||
#: vrtManager/instance.py:611
|
||||
#: vrtManager/instance.py:645
|
||||
msgid "The VM was started on the source host during the migration"
|
||||
msgstr "迁移期间虚拟机在源主机上被启动"
|
||||
|
||||
#: vrtManager/instance.py:627
|
||||
#: vrtManager/instance.py:661
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; the VM may now be defined only on the destination host: check both"
|
||||
" hosts"
|
||||
msgstr "%(error)s;虚拟机现在可能只在目标主机上定义:请检查两台主机"
|
||||
|
||||
#: vrtManager/instance.py:633
|
||||
#: vrtManager/instance.py:667
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(error)s; the VM is now defined on both hosts, remove it from the "
|
||||
"destination: %(undo_error)s"
|
||||
msgstr "%(error)s;虚拟机现在在两台主机上都有定义,请从目标主机删除它:%(undo_error)s"
|
||||
|
||||
#: vrtManager/instance.py:639
|
||||
#: vrtManager/instance.py:673
|
||||
msgid ""
|
||||
"Snapshot names are 1-64 letters, digits, '.', '_' or '-' and do not start "
|
||||
"with '.'"
|
||||
msgstr "快照名称为 1-64 个字母、数字、'.'、'_' 或 '-',且不能以 '.' 开头"
|
||||
|
||||
#: vrtManager/instance.py:1151
|
||||
#: vrtManager/instance.py:1185
|
||||
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:1166
|
||||
#: vrtManager/instance.py:1200
|
||||
#, python-format
|
||||
msgid "Boot device %(dev)s is not in the definition"
|
||||
msgstr "启动设备 %(dev)s 不在定义中"
|
||||
|
||||
#: vrtManager/instance.py:1186
|
||||
#: vrtManager/instance.py:1220
|
||||
#, python-format
|
||||
msgid "CD-ROM %(dev)s is not in the running definition"
|
||||
msgstr "CD-ROM %(dev)s 不在运行中的定义中"
|
||||
|
||||
#: vrtManager/instance.py:1187
|
||||
#: vrtManager/instance.py:1221
|
||||
#, python-format
|
||||
msgid "CD-ROM %(dev)s is not in the persistent definition"
|
||||
msgstr "CD-ROM %(dev)s 不在持久定义中"
|
||||
|
||||
#: vrtManager/instance.py:1200
|
||||
#: vrtManager/instance.py:1234
|
||||
#, python-format
|
||||
msgid "Media of %(dev)s changed in the running VM only: %(err)s"
|
||||
msgstr "%(dev)s 的介质仅在运行中的虚拟机中更改:%(err)s"
|
||||
|
||||
#: vrtManager/instance.py:1211
|
||||
#: vrtManager/instance.py:1245
|
||||
#, python-format
|
||||
msgid "ISO image %(image)s was not found"
|
||||
msgstr "未找到 ISO 镜像 %(image)s"
|
||||
|
||||
#: vrtManager/instance.py:1213
|
||||
#: vrtManager/instance.py:1247
|
||||
#, python-format
|
||||
msgid "ISO image %(image)s is in more than one storage pool"
|
||||
msgstr "ISO 镜像 %(image)s 位于多个存储池中"
|
||||
|
||||
#: vrtManager/instance.py:1308
|
||||
#: vrtManager/instance.py:1342
|
||||
#, python-format
|
||||
msgid "Disk %(target_dev)s is not in the VM's definition"
|
||||
msgstr "磁盘 %(target_dev)s 不在虚拟机的定义中"
|
||||
|
||||
#: vrtManager/instance.py:1440
|
||||
#: vrtManager/instance.py:1474
|
||||
msgid "Please shutdown the instance then try to enable vCPU hotplug"
|
||||
msgstr "请先关闭虚拟机,再启用 vCPU 热插拔"
|
||||
|
||||
#: vrtManager/instance.py:1727
|
||||
#: vrtManager/instance.py:1761
|
||||
msgid "The VM has no video card"
|
||||
msgstr "虚拟机没有显卡"
|
||||
|
||||
#: vrtManager/instance.py:1737
|
||||
#: vrtManager/instance.py:1771
|
||||
#, 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:1763
|
||||
#: vrtManager/instance.py:1797
|
||||
#, python-format
|
||||
msgid "The VM's next start has a maximum memory of %(max)s MiB"
|
||||
msgstr "虚拟机下次启动时的最大内存为 %(max)s MiB"
|
||||
|
||||
#: vrtManager/instance.py:1904
|
||||
#: vrtManager/instance.py:1938
|
||||
msgid ""
|
||||
"The VM has external snapshots; internal snapshots cannot be mixed with them"
|
||||
msgstr "虚拟机有外部快照;内部快照不能与其混用"
|
||||
|
||||
#: vrtManager/instance.py:1936
|
||||
#: vrtManager/instance.py:1970
|
||||
msgid "A snapshot with memory is not quiesced; it keeps the whole guest state"
|
||||
msgstr "含内存的快照不会静默文件系统;它保存整个客户机状态"
|
||||
|
||||
#: vrtManager/instance.py:1938
|
||||
#: vrtManager/instance.py:1972
|
||||
msgid "Only a running VM's file systems can be frozen"
|
||||
msgstr "只有运行中的虚拟机的文件系统可以冻结"
|
||||
|
||||
#: vrtManager/instance.py:1940
|
||||
#: vrtManager/instance.py:1974
|
||||
msgid "The QEMU guest agent is not connected; it freezes the file systems"
|
||||
msgstr "QEMU 客户机代理未连接;文件系统由它冻结"
|
||||
|
||||
#: vrtManager/instance.py:1943
|
||||
#: vrtManager/instance.py:1977
|
||||
msgid ""
|
||||
"The VM has internal snapshots; external snapshots cannot be mixed with them"
|
||||
msgstr "虚拟机有内部快照;外部快照不能与其混用"
|
||||
|
||||
#: vrtManager/instance.py:1948
|
||||
#: vrtManager/instance.py:1982
|
||||
msgid "Newer snapshots exist after the last revert; delete them first"
|
||||
msgstr "上次还原后存在更新的快照;请先删除它们"
|
||||
|
||||
#: vrtManager/instance.py:1951
|
||||
#: vrtManager/instance.py:1985
|
||||
msgid "No snapshot is current; revert to a snapshot first"
|
||||
msgstr "没有当前快照;请先还原到某个快照"
|
||||
|
||||
#: vrtManager/instance.py:1957
|
||||
#: vrtManager/instance.py:1991
|
||||
#, python-format
|
||||
msgid "Eject the media from %(dev)s first"
|
||||
msgstr "请先弹出 %(dev)s 中的介质"
|
||||
|
||||
#: vrtManager/instance.py:1959
|
||||
#: vrtManager/instance.py:1993
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a file; external snapshots need file disks"
|
||||
msgstr "磁盘 %(dev)s 不是文件;外部快照需要文件磁盘"
|
||||
|
||||
#: vrtManager/instance.py:1967
|
||||
#: vrtManager/instance.py:2001
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The storage pools could not be refreshed, so their free space is unknown: "
|
||||
"%(err)s"
|
||||
msgstr "无法刷新存储池,其可用空间未知:%(err)s"
|
||||
|
||||
#: vrtManager/instance.py:1988
|
||||
#: vrtManager/instance.py:2022
|
||||
msgid "Memory is saved only from a running VM"
|
||||
msgstr "只能保存运行中的虚拟机的内存"
|
||||
|
||||
#: vrtManager/instance.py:1990
|
||||
#: vrtManager/instance.py:2024
|
||||
msgid "The VM has no disk to keep its memory next to"
|
||||
msgstr "虚拟机没有可存放其内存的磁盘"
|
||||
|
||||
#: vrtManager/instance.py:1994
|
||||
#: vrtManager/instance.py:2028
|
||||
#, python-format
|
||||
msgid "%(disk)s is not in a storage pool; memory is saved only into one"
|
||||
msgstr "%(disk)s 不在存储池中;内存只能保存到存储池中"
|
||||
|
||||
#: vrtManager/instance.py:2025
|
||||
#: vrtManager/instance.py:2059
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s has %(free).1f GiB free; the snapshot needs %(size).1f "
|
||||
|
|
@ -8997,151 +9004,151 @@ msgstr ""
|
|||
"存储池 %(pool)s 可用 %(free).1f GiB;快照需要 %(size).1f GiB(其中虚拟机磁盘的 %(percent)g%%,至少 "
|
||||
"%(minimum)g GiB,若保存内存则另加内存)"
|
||||
|
||||
#: vrtManager/instance.py:2043
|
||||
#: vrtManager/instance.py:2077
|
||||
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:2073
|
||||
#: vrtManager/instance.py:2107
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The revert failed twice; try again in a moment (%(error)s). The VM is "
|
||||
"running."
|
||||
msgstr "还原两次失败;请稍后重试(%(error)s)。虚拟机正在运行。"
|
||||
|
||||
#: vrtManager/instance.py:2075
|
||||
#: vrtManager/instance.py:2109
|
||||
#, 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:2243
|
||||
#: vrtManager/instance.py:2277
|
||||
msgid "A disk moves when its VM is defined and running, paused or shut off"
|
||||
msgstr "仅当虚拟机已定义且处于运行、暂停或关机状态时才能移动磁盘"
|
||||
|
||||
#: vrtManager/instance.py:2245
|
||||
#: vrtManager/instance.py:2279
|
||||
msgid ""
|
||||
"A disk of a VM with snapshots, a saved state or a running block job does not "
|
||||
"move"
|
||||
msgstr "有快照、保存的状态或正在运行块任务的虚拟机的磁盘不能移动"
|
||||
|
||||
#: vrtManager/instance.py:2253
|
||||
#: vrtManager/instance.py:2287
|
||||
#, 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:2258
|
||||
#: vrtManager/instance.py:2292
|
||||
#, python-format
|
||||
msgid "%(dev)s does not move: only writable raw and qcow2 disks do"
|
||||
msgstr "%(dev)s 不能移动:只能移动可写的 raw 和 qcow2 磁盘"
|
||||
|
||||
#: vrtManager/instance.py:2265
|
||||
#: vrtManager/instance.py:2299
|
||||
#, python-format
|
||||
msgid "%(dev)s does not move: no storage pool has %(path)s"
|
||||
msgstr "%(dev)s 不能移动:没有存储池包含 %(path)s"
|
||||
|
||||
#: vrtManager/instance.py:2267
|
||||
#: vrtManager/instance.py:2301
|
||||
#, python-format
|
||||
msgid "%(dev)s does not move: it has a backing file"
|
||||
msgstr "%(dev)s 不能移动:它有后备文件"
|
||||
|
||||
#: vrtManager/instance.py:2270
|
||||
#: vrtManager/instance.py:2304
|
||||
#, python-format
|
||||
msgid "%(pool_name)s is not an active pool of disk files of this host"
|
||||
msgstr "%(pool_name)s 不是此主机上活动的磁盘文件存储池"
|
||||
|
||||
#: vrtManager/instance.py:2273
|
||||
#: vrtManager/instance.py:2307
|
||||
#, python-format
|
||||
msgid "%(dev)s is in pool %(pool_name)s already"
|
||||
msgstr "%(dev)s 已在存储池 %(pool_name)s 中"
|
||||
|
||||
#: vrtManager/instance.py:2277
|
||||
#: vrtManager/instance.py:2311
|
||||
#, python-format
|
||||
msgid "Pool %(pool_name)s already has a file %(name)s"
|
||||
msgstr "存储池 %(pool_name)s 中已有文件 %(name)s"
|
||||
|
||||
#: vrtManager/instance.py:2301
|
||||
#: vrtManager/instance.py:2335
|
||||
#, python-format
|
||||
msgid "The copy of %(dev)s ended before it was complete"
|
||||
msgstr "%(dev)s 的复制在完成前结束"
|
||||
|
||||
#: vrtManager/instance.py:2346
|
||||
#: vrtManager/instance.py:2380
|
||||
#, 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:2348
|
||||
#: vrtManager/instance.py:2382
|
||||
#, 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:2355
|
||||
#: vrtManager/instance.py:2389
|
||||
#, python-format
|
||||
msgid "The VM has no internal snapshot named %(name)s"
|
||||
msgstr "虚拟机没有名为 %(name)s 的内部快照"
|
||||
|
||||
#: vrtManager/instance.py:2366
|
||||
#: vrtManager/instance.py:2400
|
||||
msgid "A snapshot job is still running on this VM; try again when it ends"
|
||||
msgstr "此虚拟机上仍有快照任务在运行;请在其结束后重试"
|
||||
|
||||
#: vrtManager/instance.py:2376
|
||||
#: vrtManager/instance.py:2410
|
||||
msgid "Shut the VM down to revert to an internal snapshot"
|
||||
msgstr "请关闭虚拟机后再还原到内部快照"
|
||||
|
||||
#: vrtManager/instance.py:2463
|
||||
#: vrtManager/instance.py:2497
|
||||
msgid "A VM with a host's or an external TPM is not cloned; remove it first"
|
||||
msgstr "带有主机 TPM 或外部 TPM 的虚拟机无法克隆;请先将其移除"
|
||||
|
||||
#: vrtManager/instance.py:2485
|
||||
#: vrtManager/instance.py:2519
|
||||
msgid "Cannot clone a VM whose NVRAM is not a file"
|
||||
msgstr "NVRAM 不是文件的虚拟机无法克隆"
|
||||
|
||||
#: vrtManager/instance.py:2555
|
||||
#: vrtManager/instance.py:2589
|
||||
#, python-format
|
||||
msgid "Clone failed (%(err)s); remove these copies by hand: %(path)s"
|
||||
msgstr "克隆失败(%(err)s);请手动删除这些副本:%(path)s"
|
||||
|
||||
#: vrtManager/instance.py:2566
|
||||
#: vrtManager/instance.py:2600
|
||||
msgid "Shut the VM down before cloning it"
|
||||
msgstr "请先关闭虚拟机再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2620
|
||||
#: vrtManager/instance.py:2654
|
||||
#, python-format
|
||||
msgid "Clone failed (%(err)s); remove these copies by hand: %(leftovers)s"
|
||||
msgstr "克隆失败(%(err)s);请手动删除这些副本:%(leftovers)s"
|
||||
|
||||
#: vrtManager/instance.py:2631
|
||||
#: vrtManager/instance.py:2665
|
||||
msgid "Live clone needs libvirt 11.10 or later; shut the VM down to clone it"
|
||||
msgstr "在线克隆需要 libvirt 11.10 或更高版本;请关闭虚拟机后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2634
|
||||
#: vrtManager/instance.py:2668
|
||||
msgid "A VM with a TPM is cloned only shut down"
|
||||
msgstr "带 TPM 的虚拟机只能在关机时克隆"
|
||||
|
||||
#: vrtManager/instance.py:2637
|
||||
#: vrtManager/instance.py:2671
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a local file; shut the VM down to clone it"
|
||||
msgstr "磁盘 %(dev)s 不是本地文件;请关闭虚拟机后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2639
|
||||
#: vrtManager/instance.py:2673
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is shareable; shut the VM down to clone it"
|
||||
msgstr "磁盘 %(dev)s 是可共享的;请关闭虚拟机后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2644
|
||||
#: vrtManager/instance.py:2678
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s changes at the next start; shut the VM down to clone it"
|
||||
msgstr "磁盘 %(dev)s 在下次启动时会改变;请关闭虚拟机后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2646
|
||||
#: vrtManager/instance.py:2680
|
||||
msgid "Another job is running on the VM; clone it when that ends"
|
||||
msgstr "虚拟机上有另一个任务正在运行;请在其结束后再克隆"
|
||||
|
||||
#: vrtManager/instance.py:2672
|
||||
#: vrtManager/instance.py:2706
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s has %(free).1f GiB free; the clone needs %(size).1f GiB"
|
||||
|
|
@ -9150,111 +9157,111 @@ msgstr ""
|
|||
"存储池 %(pool)s 可用 %(free).1f GiB;克隆需要 %(size).1f GiB(复制的磁盘,再加其 %(percent)g%%,至少"
|
||||
" %(minimum)g GiB)"
|
||||
|
||||
#: vrtManager/instance.py:2689
|
||||
#: vrtManager/instance.py:2723
|
||||
#, python-format
|
||||
msgid "Volume %(name)s already exists in storage pool %(pool)s"
|
||||
msgstr "卷 %(name)s 已存在于存储池 %(pool)s 中"
|
||||
|
||||
#: vrtManager/instance.py:2843
|
||||
#: vrtManager/instance.py:2877
|
||||
msgid "A network interface that is a host device is removed in the XML editor"
|
||||
msgstr "作为主机设备的网络接口需在 XML 编辑器中删除"
|
||||
|
||||
#: vrtManager/instance.py:2859
|
||||
#: vrtManager/instance.py:2893
|
||||
#, python-format
|
||||
msgid "No network interface with MAC %(old_mac)s"
|
||||
msgstr "没有 MAC 为 %(old_mac)s 的网络接口"
|
||||
|
||||
#: vrtManager/instance.py:2862
|
||||
#: vrtManager/instance.py:2896
|
||||
msgid "A network interface that is a host device is changed in the XML editor"
|
||||
msgstr "作为主机设备的网络接口需在 XML 编辑器中修改"
|
||||
|
||||
#: vrtManager/instance.py:2956
|
||||
#: vrtManager/instance.py:2990
|
||||
msgid ""
|
||||
"A VM changes its PCI devices while it runs, or is shut off without a saved "
|
||||
"state"
|
||||
msgstr "虚拟机只能在运行时或无保存的状态的关机时更改其 PCI 设备"
|
||||
|
||||
#: vrtManager/instance.py:2977
|
||||
#: vrtManager/instance.py:3011
|
||||
#, python-format
|
||||
msgid "%(err)s; whether the VM has %(device)s now is not known"
|
||||
msgstr "%(err)s;虚拟机现在是否有 %(device)s 未知"
|
||||
|
||||
#: vrtManager/instance.py:2979
|
||||
#: vrtManager/instance.py:3013
|
||||
#, 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:2980
|
||||
#: vrtManager/instance.py:3014
|
||||
#, 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:2981
|
||||
#: vrtManager/instance.py:3015
|
||||
#, 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:2982
|
||||
#: vrtManager/instance.py:3016
|
||||
#, 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:2983
|
||||
#: vrtManager/instance.py:3017
|
||||
#, 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:2985
|
||||
#: vrtManager/instance.py:3019
|
||||
#, 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:3019
|
||||
#: vrtManager/instance.py:3053
|
||||
#, python-format
|
||||
msgid "The VM has no PCI device %(address)s"
|
||||
msgstr "虚拟机没有 PCI 设备 %(address)s"
|
||||
|
||||
#: vrtManager/instance.py:3040
|
||||
#: vrtManager/instance.py:3074
|
||||
msgid "The VM has no USB controller"
|
||||
msgstr "虚拟机没有 USB 控制器"
|
||||
|
||||
#: vrtManager/instance.py:3074
|
||||
#: vrtManager/instance.py:3108
|
||||
msgid "The VM has no such USB device"
|
||||
msgstr "虚拟机没有此 USB 设备"
|
||||
|
||||
#: vrtManager/instance.py:3088
|
||||
#: vrtManager/instance.py:3122
|
||||
#, python-format
|
||||
msgid "The VM has no network interface %(mac)s"
|
||||
msgstr "虚拟机没有网络接口 %(mac)s"
|
||||
|
||||
#: vrtManager/instance.py:3119
|
||||
#: vrtManager/instance.py:3153
|
||||
msgid "The VM has its own RNG device: change it in the XML editor"
|
||||
msgstr "虚拟机有自己的 RNG 设备:请在 XML 编辑器中修改"
|
||||
|
||||
#: vrtManager/instance.py:3146
|
||||
#: vrtManager/instance.py:3180
|
||||
msgid "The VM has its own TPM: change it in the XML editor"
|
||||
msgstr "虚拟机有自己的 TPM:请在 XML 编辑器中修改"
|
||||
|
||||
#: vrtManager/instance.py:3165
|
||||
#: vrtManager/instance.py:3199
|
||||
#, python-format
|
||||
msgid "Unknown crash action %(action)s"
|
||||
msgstr "未知的崩溃操作 %(action)s"
|
||||
|
||||
#: vrtManager/instance.py:3192
|
||||
#: vrtManager/instance.py:3226
|
||||
#, python-format
|
||||
msgid "Network interface %(mac)s is not in the definition"
|
||||
msgstr "网络接口 %(mac)s 不在定义中"
|
||||
|
||||
#: vrtManager/instance.py:3283
|
||||
#: vrtManager/instance.py:3317
|
||||
msgid "The guest agent did not answer in time; nothing was changed"
|
||||
msgstr "客户机代理未及时响应;未做任何更改"
|
||||
|
||||
#: vrtManager/instance.py:3286
|
||||
#: vrtManager/instance.py:3320
|
||||
msgid "The VM runs Windows: its guest agent sets no root password or SSH key"
|
||||
msgstr "该虚拟机运行 Windows:其客户机代理不能设置 root 密码或 SSH 密钥"
|
||||
|
||||
|
|
@ -9623,64 +9630,69 @@ msgstr "%(device)s 位于已分配给 %(vms)s 的 PCI 控制器 %(controller)s
|
|||
msgid "%(problems)s"
|
||||
msgstr "%(problems)s"
|
||||
|
||||
#: vrtManager/nwfilters.py:69
|
||||
#: vrtManager/nwfilters.py:47
|
||||
#, python-format
|
||||
msgid "The host has no network filters %(names)s to reference"
|
||||
msgstr "主机上没有可引用的网络过滤器 %(names)s"
|
||||
|
||||
#: vrtManager/nwfilters.py:76
|
||||
msgid "Enter one <filter> element"
|
||||
msgstr "请输入一个 <filter> 元素"
|
||||
|
||||
#: vrtManager/nwfilters.py:71 vrtManager/nwfilters.py:83
|
||||
#: vrtManager/nwfilters.py:78 vrtManager/nwfilters.py:91
|
||||
msgid ""
|
||||
"The filter's name may have letters, digits, dots, dashes and underscores"
|
||||
msgstr "过滤器名称只能包含字母、数字、点、连字符和下划线"
|
||||
|
||||
#: vrtManager/nwfilters.py:74
|
||||
#: vrtManager/nwfilters.py:81
|
||||
msgid "A network filter with this name already exists"
|
||||
msgstr "已存在同名的网络过滤器"
|
||||
|
||||
#: vrtManager/nwfilters.py:76
|
||||
#: vrtManager/nwfilters.py:83
|
||||
msgid "A network filter with this UUID already exists"
|
||||
msgstr "已存在相同 UUID 的网络过滤器"
|
||||
|
||||
#: vrtManager/nwfilters.py:85
|
||||
#: vrtManager/nwfilters.py:93
|
||||
#, python-format
|
||||
msgid "A network filter named %(clone_name)s already exists"
|
||||
msgstr "已存在名为 %(clone_name)s 的网络过滤器"
|
||||
|
||||
#: vrtManager/nwfilters.py:97
|
||||
#: vrtManager/nwfilters.py:105
|
||||
#, python-format
|
||||
msgid "Filter %(name)s is used by VM %(vms)s"
|
||||
msgstr "过滤器 %(name)s 正被虚拟机 %(vms)s 使用"
|
||||
|
||||
#: vrtManager/nwfilters.py:100
|
||||
#: vrtManager/nwfilters.py:108
|
||||
#, python-format
|
||||
msgid "Filter %(name)s is referenced by filter %(referencing)s"
|
||||
msgstr "过滤器 %(name)s 被过滤器 %(referencing)s 引用"
|
||||
|
||||
#: vrtManager/nwfilters.py:166
|
||||
#: vrtManager/nwfilters.py:174
|
||||
msgid "The filter has changed; reload the page and try again"
|
||||
msgstr "过滤器已更改;请重新加载页面后重试"
|
||||
|
||||
#: vrtManager/nwfilters.py:176
|
||||
#: vrtManager/nwfilters.py:184
|
||||
#, python-format
|
||||
msgid "Filter %(name)s was changed meanwhile; reload the page"
|
||||
msgstr "过滤器 %(name)s 在此期间已更改;请重新加载页面"
|
||||
|
||||
#: vrtManager/nwfilters.py:179
|
||||
#: vrtManager/nwfilters.py:187
|
||||
#, python-format
|
||||
msgid "The XML must define filter %(name)s"
|
||||
msgstr "XML 必须定义过滤器 %(name)s"
|
||||
|
||||
#: vrtManager/nwfilters.py:181
|
||||
#: vrtManager/nwfilters.py:189
|
||||
msgid "The XML must keep the filter's UUID"
|
||||
msgstr "XML 必须保留过滤器的 UUID"
|
||||
|
||||
#: vrtManager/nwfilters.py:193
|
||||
#: vrtManager/nwfilters.py:202
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Filter %(name)s cannot be referenced: it is this one, referenced already or "
|
||||
"not on the host"
|
||||
msgstr "无法引用过滤器 %(name)s:它就是本过滤器、已被引用或不在主机上"
|
||||
|
||||
#: vrtManager/nwfilters.py:203
|
||||
#: vrtManager/nwfilters.py:212
|
||||
msgid "Enter one <rule> element"
|
||||
msgstr "请输入一个 <rule> 元素"
|
||||
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ from lxml import etree
|
|||
from vrtManager import util
|
||||
from vrtManager.connection import NVRAM_DIR, wvmConnect
|
||||
from vrtManager.nodedevs import check_hostdevs, pci_address, pci_label, usb_selector, usb_selector_label
|
||||
from vrtManager.nwfilters import same_text
|
||||
from vrtManager.storage import wvmStorage, wvmStorages
|
||||
from vrtManager.virtsecrets import REF_USAGE_TYPES
|
||||
|
||||
|
|
@ -119,6 +120,34 @@ def _rate(before, after, seconds, scale=1):
|
|||
|
||||
|
||||
class wvmInstances(wvmConnect):
|
||||
def nwfilters_unlike(self, source, names):
|
||||
"""Of the network filters named and those they reference: the ones
|
||||
this host does not have, and the ones it has with other rules than
|
||||
source (another connection), each sorted. A VM runs with its host's
|
||||
filters of those names, whatever their rules."""
|
||||
def rules(wvm, name):
|
||||
tree = etree.fromstring(wvm.nwfilterLookupByName(name).XMLDesc(0))
|
||||
for uuid in tree.findall("uuid"): # each host's own
|
||||
tree.remove(uuid)
|
||||
return same_text(etree.tostring(tree, encoding="unicode")), tree.xpath("filterref/@filter")
|
||||
|
||||
if not names: # the hosts are asked only about what the cards name
|
||||
return [], []
|
||||
here = set(self.get_nwfilters())
|
||||
missing, unlike, seen, todo = [], [], set(), list(names)
|
||||
while todo:
|
||||
name = todo.pop()
|
||||
if name in seen:
|
||||
continue
|
||||
seen.add(name)
|
||||
text, refs = rules(source.wvm, name)
|
||||
todo += refs
|
||||
if name not in here:
|
||||
missing.append(name)
|
||||
elif rules(self.wvm, name)[0] != text:
|
||||
unlike.append(name)
|
||||
return sorted(missing), sorted(unlike)
|
||||
|
||||
def moveto(self, conn, name, live, unsafe, offline, autoconverge=False, compress=False, uri=None,
|
||||
pools=None, on_copy=None):
|
||||
"""Migrates the VM of conn (a wvmInstance on the source) here.
|
||||
|
|
@ -178,13 +207,18 @@ class wvmInstances(wvmConnect):
|
|||
# a host device is of the source host: the destination may have none, or another one
|
||||
if any(etree.fromstring(xml).xpath(HOST_DEVICES) for xml in definitions):
|
||||
raise util.OperationError(gettext_noop("A VM with host devices cannot be migrated; remove them first"))
|
||||
networks, filters = self.unknown_networks([etree.fromstring(xml) for xml in definitions])
|
||||
trees = [etree.fromstring(xml) for xml in definitions]
|
||||
networks, _ = self.unknown_networks(trees)
|
||||
if networks:
|
||||
raise util.OperationError(gettext_noop("The destination host does not have these networks of the VM: %(names)s"),
|
||||
names=", ".join(networks))
|
||||
filters, unlike = self.nwfilters_unlike(conn, {name for tree in trees for name in tree.xpath("devices/interface/filterref/@filter")})
|
||||
if filters:
|
||||
raise util.OperationError(gettext_noop("The destination host does not have these network filters of the VM: %(names)s"),
|
||||
names=", ".join(filters))
|
||||
if unlike:
|
||||
raise util.OperationError(gettext_noop("These network filters of the VM have other rules on the destination host: %(names)s"),
|
||||
names=", ".join(unlike))
|
||||
if secrets := self.unknown_secrets([etree.fromstring(xml) for xml in definitions]):
|
||||
raise util.OperationError(gettext_noop("The destination host does not have these secrets of the VM: %(names)s"),
|
||||
names=", ".join(secrets))
|
||||
|
|
|
|||
|
|
@ -40,6 +40,13 @@ class wvmNWFilters(wvmConnect):
|
|||
misspelled port or protocol then matches all traffic."""
|
||||
self.wvm.nwfilterDefineXMLFlags(xml, VIR_NWFILTER_DEFINE_VALIDATE)
|
||||
|
||||
def check_refs(self, tree):
|
||||
"""Refuses references to filters the host does not have, which libvirt
|
||||
accepts: a VM using the filter would then not start."""
|
||||
if missing := sorted(set(tree.xpath("filterref/@filter")) - set(self.get_nwfilters())):
|
||||
raise util.OperationError(gettext_noop("The host has no network filters %(names)s to reference"),
|
||||
names=", ".join(missing))
|
||||
|
||||
def get_nwfilters_info(self):
|
||||
"""Every filter of the host (filter_info), with the filters that
|
||||
reference it, by name: one listing, one XML read per filter."""
|
||||
|
|
@ -74,6 +81,7 @@ class wvmNWFilters(wvmConnect):
|
|||
raise util.OperationError(gettext_noop("A network filter with this name already exists"))
|
||||
if nwfilter.UUIDString() == tree.findtext("uuid"):
|
||||
raise util.OperationError(gettext_noop("A network filter with this UUID already exists"))
|
||||
self.check_refs(tree)
|
||||
self.define(xml)
|
||||
|
||||
def clone_nwfilter(self, name, clone_name):
|
||||
|
|
@ -179,6 +187,7 @@ class wvmNWFilter(wvmNWFilters):
|
|||
raise util.OperationError(gettext_noop("The XML must define filter %(name)s"), name=self.get_name())
|
||||
if tree.findtext("uuid") != self.get_uuid():
|
||||
raise util.OperationError(gettext_noop("The XML must keep the filter's UUID"))
|
||||
self.check_refs(tree)
|
||||
self.define(xml)
|
||||
|
||||
def delete_rule(self, index, text):
|
||||
|
|
|
|||
|
|
@ -124,7 +124,8 @@ class FakePool:
|
|||
class FakeHost:
|
||||
"""The destination's libvirt connection. volumes: the paths its pools
|
||||
list; unlisted: files its pools show after a refresh; networks and
|
||||
nwfilters: the names of its networks and network filters; secrets: the
|
||||
nwfilters: the names of its networks and network filters (nwfilters
|
||||
a list, each an empty filter, or each name's XML); secrets: the
|
||||
UUID, usage type and usage of each of its secrets."""
|
||||
|
||||
def __init__(self, existing=(), volumes=(), unlisted=(), backing=None, inactive_pools=(), pool_types=None,
|
||||
|
|
@ -132,7 +133,7 @@ class FakeHost:
|
|||
self.existing = set(existing)
|
||||
self.secrets = list(secrets)
|
||||
self.networks = list(networks)
|
||||
self.nwfilters = list(nwfilters)
|
||||
self.nwfilters = nwfilters if isinstance(nwfilters, dict) else {name: f"<filter name='{name}'/>" for name in nwfilters}
|
||||
self.defined = []
|
||||
self.new = []
|
||||
self.volumes = set(volumes)
|
||||
|
|
@ -149,7 +150,10 @@ class FakeHost:
|
|||
return []
|
||||
|
||||
def listNWFilters(self):
|
||||
return self.nwfilters
|
||||
return list(self.nwfilters)
|
||||
|
||||
def nwfilterLookupByName(self, name):
|
||||
return MagicMock(**{"XMLDesc.return_value": self.nwfilters[name]})
|
||||
|
||||
def listAllSecrets(self, flags=0):
|
||||
return [MagicMock(**{"UUIDString.return_value": uuid, "XMLDesc.return_value":
|
||||
|
|
@ -181,9 +185,12 @@ class FakeHost:
|
|||
|
||||
|
||||
class FakeSource:
|
||||
def __init__(self, state, nvram=None, **domain):
|
||||
"""The source wvmInstance; nwfilters: its host's filters (FakeHost)."""
|
||||
|
||||
def __init__(self, state, nvram=None, nwfilters=(), **domain):
|
||||
self.state = state
|
||||
self.nvram = nvram
|
||||
self.wvm = FakeHost(nwfilters=nwfilters)
|
||||
self.instance = FakeDomain(**domain)
|
||||
|
||||
def get_nvram(self):
|
||||
|
|
|
|||
|
|
@ -74,13 +74,38 @@ class ShutOffMigrationTestCase(unittest.TestCase):
|
|||
"<filterref filter='clean-traffic'/></interface></devices></domain>")
|
||||
for host, why in ((FakeHost(nwfilters=["clean-traffic"]), "does not have these networks of the VM: lab"),
|
||||
(FakeHost(networks=["lab"]), "does not have these network filters of the VM: clean-traffic")):
|
||||
source = FakeSource(5, xml=card)
|
||||
source = FakeSource(5, xml=card, nwfilters=["clean-traffic"])
|
||||
with self.subTest(why), self.assertRaisesRegex(util.OperationError, why):
|
||||
destination(host).moveto(source, "vm", live=False, unsafe=False, offline=True)
|
||||
self.assertEqual(host.defined, [])
|
||||
self.assertIsNone(source.instance.undefined)
|
||||
host = FakeHost(networks=["lab"], nwfilters=["clean-traffic"])
|
||||
destination(host).moveto(FakeSource(5, xml=card), "vm", live=False, unsafe=False, offline=True)
|
||||
destination(host).moveto(FakeSource(5, xml=card, nwfilters=["clean-traffic"]), "vm", live=False, unsafe=False,
|
||||
offline=True)
|
||||
self.assertEqual(host.defined, [card])
|
||||
|
||||
def test_a_filter_with_other_rules_or_without_its_references_on_the_destination_is_refused(self):
|
||||
# the VM would run with the destination's filter of that name, whatever its rules
|
||||
card = ("<domain><name>vm</name><devices><interface type='bridge'><source bridge='br0'/>"
|
||||
"<filterref filter='web'/></interface></devices></domain>")
|
||||
web = ("<filter name='web' chain='root'><uuid>{}</uuid><filterref filter='base'/>"
|
||||
"<rule action='drop' direction='in' priority='500'><tcp dstportstart='{}'/></rule></filter>")
|
||||
base = "<filter name='base' chain='root'><rule action='drop' direction='in' priority='100'><all/></rule></filter>"
|
||||
source = {"web": web.format("8f2c0000-0000-4000-8000-000000000001", 22), "base": base}
|
||||
for here, why in (({"web": web.format("8f2c0000-0000-4000-8000-000000000002", 22)},
|
||||
"does not have these network filters of the VM: base"),
|
||||
({"web": web.format("8f2c0000-0000-4000-8000-000000000002", 23), "base": base},
|
||||
"have other rules on the destination host: web"),
|
||||
({"web": web.format("8f2c0000-0000-4000-8000-000000000002", 22),
|
||||
"base": base.replace("drop", "accept")}, "have other rules on the destination host: base")):
|
||||
host = FakeHost(nwfilters=here)
|
||||
with self.subTest(why), self.assertRaisesRegex(util.OperationError, why):
|
||||
destination(host).moveto(FakeSource(5, xml=card, nwfilters=source), "vm", live=False, unsafe=False,
|
||||
offline=True)
|
||||
self.assertEqual(host.defined, [])
|
||||
# the same rules: each host's UUID is its own
|
||||
host = FakeHost(nwfilters={"web": web.format("8f2c0000-0000-4000-8000-000000000002", 22), "base": base})
|
||||
destination(host).moveto(FakeSource(5, xml=card, nwfilters=source), "vm", live=False, unsafe=False, offline=True)
|
||||
self.assertEqual(host.defined, [card])
|
||||
|
||||
def test_a_secret_the_destination_does_not_have_is_refused(self):
|
||||
|
|
|
|||
|
|
@ -127,6 +127,16 @@ class IdentityTests(SimpleTestCase):
|
|||
self.assertEqual(clone.xpath("filterref/parameter/@value"), ["192.0.2.10", "192.0.2.11"])
|
||||
self.assertEqual(len(clone.findall("rule")), 2)
|
||||
|
||||
def test_a_reference_to_a_filter_the_host_does_not_have_is_refused(self):
|
||||
# libvirt takes it; a VM using the filter would not start
|
||||
conn = filters(nwfilter("web", WEB))
|
||||
with self.assertRaisesRegex(OperationError, "no network filters absent, gone to reference"):
|
||||
conn.create_nwfilter("<filter name='new'><filterref filter='gone'/><filterref filter='absent'/></filter>")
|
||||
conn = one()
|
||||
with self.assertRaisesRegex(OperationError, "no network filters absent to reference"):
|
||||
conn.edit(WEB.replace("filter='clean-traffic'", "filter='absent'"), digest(conn.get_xml()))
|
||||
conn.wvm.nwfilterDefineXMLFlags.assert_not_called()
|
||||
|
||||
def test_an_edit_is_of_the_same_filter(self):
|
||||
conn = one()
|
||||
for xml, why in ((WEB.replace("name='web'", "name='other'"), "must define filter web"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue