mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
feat(vmbackups): the Backups tab and restore pages for VM owners
A VM owner with the backup permission who may change the VM gets its Backups tab: the targets open to VM owners, the VM's backups on them, Restore as a new VM or over the VM, and Delete for the backups they took; no schedule is shown. Their restore as a new VM names the VM's host and pool instead of asking, and the restore-over page says that the disks the VM runs from are deleted. A superuser opens or closes a target to VM owners on its page.
This commit is contained in:
parent
db4cbf806a
commit
43d25a2759
15 changed files with 500 additions and 300 deletions
|
|
@ -590,6 +590,8 @@ and follow [Moving to a new machine](#moving-to-a-new-machine) with that `b` (le
|
|||
|
||||
Superusers back a VM up from its **Backups** tab into a backup target: a `dir` or `netfs` storage pool made on each host that sees it, added on **Backups → Backup targets** (another host's pool is accepted only when it is the same directory). A running VM keeps running: its disks are copied from one instant, with its file systems frozen for it when the guest agent answers; a shut-off VM's disks are copied as they are. A backup holds the disks, the VM's definition, its UEFI variables, its TPM state and a manifest; a VM with a TPM is backed up shut off. It is restored as a new VM, with its network disconnected unless asked, on a host that has the target's pool; the new VM gets the backed-up VM's TPM state. A backup is also restored over its own shut-off VM (its disks copied as new volumes it is switched to, its UEFI variables and TPM state back to the backup's, the old volumes kept until deleted), or one of its disks as a new volume. After the panel's database is lost, add the target again and use **Read backups from target**.
|
||||
|
||||
Users with the **Can back up instances** permission back up the VMs they may change into targets opened to VM owners on the target's page, restore those backups over the VM (the disks it ran from are then deleted) or as a new VM on the VM's host, within their quota, and delete the backups they took; those count in their backup quota (GiB, with the user's quota).
|
||||
|
||||
VMs with a TPM of their own settings (encryption, a state path), host devices, shared host directories, or encrypted or non-file disks are not backed up; CD-ROMs are left out.
|
||||
|
||||
**Backups → Schedules** backs VMs up every day: chosen VMs or every VM of a compute, into a target, at a time in the panel's time zone (`TZ`), keeping the newest backups of each VM up to a number. The job worker starts each VM's backup within 6 hours of the time, one copy at a time per target, and waits for a host in maintenance; a VM not started in that window waits for the next day. Older backups of a schedule are deleted; backups taken by hand are not. With "A full backup every N backups" above 1, a schedule's backups of a running VM with qcow2 disks between two full ones copy only what changed since the previous one; each is restored like a full one, and a chain of them is deleted once all of it is beyond the number kept. A migration, a restore over the VM or a shut-off VM's backup makes the next one full. Each target is checked once a day: a backup whose files are gone is marked missing.
|
||||
|
|
|
|||
|
|
@ -388,7 +388,9 @@ def _instance_page(request, pk, instance, compute):
|
|||
migrate_refusal = None
|
||||
|
||||
# superusers back VMs up; not a template, which is cloned
|
||||
backups = vm_tab(instance) if request.user.is_superuser and not instance.is_template else None
|
||||
# superusers, and owners with the backup permission who may change the VM
|
||||
may_back_up = request.user.is_superuser or (can_change and request.user.has_perm("instances.backup_instances"))
|
||||
backups = vm_tab(instance, request.user) if may_back_up and not instance.is_template else None
|
||||
|
||||
return render(request, "instance.html", {
|
||||
"instance": instance,
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -76,7 +76,7 @@ msgstr "Geçersiz anahtar"
|
|||
#: networks/templates/network.html:373 nwfilters/templates/nwfilters.html:29
|
||||
#: storages/templates/storage.html:123 virtsecrets/forms.py:34
|
||||
#: virtsecrets/forms.py:36 vmbackups/forms.py:23 vmbackups/forms.py:36
|
||||
#: vmbackups/forms.py:75 vmbackups/templates/vmbackups/policies.html:16
|
||||
#: vmbackups/forms.py:77 vmbackups/templates/vmbackups/policies.html:16
|
||||
#: vmbackups/templates/vmbackups/targets.html:17
|
||||
msgid "Name"
|
||||
msgstr "Ad"
|
||||
|
|
@ -547,7 +547,7 @@ msgstr "Kullanıcıya anahtar ekleme formu"
|
|||
#: instances/templates/create_flavors.html:20
|
||||
#: instances/templates/instances/boot_device.html:17
|
||||
#: networks/templates/network.html:134 nwfilters/templates/nwfilter.html:45
|
||||
#: vmbackups/templates/vmbackups/target.html:59
|
||||
#: vmbackups/templates/vmbackups/target.html:64
|
||||
#: vmbackups/templates/vmbackups/targets.html:40
|
||||
msgid "Add"
|
||||
msgstr "Ekle"
|
||||
|
|
@ -811,7 +811,7 @@ msgstr "Bellek"
|
|||
#: admin/forms.py:213 instances/models.py:240
|
||||
#: instances/templates/create_instance_w2.html:118
|
||||
#: instances/templates/instances/settings_tab.html:25
|
||||
#: instances/templates/instances/stats_tab.html:53 vmbackups/forms.py:53
|
||||
#: instances/templates/instances/stats_tab.html:53 vmbackups/forms.py:55
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:18
|
||||
msgid "Disk"
|
||||
msgstr "Disk"
|
||||
|
|
@ -1005,7 +1005,7 @@ msgid "IP"
|
|||
msgstr "IP"
|
||||
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:395 instances/states.py:19
|
||||
#: instances/views.py:484 logs/views.py:18
|
||||
#: instances/views.py:486 logs/views.py:18
|
||||
msgid "Unknown"
|
||||
msgstr "Bilinmeyen"
|
||||
|
||||
|
|
@ -3209,7 +3209,7 @@ msgstr ""
|
|||
"VNC olarak değiştirin."
|
||||
|
||||
#: instances/api/viewsets.py:157 instances/api/viewsets.py:175
|
||||
#: instances/views.py:858 instances/views.py:880 instances/views.py:1865
|
||||
#: instances/views.py:860 instances/views.py:882 instances/views.py:1867
|
||||
msgid "Templates cannot be started."
|
||||
msgstr "Şablon makineler başlatılamaz."
|
||||
|
||||
|
|
@ -3604,7 +3604,7 @@ msgstr ""
|
|||
msgid "Create VM"
|
||||
msgstr "Sanal makine oluştur"
|
||||
|
||||
#: instances/jobs.py:928 instances/jobs.py:975 instances/views.py:2602
|
||||
#: instances/jobs.py:928 instances/jobs.py:975 instances/views.py:2604
|
||||
msgid "A virtual machine with this name already exists"
|
||||
msgstr "Bu isimde bir sanal makine mevcut"
|
||||
|
||||
|
|
@ -3964,7 +3964,7 @@ msgid "Disk source"
|
|||
msgstr "Disk kaynağı"
|
||||
|
||||
#: instances/templates/add_instance_volume.html:21
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2632
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2634
|
||||
msgid "New disk"
|
||||
msgstr "Yeni disk"
|
||||
|
||||
|
|
@ -3986,7 +3986,7 @@ msgstr "Sunucunun bir havuzunda zaten bulunan bir birim."
|
|||
#: instances/templates/create_instance_w2.html:165
|
||||
#: instances/templates/instances/move_disk.html:16
|
||||
#: instances/templates/instances/settings_tab.html:223 vmbackups/forms.py:14
|
||||
#: vmbackups/forms.py:55
|
||||
#: vmbackups/forms.py:57
|
||||
msgid "Storage pool"
|
||||
msgstr "Depolama havuzu"
|
||||
|
||||
|
|
@ -4365,7 +4365,7 @@ msgstr "Özel CPU modelleri"
|
|||
msgid "Size (GiB)"
|
||||
msgstr "Boyut (GiB)"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2633
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2635
|
||||
msgid "Existing volumes"
|
||||
msgstr "Mevcut birimler"
|
||||
|
||||
|
|
@ -4398,11 +4398,11 @@ msgstr "Aygıt"
|
|||
#: instances/templates/instances/boot_device.html:14
|
||||
#: instances/templates/instances/settings_tab.html:685
|
||||
#: networks/templates/network.html:304
|
||||
#: vmbackups/templates/vmbackups/target.html:33
|
||||
#: vmbackups/templates/vmbackups/target.html:38
|
||||
msgid "Remove"
|
||||
msgstr "Kaldır"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2634
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2636
|
||||
msgid "Clone from template"
|
||||
msgstr "Şablondan klonla"
|
||||
|
||||
|
|
@ -6775,16 +6775,16 @@ msgstr ""
|
|||
"Sunucu aygıtları olan bir sanal makine taşınamaz: hedefte bu aygıtlar "
|
||||
"olmayabilir. Önce onları kaldırın."
|
||||
|
||||
#: instances/views.py:629
|
||||
#: instances/views.py:631
|
||||
#, 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:704 instances/views.py:705
|
||||
#: instances/views.py:706 instances/views.py:707
|
||||
msgid "The VM was moved meanwhile; try again."
|
||||
msgstr "Sanal makine bu arada taşındı; yeniden deneyin."
|
||||
|
||||
#: instances/views.py:821
|
||||
#: instances/views.py:823
|
||||
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 "
|
||||
|
|
@ -6797,7 +6797,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:825
|
||||
#: instances/views.py:827
|
||||
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"
|
||||
|
|
@ -6809,195 +6809,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:843
|
||||
#: instances/views.py:845
|
||||
#, python-format
|
||||
msgid "Invalid disk options: %(options)s"
|
||||
msgstr "Geçersiz disk seçenekleri: %(options)s"
|
||||
|
||||
#: instances/views.py:855 instances/views.py:950
|
||||
#: instances/views.py:857 instances/views.py:952
|
||||
#, python-format
|
||||
msgid "Invalid options: %(options)s"
|
||||
msgstr "Geçersiz seçenekler: %(options)s"
|
||||
|
||||
#: instances/views.py:890
|
||||
#: instances/views.py:892
|
||||
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:1078
|
||||
#: instances/views.py:1080
|
||||
#, 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:1085 instances/views.py:1103 instances/views.py:1112
|
||||
#: instances/views.py:1087 instances/views.py:1105 instances/views.py:1114
|
||||
#, python-format
|
||||
msgid "gstfsd error: %(err)s"
|
||||
msgstr "gstfsd hatası: %(err)s"
|
||||
|
||||
#: instances/views.py:1113
|
||||
#: instances/views.py:1115
|
||||
msgid "the reply is not signed with the key"
|
||||
msgstr "yanıt anahtarla imzalanmamış"
|
||||
|
||||
#: instances/views.py:1121
|
||||
#: instances/views.py:1123
|
||||
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:1129
|
||||
#: instances/views.py:1131
|
||||
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:1144
|
||||
#: instances/views.py:1146
|
||||
msgid "Enter a password"
|
||||
msgstr "Bir parola girin"
|
||||
|
||||
#: instances/views.py:1149
|
||||
#: instances/views.py:1151
|
||||
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:1165
|
||||
#: instances/views.py:1167
|
||||
msgid "Reset root password"
|
||||
msgstr "Root parolasını sıfırla"
|
||||
|
||||
#: instances/views.py:1181
|
||||
#: instances/views.py:1183
|
||||
msgid "Select an SSH public key"
|
||||
msgstr "Bir SSH açık anahtarı seçin"
|
||||
|
||||
#: instances/views.py:1203
|
||||
#: instances/views.py:1205
|
||||
#, python-format
|
||||
msgid "Installed new SSH public key %(keyname)s"
|
||||
msgstr "Yeni %(keyname)s SSH açık anahtarı yüklendi"
|
||||
|
||||
#: instances/views.py:1223
|
||||
#: instances/views.py:1225
|
||||
msgid "Enter a whole number of vCPUs"
|
||||
msgstr "vCPU sayısı için bir tam sayı girin"
|
||||
|
||||
#: instances/views.py:1227
|
||||
#: instances/views.py:1229
|
||||
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:1230
|
||||
#: instances/views.py:1232
|
||||
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:1237
|
||||
#: instances/views.py:1239
|
||||
#, 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:1245
|
||||
#: instances/views.py:1247
|
||||
#, 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:1264
|
||||
#: instances/views.py:1266
|
||||
msgid "Enter a whole number for memory"
|
||||
msgstr "Bellek için bir tam sayı girin"
|
||||
|
||||
#: instances/views.py:1267
|
||||
#: instances/views.py:1269
|
||||
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:1271
|
||||
#: instances/views.py:1273
|
||||
#, 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:1277
|
||||
#: instances/views.py:1279
|
||||
#, 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:1297
|
||||
#: instances/views.py:1299
|
||||
msgid "Enter disk sizes as whole GiB"
|
||||
msgstr "Disk boyutlarını tam GiB olarak girin"
|
||||
|
||||
#: instances/views.py:1301
|
||||
#: instances/views.py:1303
|
||||
#, 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:1305
|
||||
#: instances/views.py:1307
|
||||
#, 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:1313
|
||||
#: instances/views.py:1315
|
||||
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:1322
|
||||
#: instances/views.py:1324
|
||||
#, 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:1334
|
||||
#: instances/views.py:1336
|
||||
#, 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:1336
|
||||
#: instances/views.py:1338
|
||||
#, python-format
|
||||
msgid "Disk is resized: %(dev)s"
|
||||
msgstr "Disk boyutu değiştirildi: %(dev)s"
|
||||
|
||||
#: instances/views.py:1430
|
||||
#: instances/views.py:1432
|
||||
msgid "The VM's machine has no PCIe slots to add"
|
||||
msgstr "Sanal makinenin makine tipinde eklenecek PCIe yuvası yok"
|
||||
|
||||
#: instances/views.py:1435
|
||||
#: instances/views.py:1437
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added"
|
||||
msgstr "%(count)s PCIe yuvası eklendi"
|
||||
|
||||
#: instances/views.py:1437
|
||||
#: instances/views.py:1439
|
||||
#, 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:1483
|
||||
#: instances/views.py:1485
|
||||
#, python-format
|
||||
msgid "%(volume)s is already a disk of this VM"
|
||||
msgstr "%(volume)s zaten bu sanal makinenin bir diski"
|
||||
|
||||
#: instances/views.py:1573
|
||||
#: instances/views.py:1575
|
||||
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:1578
|
||||
#: instances/views.py:1580
|
||||
msgid "Volume is changed successfully."
|
||||
msgstr "Birim başarıyla değiştirildi."
|
||||
|
||||
#: instances/views.py:1598
|
||||
#: instances/views.py:1600
|
||||
#, 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:1603 vrtManager/instance.py:2493
|
||||
#: instances/views.py:1605 vrtManager/instance.py:2493
|
||||
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:1609
|
||||
#: instances/views.py:1611
|
||||
#, 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:1624
|
||||
#: instances/views.py:1626
|
||||
#, 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:1642
|
||||
#: instances/views.py:1644
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete "
|
||||
|
|
@ -7006,66 +7006,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:1653
|
||||
#: instances/views.py:1655
|
||||
#, 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:1681
|
||||
#: instances/views.py:1683
|
||||
#, 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:1684
|
||||
#: instances/views.py:1686
|
||||
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:1689
|
||||
#: instances/views.py:1691
|
||||
#, 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:1770
|
||||
#: instances/views.py:1772
|
||||
#, python-format
|
||||
msgid "Pool %(pool)s was not read again: %(err)s"
|
||||
msgstr "%(pool)s havuzu yeniden okunamadı: %(err)s"
|
||||
|
||||
#: instances/views.py:1791
|
||||
#: instances/views.py:1793
|
||||
#, python-format
|
||||
msgid "Snapshot was not deleted: %(err)s"
|
||||
msgstr "Anlık görüntü silinmedi: %(err)s"
|
||||
|
||||
#: instances/views.py:1910
|
||||
#: instances/views.py:1912
|
||||
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:1916 vrtManager/instance.py:1263
|
||||
#: instances/views.py:1918 vrtManager/instance.py:1263
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "Ön yükleme sırası için geçersiz aygıt türü"
|
||||
|
||||
#: instances/views.py:1927
|
||||
#: instances/views.py:1929
|
||||
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:1929
|
||||
#: instances/views.py:1931
|
||||
msgid "Boot order changed successfully."
|
||||
msgstr "Ön yükleme sırası başarıyla değiştirildi."
|
||||
|
||||
#: instances/views.py:1949
|
||||
#: instances/views.py:1951
|
||||
msgid "The XML is empty"
|
||||
msgstr "XML boş"
|
||||
|
||||
#: instances/views.py:1953 instances/views.py:2614
|
||||
#: instances/views.py:1955 instances/views.py:2616
|
||||
#, python-format
|
||||
msgid "The XML is not well-formed: %(error)s"
|
||||
msgstr "XML düzgün biçimlendirilmemiş: %(error)s"
|
||||
|
||||
#: instances/views.py:1955
|
||||
#: instances/views.py:1957
|
||||
#, 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:1959
|
||||
#: instances/views.py:1961
|
||||
msgid ""
|
||||
"The definition has changed since the editor was opened. Reload the page to "
|
||||
"edit the current one."
|
||||
|
|
@ -7073,45 +7073,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:1975
|
||||
#: instances/views.py:1977
|
||||
msgid "The XML definition was saved."
|
||||
msgstr "XML tanımı kaydedildi."
|
||||
|
||||
#: instances/views.py:1977
|
||||
#: instances/views.py:1979
|
||||
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:2058
|
||||
#: instances/views.py:2060
|
||||
msgid "Select one network interface to change"
|
||||
msgstr "Değiştirilecek bir ağ arabirimi seçin"
|
||||
|
||||
#: instances/views.py:2072
|
||||
#: instances/views.py:2074
|
||||
#, 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:2102
|
||||
#: instances/views.py:2104
|
||||
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:2104
|
||||
#: instances/views.py:2106
|
||||
msgid "Network device changed"
|
||||
msgstr "Ağ aygıtı değiştirildi"
|
||||
|
||||
#: instances/views.py:2116
|
||||
#: instances/views.py:2118
|
||||
msgid "No network selected"
|
||||
msgstr "Ağ seçilmedi"
|
||||
|
||||
#: instances/views.py:2121
|
||||
#: instances/views.py:2123
|
||||
#, 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:2140
|
||||
#: instances/views.py:2142
|
||||
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 "
|
||||
|
|
@ -7121,21 +7121,21 @@ msgstr ""
|
|||
"aygıtı sonra ekleyin; Diskler sekmesindeki PCIe yuvaları ekle, sonraki "
|
||||
"başlatmadan itibaren ona boş yuvalar verir."
|
||||
|
||||
#: instances/views.py:2186 instances/views.py:2192
|
||||
#: instances/views.py:2188 instances/views.py:2194
|
||||
msgid "The VM has it"
|
||||
msgstr "Sanal makinede var"
|
||||
|
||||
#: instances/views.py:2227
|
||||
#: instances/views.py:2229
|
||||
#, 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:2248
|
||||
#: instances/views.py:2250
|
||||
#, python-format
|
||||
msgid "The host has no PCI device %(device)s"
|
||||
msgstr "Sunucuda %(device)s PCI aygıtı yok"
|
||||
|
||||
#: instances/views.py:2266
|
||||
#: instances/views.py:2268
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Removal of PCI device %(address)s requested: the guest has not let it go yet;"
|
||||
|
|
@ -7145,20 +7145,20 @@ msgstr ""
|
|||
"bırakmadı; bırakana ya da sanal makine durana kadar çalışan sanal makinede "
|
||||
"kalır."
|
||||
|
||||
#: instances/views.py:2311 instances/views.py:2341
|
||||
#: instances/views.py:2313 instances/views.py:2343
|
||||
msgid "Select a network interface and a QoS direction"
|
||||
msgstr "Bir ağ arabirimi ve bir QoS yönü seçin"
|
||||
|
||||
#: instances/views.py:2314 vrtManager/network.py:470
|
||||
#: instances/views.py:2316 vrtManager/network.py:470
|
||||
msgid "QoS rates must be whole numbers"
|
||||
msgstr "QoS hızları tam sayı olmalıdır"
|
||||
|
||||
#: instances/views.py:2321 networks/views.py:235
|
||||
#: instances/views.py:2323 networks/views.py:235
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is set"
|
||||
msgstr "%(qos_dir)s QoS ayarlandı"
|
||||
|
||||
#: instances/views.py:2326
|
||||
#: instances/views.py:2328
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on."
|
||||
|
|
@ -7166,12 +7166,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:2348 networks/views.py:261
|
||||
#: instances/views.py:2350 networks/views.py:261
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is deleted"
|
||||
msgstr "%(qos_dir)s QoS silindi"
|
||||
|
||||
#: instances/views.py:2353
|
||||
#: instances/views.py:2355
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is "
|
||||
|
|
@ -7180,21 +7180,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:2381
|
||||
#: instances/views.py:2383
|
||||
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:2383
|
||||
#: instances/views.py:2385
|
||||
#, python-format
|
||||
msgid "%(user)s is already an owner"
|
||||
msgstr "%(user)s zaten bir sahip"
|
||||
|
||||
#: instances/views.py:2428
|
||||
#: instances/views.py:2430
|
||||
#, python-format
|
||||
msgid "Console settings were not saved: %(errors)s"
|
||||
msgstr "Konsol ayarları kaydedilmedi: %(errors)s"
|
||||
|
||||
#: instances/views.py:2450
|
||||
#: instances/views.py:2452
|
||||
msgid ""
|
||||
"Error setting console password. You should check that your instance have an "
|
||||
"graphic device."
|
||||
|
|
@ -7202,37 +7202,37 @@ msgstr ""
|
|||
"Konsol parolası ayarlanırken hata oluştu. Sanal makinenin bir grafik aygıtına"
|
||||
" sahip olduğundan emin olunuz."
|
||||
|
||||
#: instances/views.py:2497
|
||||
#: instances/views.py:2499
|
||||
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:2503
|
||||
#: instances/views.py:2505
|
||||
#, python-format
|
||||
msgid "%(quota)s: '%(instance_name)s' stays a template."
|
||||
msgstr "%(quota)s: '%(instance_name)s' şablon olarak kalıyor."
|
||||
|
||||
#: instances/views.py:2600
|
||||
#: instances/views.py:2602
|
||||
msgid "The XML has no name"
|
||||
msgstr "XML'de ad yok"
|
||||
|
||||
#: instances/views.py:2618 webvirtcloud/middleware.py:157
|
||||
#: instances/views.py:2620 webvirtcloud/middleware.py:157
|
||||
#, python-format
|
||||
msgid "libvirt Error - %(exception)s"
|
||||
msgstr "libvirt Hatası - %(exception)s"
|
||||
|
||||
#: instances/views.py:2632
|
||||
#: instances/views.py:2634
|
||||
msgid "An empty disk of the size you set"
|
||||
msgstr "Belirlediğiniz boyutta boş bir disk"
|
||||
|
||||
#: instances/views.py:2633
|
||||
#: instances/views.py:2635
|
||||
msgid "Volumes already in a pool"
|
||||
msgstr "Bir havuzda zaten bulunan birimler"
|
||||
|
||||
#: instances/views.py:2634
|
||||
#: instances/views.py:2636
|
||||
msgid "A copy of a template volume"
|
||||
msgstr "Bir şablon biriminin kopyası"
|
||||
|
||||
#: instances/views.py:2724
|
||||
#: instances/views.py:2726
|
||||
msgid ""
|
||||
"This host has no running storage pool for the VM's disks: add or start one on"
|
||||
" its Storage page."
|
||||
|
|
@ -7240,29 +7240,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:2726
|
||||
#: instances/views.py:2728
|
||||
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:2758
|
||||
#: instances/views.py:2760
|
||||
#, 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:2787
|
||||
#: instances/views.py:2789
|
||||
msgid "Flavor Created"
|
||||
msgstr "Flavor Oluşturuldu"
|
||||
|
||||
#: instances/views.py:2795
|
||||
#: instances/views.py:2797
|
||||
msgid "Create Flavor"
|
||||
msgstr "Kullanıcı Oluştur"
|
||||
|
||||
#: instances/views.py:2807
|
||||
#: instances/views.py:2809
|
||||
msgid "Flavor Deleted"
|
||||
msgstr "Flavor Silindi"
|
||||
|
||||
#: instances/views.py:2813
|
||||
#: instances/views.py:2815
|
||||
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ı"
|
||||
|
|
@ -9759,7 +9759,7 @@ msgstr ""
|
|||
"Eski değerin yerini hemen alır; bir parolanın şifrelediği veriler yeniden "
|
||||
"şifrelenmez."
|
||||
|
||||
#: vmbackups/forms.py:13 vmbackups/forms.py:37 vmbackups/forms.py:54
|
||||
#: vmbackups/forms.py:13 vmbackups/forms.py:37 vmbackups/forms.py:56
|
||||
msgid "Compute"
|
||||
msgstr "Sunucu"
|
||||
|
||||
|
|
@ -9787,43 +9787,43 @@ msgstr ""
|
|||
msgid "Start after restore"
|
||||
msgstr "Geri yüklendikten sonra başlat"
|
||||
|
||||
#: vmbackups/forms.py:56
|
||||
#: vmbackups/forms.py:58
|
||||
msgid "Volume name"
|
||||
msgstr "Birim adı"
|
||||
|
||||
#: vmbackups/forms.py:75 vmbackups/templates/vmbackups/vm_tab.html:13
|
||||
#: vmbackups/forms.py:77 vmbackups/templates/vmbackups/vm_tab.html:13
|
||||
msgid "Backup target"
|
||||
msgstr "Yedek hedefi"
|
||||
|
||||
#: vmbackups/forms.py:75
|
||||
#: vmbackups/forms.py:77
|
||||
msgid "Every VM of a compute"
|
||||
msgstr "Bir sunucunun bütün sanal makineleri"
|
||||
|
||||
#: vmbackups/forms.py:76
|
||||
#: vmbackups/forms.py:78
|
||||
msgid "Or these VMs"
|
||||
msgstr "Ya da bu sanal makineler"
|
||||
|
||||
#: vmbackups/forms.py:76 vmbackups/templates/vmbackups/policies.html:16
|
||||
#: vmbackups/forms.py:78 vmbackups/templates/vmbackups/policies.html:16
|
||||
msgid "Daily at"
|
||||
msgstr "Her gün saat"
|
||||
|
||||
#: vmbackups/forms.py:76
|
||||
#: vmbackups/forms.py:78
|
||||
msgid "Backups to keep of each VM"
|
||||
msgstr "Her sanal makineden tutulacak yedek sayısı"
|
||||
|
||||
#: vmbackups/forms.py:77
|
||||
#: vmbackups/forms.py:79
|
||||
msgid "A full backup every N backups"
|
||||
msgstr "Her N yedekte bir tam yedek"
|
||||
|
||||
#: vmbackups/forms.py:78 vmbackups/templates/vmbackups/vm_tab.html:21
|
||||
#: vmbackups/forms.py:80 vmbackups/templates/vmbackups/vm_tab.html:21
|
||||
msgid "Require frozen file systems"
|
||||
msgstr "Dosya sistemlerinin dondurulmasını zorunlu kıl"
|
||||
|
||||
#: vmbackups/forms.py:78 vmbackups/templates/vmbackups/policies.html:27
|
||||
#: vmbackups/forms.py:80 vmbackups/templates/vmbackups/policies.html:27
|
||||
msgid "Enabled"
|
||||
msgstr "Etkin"
|
||||
|
||||
#: vmbackups/forms.py:90
|
||||
#: vmbackups/forms.py:92
|
||||
msgid ""
|
||||
"1: every backup is full. Above 1, the backups between copy only what changed "
|
||||
"(running VMs with qcow2 disks)."
|
||||
|
|
@ -9831,16 +9831,16 @@ msgstr ""
|
|||
"1: her yedek tamdır. 1'den büyükse aradaki yedekler yalnızca değişenleri "
|
||||
"kopyalar (qcow2 diskli, çalışan VM'ler)."
|
||||
|
||||
#: vmbackups/forms.py:97
|
||||
#: vmbackups/forms.py:99
|
||||
msgid "Choose a compute or VMs, not both"
|
||||
msgstr "Bir sunucu ya da sanal makineler seçin, ikisini birden değil"
|
||||
|
||||
#: vmbackups/forms.py:102 vmbackups/jobs.py:106
|
||||
#: vmbackups/forms.py:104 vmbackups/jobs.py:106
|
||||
#, python-format
|
||||
msgid "Backup target %(target)s has no storage pool on %(compute)s"
|
||||
msgstr "%(target)s yedek hedefinin %(compute)s üzerinde depolama havuzu yok"
|
||||
|
||||
#: vmbackups/forms.py:109
|
||||
#: vmbackups/forms.py:111
|
||||
msgid "Keep one backup at least"
|
||||
msgstr "En az bir yedek tutun"
|
||||
|
||||
|
|
@ -10158,7 +10158,7 @@ msgstr ""
|
|||
msgid "The disk was not restored"
|
||||
msgstr "Disk geri yüklenmedi"
|
||||
|
||||
#: vmbackups/jobs.py:1239 vmbackups/templates/vmbackups/target.html:18
|
||||
#: vmbackups/jobs.py:1239 vmbackups/templates/vmbackups/target.html:23
|
||||
msgid "Read backups from target"
|
||||
msgstr "Yedekleri hedeften oku"
|
||||
|
||||
|
|
@ -10214,7 +10214,7 @@ msgstr "Artımlı"
|
|||
|
||||
#: vmbackups/templates/vmbackups/delete_form.html:4
|
||||
#: vmbackups/templates/vmbackups/restore.html:9
|
||||
#: vmbackups/templates/vmbackups/restore.html:18
|
||||
#: vmbackups/templates/vmbackups/restore.html:19
|
||||
#: vmbackups/templates/vmbackups/restore_disk.html:18
|
||||
msgid "Restore"
|
||||
msgstr "Geri yükle"
|
||||
|
|
@ -10400,6 +10400,15 @@ msgstr ""
|
|||
"%(vm)s sanal makinesinin %(time)s tarihli, %(target)s hedefindeki yedeği "
|
||||
"kendi UUID'si ve MAC adresleriyle yeni bir sanal makine olarak geri yüklenir."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore.html:17
|
||||
#, python-format
|
||||
msgid ""
|
||||
"On %(compute)s, in storage pool %(pool)s: the VM's host and the pool of its "
|
||||
"first disk."
|
||||
msgstr ""
|
||||
"%(compute)s üzerinde, %(pool)s depolama havuzunda: VM'in sunucusu ve ilk "
|
||||
"diskinin havuzu."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_disk.html:7
|
||||
#: vmbackups/templates/vmbackups/restore_disk.html:9
|
||||
msgid "Restore one disk"
|
||||
|
|
@ -10416,7 +10425,7 @@ msgstr ""
|
|||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:6
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:8
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:33
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:34
|
||||
msgid "Restore over the VM"
|
||||
msgstr "VM'in üzerine geri yükle"
|
||||
|
||||
|
|
@ -10440,14 +10449,20 @@ msgid "The old volumes stay in their pools until you delete them."
|
|||
msgstr "Eski birimler siz silene kadar havuzlarında kalır."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:27
|
||||
msgid ""
|
||||
"The disks the VM runs from now are deleted once it is switched to the new "
|
||||
"ones."
|
||||
msgstr "VM yeni disklere geçirilince şu an çalıştığı diskler silinir."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:28
|
||||
msgid "The UEFI variables return to the backup's."
|
||||
msgstr "UEFI değişkenleri yedekteki haline döner."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:28
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:29
|
||||
msgid "The TPM state returns to the backup's."
|
||||
msgstr "TPM durumu yedekteki haline döner."
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:33
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:34
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Restore the backup over %(vm)s? What the VM wrote since the backup is no "
|
||||
|
|
@ -10467,7 +10482,23 @@ msgid_plural "%(counter)s backups."
|
|||
msgstr[0] "%(counter)s yedek."
|
||||
msgstr[1] "%(counter)s yedek."
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:18
|
||||
#: vmbackups/templates/vmbackups/target.html:14
|
||||
msgid "VM owners with the backup permission may use it."
|
||||
msgstr "Yedekleme izni olan VM sahipleri kullanabilir."
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:14
|
||||
msgid "Only superusers use it."
|
||||
msgstr "Yalnızca süper kullanıcılar kullanır."
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:17
|
||||
msgid "Close to VM owners"
|
||||
msgstr "VM sahiplerine kapat"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:17
|
||||
msgid "Open to VM owners"
|
||||
msgstr "VM sahiplerine aç"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:23
|
||||
msgid ""
|
||||
"Adds the backups whose manifest is in the target and that the panel does not "
|
||||
"list, as after its database was lost."
|
||||
|
|
@ -10475,14 +10506,14 @@ msgstr ""
|
|||
"Manifestosu hedefte olup panelin listelemediği yedekleri ekler; örneğin "
|
||||
"panelin veritabanı kaybolduktan sonra."
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:33
|
||||
#: vmbackups/templates/vmbackups/target.html:38
|
||||
msgid ""
|
||||
"Remove this storage pool from the target? The pool and its files stay on the "
|
||||
"host."
|
||||
msgstr ""
|
||||
"Bu depolama havuzu hedeften çıkarılsın mı? Havuz ve dosyaları sunucuda kalır."
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:43
|
||||
#: vmbackups/templates/vmbackups/target.html:48
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The target is inside storage pool %(pool)s: its backups are lost with that "
|
||||
|
|
@ -10491,11 +10522,11 @@ msgstr ""
|
|||
"Hedef %(pool)s depolama havuzunun içinde: o depolama kaybolursa yedekler de "
|
||||
"kaybolur."
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:53
|
||||
#: vmbackups/templates/vmbackups/target.html:58
|
||||
msgid "Add a compute's storage pool"
|
||||
msgstr "Bir sunucunun depolama havuzunu ekle"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:55
|
||||
#: vmbackups/templates/vmbackups/target.html:60
|
||||
msgid ""
|
||||
"The pool must be the same directory as the target's other pools, as an NFS "
|
||||
"share mounted on each host."
|
||||
|
|
@ -10503,11 +10534,11 @@ msgstr ""
|
|||
"Havuz, hedefin diğer havuzlarıyla aynı dizin olmalıdır; örneğin her sunucuya "
|
||||
"bağlanmış bir NFS paylaşımı."
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:68
|
||||
#: vmbackups/templates/vmbackups/target.html:73
|
||||
msgid "Delete this backup target? Its storage pools stay on the hosts."
|
||||
msgstr "Bu yedek hedefi silinsin mi? Depolama havuzları sunucularda kalır."
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:68
|
||||
#: vmbackups/templates/vmbackups/target.html:73
|
||||
msgid "Delete target"
|
||||
msgstr "Hedefi sil"
|
||||
|
||||
|
|
@ -10572,22 +10603,29 @@ msgid ""
|
|||
msgstr ""
|
||||
"%(pool)s depolama havuzu %(target)s yedek hedefidir; önce hedeften çıkarın"
|
||||
|
||||
#: vmbackups/utils.py:50
|
||||
#: vmbackups/utils.py:56
|
||||
msgid ""
|
||||
"No backup target open to VM owners has a storage pool on this VM's host."
|
||||
msgstr ""
|
||||
"VM sahiplerine açık hiçbir yedek hedefinin bu VM'in sunucusunda depolama "
|
||||
"havuzu yok."
|
||||
|
||||
#: vmbackups/utils.py:57
|
||||
msgid "No backup target has a storage pool on this VM's host."
|
||||
msgstr ""
|
||||
"Hiçbir yedek hedefinin bu sanal makinenin sunucusunda depolama havuzu yok."
|
||||
|
||||
#: vmbackups/views.py:69 vmbackups/views.py:90
|
||||
#: vmbackups/views.py:82 vmbackups/views.py:108
|
||||
#, python-format
|
||||
msgid "Backup target %(target)s has backups; delete them first"
|
||||
msgstr "%(target)s yedek hedefinde yedekler var; önce onları silin"
|
||||
|
||||
#: vmbackups/views.py:72
|
||||
#: vmbackups/views.py:85
|
||||
#, python-format
|
||||
msgid "Backup target %(target)s has schedules; delete them first"
|
||||
msgstr "%(target)s yedek hedefinin zamanlamaları var; önce onları silin"
|
||||
|
||||
#: vmbackups/views.py:107
|
||||
#: vmbackups/views.py:125
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s of %(compute)s is not the same directory as storage "
|
||||
|
|
@ -10596,7 +10634,7 @@ msgstr ""
|
|||
"%(compute)s sunucusunun %(pool)s depolama havuzu, %(other_compute)s "
|
||||
"sunucusunun %(other)s depolama havuzuyla aynı dizin değil"
|
||||
|
||||
#: vmbackups/views.py:139
|
||||
#: vmbackups/views.py:161
|
||||
msgid "Choose a backup target"
|
||||
msgstr "Bir yedek hedefi seçin"
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -73,7 +73,7 @@ msgstr "无效的密钥"
|
|||
#: networks/templates/network.html:373 nwfilters/templates/nwfilters.html:29
|
||||
#: storages/templates/storage.html:123 virtsecrets/forms.py:34
|
||||
#: virtsecrets/forms.py:36 vmbackups/forms.py:23 vmbackups/forms.py:36
|
||||
#: vmbackups/forms.py:75 vmbackups/templates/vmbackups/policies.html:16
|
||||
#: vmbackups/forms.py:77 vmbackups/templates/vmbackups/policies.html:16
|
||||
#: vmbackups/templates/vmbackups/targets.html:17
|
||||
msgid "Name"
|
||||
msgstr "名称"
|
||||
|
|
@ -539,7 +539,7 @@ msgstr "为用户添加密钥表单"
|
|||
#: instances/templates/create_flavors.html:20
|
||||
#: instances/templates/instances/boot_device.html:17
|
||||
#: networks/templates/network.html:134 nwfilters/templates/nwfilter.html:45
|
||||
#: vmbackups/templates/vmbackups/target.html:59
|
||||
#: vmbackups/templates/vmbackups/target.html:64
|
||||
#: vmbackups/templates/vmbackups/targets.html:40
|
||||
msgid "Add"
|
||||
msgstr "添加"
|
||||
|
|
@ -785,7 +785,7 @@ msgstr "内存"
|
|||
#: admin/forms.py:213 instances/models.py:240
|
||||
#: instances/templates/create_instance_w2.html:118
|
||||
#: instances/templates/instances/settings_tab.html:25
|
||||
#: instances/templates/instances/stats_tab.html:53 vmbackups/forms.py:53
|
||||
#: instances/templates/instances/stats_tab.html:53 vmbackups/forms.py:55
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:18
|
||||
msgid "Disk"
|
||||
msgstr "磁盘"
|
||||
|
|
@ -977,7 +977,7 @@ msgid "IP"
|
|||
msgstr "IP"
|
||||
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:395 instances/states.py:19
|
||||
#: instances/views.py:484 logs/views.py:18
|
||||
#: instances/views.py:486 logs/views.py:18
|
||||
msgid "Unknown"
|
||||
msgstr "未知"
|
||||
|
||||
|
|
@ -3057,7 +3057,7 @@ msgid ""
|
|||
msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。"
|
||||
|
||||
#: instances/api/viewsets.py:157 instances/api/viewsets.py:175
|
||||
#: instances/views.py:858 instances/views.py:880 instances/views.py:1865
|
||||
#: instances/views.py:860 instances/views.py:882 instances/views.py:1867
|
||||
msgid "Templates cannot be started."
|
||||
msgstr "模板无法启动。"
|
||||
|
||||
|
|
@ -3414,7 +3414,7 @@ msgstr "磁盘缓存 %(cache)s 与设置中的原生 (native) 磁盘 I/O 不兼
|
|||
msgid "Create VM"
|
||||
msgstr "创建虚拟机"
|
||||
|
||||
#: instances/jobs.py:928 instances/jobs.py:975 instances/views.py:2602
|
||||
#: instances/jobs.py:928 instances/jobs.py:975 instances/views.py:2604
|
||||
msgid "A virtual machine with this name already exists"
|
||||
msgstr "同名虚拟机已存在"
|
||||
|
||||
|
|
@ -3762,7 +3762,7 @@ msgid "Disk source"
|
|||
msgstr "磁盘来源"
|
||||
|
||||
#: instances/templates/add_instance_volume.html:21
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2632
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2634
|
||||
msgid "New disk"
|
||||
msgstr "新磁盘"
|
||||
|
||||
|
|
@ -3784,7 +3784,7 @@ msgstr "主机存储池中已有的卷。"
|
|||
#: instances/templates/create_instance_w2.html:165
|
||||
#: instances/templates/instances/move_disk.html:16
|
||||
#: instances/templates/instances/settings_tab.html:223 vmbackups/forms.py:14
|
||||
#: vmbackups/forms.py:55
|
||||
#: vmbackups/forms.py:57
|
||||
msgid "Storage pool"
|
||||
msgstr "存储池"
|
||||
|
||||
|
|
@ -4151,7 +4151,7 @@ msgstr "自定义 CPU 型号"
|
|||
msgid "Size (GiB)"
|
||||
msgstr "大小(GiB)"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2633
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2635
|
||||
msgid "Existing volumes"
|
||||
msgstr "已有卷"
|
||||
|
||||
|
|
@ -4184,11 +4184,11 @@ msgstr "设备"
|
|||
#: instances/templates/instances/boot_device.html:14
|
||||
#: instances/templates/instances/settings_tab.html:685
|
||||
#: networks/templates/network.html:304
|
||||
#: vmbackups/templates/vmbackups/target.html:33
|
||||
#: vmbackups/templates/vmbackups/target.html:38
|
||||
msgid "Remove"
|
||||
msgstr "移除"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2634
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2636
|
||||
msgid "Clone from template"
|
||||
msgstr "从模板克隆"
|
||||
|
||||
|
|
@ -6383,16 +6383,16 @@ msgid ""
|
|||
" Remove them first."
|
||||
msgstr "有主机设备的虚拟机无法迁移:目标主机可能没有这些设备。请先移除它们。"
|
||||
|
||||
#: instances/views.py:629
|
||||
#: instances/views.py:631
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s has changed since the page was loaded; reload the page"
|
||||
msgstr "磁盘 %(dev)s 在页面加载后已更改;请刷新页面"
|
||||
|
||||
#: instances/views.py:704 instances/views.py:705
|
||||
#: instances/views.py:706 instances/views.py:707
|
||||
msgid "The VM was moved meanwhile; try again."
|
||||
msgstr "该虚拟机在此期间已被移动;请重试。"
|
||||
|
||||
#: instances/views.py:821
|
||||
#: instances/views.py:823
|
||||
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 "
|
||||
|
|
@ -6402,7 +6402,7 @@ msgstr ""
|
|||
"运行中的虚拟机在此总线上没有可用 PCI 插槽来添加磁盘:如果虚拟机有 SCSI 控制器,请选择 scsi "
|
||||
"总线;或关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。"
|
||||
|
||||
#: instances/views.py:825
|
||||
#: instances/views.py:827
|
||||
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"
|
||||
|
|
@ -6412,289 +6412,289 @@ msgstr ""
|
|||
"运行中的虚拟机没有可用 PCI 插槽来添加磁盘所需的 SCSI 控制器:请关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe "
|
||||
"插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。"
|
||||
|
||||
#: instances/views.py:843
|
||||
#: instances/views.py:845
|
||||
#, python-format
|
||||
msgid "Invalid disk options: %(options)s"
|
||||
msgstr "无效的磁盘选项:%(options)s"
|
||||
|
||||
#: instances/views.py:855 instances/views.py:950
|
||||
#: instances/views.py:857 instances/views.py:952
|
||||
#, python-format
|
||||
msgid "Invalid options: %(options)s"
|
||||
msgstr "无效的选项:%(options)s"
|
||||
|
||||
#: instances/views.py:890
|
||||
#: instances/views.py:892
|
||||
msgid "The VM was forced off but did not start again: it stays off."
|
||||
msgstr "虚拟机已被强制关机,但没有再次启动:它保持关机状态。"
|
||||
|
||||
#: instances/views.py:1078
|
||||
#: instances/views.py:1080
|
||||
#, python-format
|
||||
msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)"
|
||||
msgstr "请先设置 %(compute)s 的 gstfsd 密钥(计算节点,编辑该主机)"
|
||||
|
||||
#: instances/views.py:1085 instances/views.py:1103 instances/views.py:1112
|
||||
#: instances/views.py:1087 instances/views.py:1105 instances/views.py:1114
|
||||
#, python-format
|
||||
msgid "gstfsd error: %(err)s"
|
||||
msgstr "gstfsd 错误:%(err)s"
|
||||
|
||||
#: instances/views.py:1113
|
||||
#: instances/views.py:1115
|
||||
msgid "the reply is not signed with the key"
|
||||
msgstr "回复未使用该密钥签名"
|
||||
|
||||
#: instances/views.py:1121
|
||||
#: instances/views.py:1123
|
||||
msgid "Shut the VM down, or start its QEMU guest agent, and try again"
|
||||
msgstr "请关闭虚拟机,或启动其 QEMU 客户机代理,然后重试"
|
||||
|
||||
#: instances/views.py:1129
|
||||
#: instances/views.py:1131
|
||||
msgid "The change may still be made when the agent answers again."
|
||||
msgstr "当代理再次响应时,此更改仍可能生效。"
|
||||
|
||||
#: instances/views.py:1144
|
||||
#: instances/views.py:1146
|
||||
msgid "Enter a password"
|
||||
msgstr "请输入密码"
|
||||
|
||||
#: instances/views.py:1149
|
||||
#: instances/views.py:1151
|
||||
msgid "Enter a password of at most 4096 characters, without NUL characters"
|
||||
msgstr "请输入不超过 4096 个字符且不含 NUL 字符的密码"
|
||||
|
||||
#: instances/views.py:1165
|
||||
#: instances/views.py:1167
|
||||
msgid "Reset root password"
|
||||
msgstr "重置 root 密码"
|
||||
|
||||
#: instances/views.py:1181
|
||||
#: instances/views.py:1183
|
||||
msgid "Select an SSH public key"
|
||||
msgstr "请选择 SSH 公钥"
|
||||
|
||||
#: instances/views.py:1203
|
||||
#: instances/views.py:1205
|
||||
#, python-format
|
||||
msgid "Installed new SSH public key %(keyname)s"
|
||||
msgstr "已安装新的 SSH 公钥 %(keyname)s"
|
||||
|
||||
#: instances/views.py:1223
|
||||
#: instances/views.py:1225
|
||||
msgid "Enter a whole number of vCPUs"
|
||||
msgstr "请输入整数个 vCPU"
|
||||
|
||||
#: instances/views.py:1227
|
||||
#: instances/views.py:1229
|
||||
msgid "Shut off the VM to change its vCPUs"
|
||||
msgstr "请关闭虚拟机以更改其 vCPU"
|
||||
|
||||
#: instances/views.py:1230
|
||||
#: instances/views.py:1232
|
||||
msgid "The current vCPUs cannot be more than the maximum"
|
||||
msgstr "当前 vCPU 数不能超过最大值"
|
||||
|
||||
#: instances/views.py:1237
|
||||
#: instances/views.py:1239
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的 CPU。"
|
||||
|
||||
#: instances/views.py:1245
|
||||
#: instances/views.py:1247
|
||||
#, python-format
|
||||
msgid "vCPUs set to %(cur)s (maximum %(max)s)"
|
||||
msgstr "vCPU 已设为 %(cur)s(最大 %(max)s)"
|
||||
|
||||
#: instances/views.py:1264
|
||||
#: instances/views.py:1266
|
||||
msgid "Enter a whole number for memory"
|
||||
msgstr "请输入整数内存值"
|
||||
|
||||
#: instances/views.py:1267
|
||||
#: instances/views.py:1269
|
||||
msgid "The current memory cannot be more than the maximum"
|
||||
msgstr "当前内存不能超过最大值"
|
||||
|
||||
#: instances/views.py:1271
|
||||
#: instances/views.py:1273
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的内存。"
|
||||
|
||||
#: instances/views.py:1277
|
||||
#: instances/views.py:1279
|
||||
#, python-format
|
||||
msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)"
|
||||
msgstr "内存已设为 %(cur)s MiB(最大 %(max)s MiB)"
|
||||
|
||||
#: instances/views.py:1297
|
||||
#: instances/views.py:1299
|
||||
msgid "Enter disk sizes as whole GiB"
|
||||
msgstr "请以整数 GiB 输入磁盘大小"
|
||||
|
||||
#: instances/views.py:1301
|
||||
#: instances/views.py:1303
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s was changed meanwhile; reload the page"
|
||||
msgstr "磁盘 %(dev)s 在此期间已更改;请重新加载页面"
|
||||
|
||||
#: instances/views.py:1305
|
||||
#: instances/views.py:1307
|
||||
#, python-format
|
||||
msgid "%(dev)s is %(size)s: a disk cannot shrink"
|
||||
msgstr "%(dev)s 为 %(size)s:磁盘不能缩小"
|
||||
|
||||
#: instances/views.py:1313
|
||||
#: instances/views.py:1315
|
||||
msgid "No disks were selected or valid for resizing."
|
||||
msgstr "未选择磁盘或没有可调整大小的有效磁盘。"
|
||||
|
||||
#: instances/views.py:1322
|
||||
#: instances/views.py:1324
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的磁盘。"
|
||||
|
||||
#: instances/views.py:1334
|
||||
#: instances/views.py:1336
|
||||
#, python-format
|
||||
msgid "The storage pool of %(dev)s cannot resize its volumes"
|
||||
msgstr "%(dev)s 所在的存储池无法调整其卷的大小"
|
||||
|
||||
#: instances/views.py:1336
|
||||
#: instances/views.py:1338
|
||||
#, python-format
|
||||
msgid "Disk is resized: %(dev)s"
|
||||
msgstr "磁盘已调整大小:%(dev)s"
|
||||
|
||||
#: instances/views.py:1430
|
||||
#: instances/views.py:1432
|
||||
msgid "The VM's machine has no PCIe slots to add"
|
||||
msgstr "该虚拟机的机器类型没有可添加的 PCIe 插槽"
|
||||
|
||||
#: instances/views.py:1435
|
||||
#: instances/views.py:1437
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added"
|
||||
msgstr "已添加 %(count)s 个 PCIe 插槽"
|
||||
|
||||
#: instances/views.py:1437
|
||||
#: instances/views.py:1439
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added: the VM gets them at its next start"
|
||||
msgstr "已添加 %(count)s 个 PCIe 插槽:虚拟机在下次启动时获得它们"
|
||||
|
||||
#: instances/views.py:1483
|
||||
#: instances/views.py:1485
|
||||
#, python-format
|
||||
msgid "%(volume)s is already a disk of this VM"
|
||||
msgstr "%(volume)s 已是此虚拟机的磁盘"
|
||||
|
||||
#: instances/views.py:1573
|
||||
#: instances/views.py:1575
|
||||
msgid "Volume changes are applied. But it will be activated after shutdown"
|
||||
msgstr "卷更改已应用,但将在关机后生效"
|
||||
|
||||
#: instances/views.py:1578
|
||||
#: instances/views.py:1580
|
||||
msgid "Volume is changed successfully."
|
||||
msgstr "卷已成功更改。"
|
||||
|
||||
#: instances/views.py:1598
|
||||
#: instances/views.py:1600
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a storage volume of this instance"
|
||||
msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷"
|
||||
|
||||
#: instances/views.py:1603 vrtManager/instance.py:2493
|
||||
#: instances/views.py:1605 vrtManager/instance.py:2493
|
||||
msgid "The VM has a saved state; start it or remove the saved state first"
|
||||
msgstr "虚拟机有保存的状态;请先启动它或删除保存的状态"
|
||||
|
||||
#: instances/views.py:1609
|
||||
#: instances/views.py:1611
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down"
|
||||
msgstr "磁盘 %(dev)s 有待生效的更改;请在虚拟机关机后删除它"
|
||||
|
||||
#: instances/views.py:1624
|
||||
#: instances/views.py:1626
|
||||
#, python-format
|
||||
msgid "Volume %(vol)s is used by another VM; detach it instead"
|
||||
msgstr "卷 %(vol)s 正被另一台虚拟机使用;请改为分离它"
|
||||
|
||||
#: instances/views.py:1642
|
||||
#: instances/views.py:1644
|
||||
#, 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:1653
|
||||
#: instances/views.py:1655
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s"
|
||||
msgstr "磁盘 %(dev)s 已分离,但其卷已保留:%(err)s"
|
||||
|
||||
#: instances/views.py:1681
|
||||
#: instances/views.py:1683
|
||||
#, python-format
|
||||
msgid "This VM cannot take a CD-ROM on the %(bus)s bus now"
|
||||
msgstr "该虚拟机现在无法在 %(bus)s 总线上添加 CD-ROM"
|
||||
|
||||
#: instances/views.py:1684
|
||||
#: instances/views.py:1686
|
||||
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:1689
|
||||
#: instances/views.py:1691
|
||||
#, python-format
|
||||
msgid "%(image)s is already in a CD-ROM of this VM"
|
||||
msgstr "%(image)s 已在此虚拟机的某个光驱中"
|
||||
|
||||
#: instances/views.py:1770
|
||||
#: instances/views.py:1772
|
||||
#, python-format
|
||||
msgid "Pool %(pool)s was not read again: %(err)s"
|
||||
msgstr "未重新读取存储池 %(pool)s:%(err)s"
|
||||
|
||||
#: instances/views.py:1791
|
||||
#: instances/views.py:1793
|
||||
#, python-format
|
||||
msgid "Snapshot was not deleted: %(err)s"
|
||||
msgstr "快照未删除:%(err)s"
|
||||
|
||||
#: instances/views.py:1910
|
||||
#: instances/views.py:1912
|
||||
msgid "Add at least one device to the boot order."
|
||||
msgstr "请至少向启动顺序中添加一个设备。"
|
||||
|
||||
#: instances/views.py:1916 vrtManager/instance.py:1263
|
||||
#: instances/views.py:1918 vrtManager/instance.py:1263
|
||||
msgid "Invalid Device Type for boot order"
|
||||
msgstr "启动顺序的设备类型无效"
|
||||
|
||||
#: instances/views.py:1927
|
||||
#: instances/views.py:1929
|
||||
msgid "Boot order changed. It applies at the next start."
|
||||
msgstr "启动顺序已更改,将在下次启动时生效。"
|
||||
|
||||
#: instances/views.py:1929
|
||||
#: instances/views.py:1931
|
||||
msgid "Boot order changed successfully."
|
||||
msgstr "启动顺序已成功更改。"
|
||||
|
||||
#: instances/views.py:1949
|
||||
#: instances/views.py:1951
|
||||
msgid "The XML is empty"
|
||||
msgstr "XML 为空"
|
||||
|
||||
#: instances/views.py:1953 instances/views.py:2614
|
||||
#: instances/views.py:1955 instances/views.py:2616
|
||||
#, python-format
|
||||
msgid "The XML is not well-formed: %(error)s"
|
||||
msgstr "XML 格式不正确:%(error)s"
|
||||
|
||||
#: instances/views.py:1955
|
||||
#: instances/views.py:1957
|
||||
#, python-format
|
||||
msgid "The XML must keep the VM's UUID %(uuid)s."
|
||||
msgstr "XML 必须保留虚拟机的 UUID %(uuid)s。"
|
||||
|
||||
#: instances/views.py:1959
|
||||
#: instances/views.py:1961
|
||||
msgid ""
|
||||
"The definition has changed since the editor was opened. Reload the page to "
|
||||
"edit the current one."
|
||||
msgstr "自打开编辑器以来定义已被更改。请重新加载页面以编辑当前定义。"
|
||||
|
||||
#: instances/views.py:1975
|
||||
#: instances/views.py:1977
|
||||
msgid "The XML definition was saved."
|
||||
msgstr "XML 定义已保存。"
|
||||
|
||||
#: instances/views.py:1977
|
||||
#: instances/views.py:1979
|
||||
msgid "The XML definition was saved; the VM uses it from its next start."
|
||||
msgstr "XML 定义已保存;虚拟机从下次启动起使用它。"
|
||||
|
||||
#: instances/views.py:2058
|
||||
#: instances/views.py:2060
|
||||
msgid "Select one network interface to change"
|
||||
msgstr "请选择一个要更改的网络接口"
|
||||
|
||||
#: instances/views.py:2072
|
||||
#: instances/views.py:2074
|
||||
#, python-format
|
||||
msgid "Network interface %(mac)s was changed meanwhile; reload the page"
|
||||
msgstr "网络接口 %(mac)s 在此期间已更改;请重新加载页面"
|
||||
|
||||
#: instances/views.py:2102
|
||||
#: instances/views.py:2104
|
||||
msgid "Network Device Config is changed. Please shutdown instance to activate."
|
||||
msgstr "网络设备配置已更改。请关闭虚拟机以使其生效。"
|
||||
|
||||
#: instances/views.py:2104
|
||||
#: instances/views.py:2106
|
||||
msgid "Network device changed"
|
||||
msgstr "网络设备已更改"
|
||||
|
||||
#: instances/views.py:2116
|
||||
#: instances/views.py:2118
|
||||
msgid "No network selected"
|
||||
msgstr "未选择网络"
|
||||
|
||||
#: instances/views.py:2121
|
||||
#: instances/views.py:2123
|
||||
#, python-format
|
||||
msgid "The VM already has a network device with MAC %(mac)s"
|
||||
msgstr "虚拟机已有 MAC 地址为 %(mac)s 的网络设备"
|
||||
|
||||
#: instances/views.py:2140
|
||||
#: instances/views.py:2142
|
||||
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 "
|
||||
|
|
@ -6702,136 +6702,136 @@ msgid ""
|
|||
msgstr ""
|
||||
"运行中的虚拟机没有可用 PCI 插槽来添加网络设备:请关机后再添加设备。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。"
|
||||
|
||||
#: instances/views.py:2186 instances/views.py:2192
|
||||
#: instances/views.py:2188 instances/views.py:2194
|
||||
msgid "The VM has it"
|
||||
msgstr "虚拟机已有此设备"
|
||||
|
||||
#: instances/views.py:2227
|
||||
#: instances/views.py:2229
|
||||
#, python-format
|
||||
msgid "The host has no USB device %(device)s; reload the page"
|
||||
msgstr "主机没有 USB 设备 %(device)s;请重新加载页面"
|
||||
|
||||
#: instances/views.py:2248
|
||||
#: instances/views.py:2250
|
||||
#, python-format
|
||||
msgid "The host has no PCI device %(device)s"
|
||||
msgstr "主机上没有 PCI 设备 %(device)s"
|
||||
|
||||
#: instances/views.py:2266
|
||||
#: instances/views.py:2268
|
||||
#, 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:2311 instances/views.py:2341
|
||||
#: instances/views.py:2313 instances/views.py:2343
|
||||
msgid "Select a network interface and a QoS direction"
|
||||
msgstr "请选择网络接口和 QoS 方向"
|
||||
|
||||
#: instances/views.py:2314 vrtManager/network.py:470
|
||||
#: instances/views.py:2316 vrtManager/network.py:470
|
||||
msgid "QoS rates must be whole numbers"
|
||||
msgstr "QoS 速率必须为整数"
|
||||
|
||||
#: instances/views.py:2321 networks/views.py:235
|
||||
#: instances/views.py:2323 networks/views.py:235
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is set"
|
||||
msgstr "%(qos_dir)s QoS 已设置"
|
||||
|
||||
#: instances/views.py:2326
|
||||
#: instances/views.py:2328
|
||||
#, 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:2348 networks/views.py:261
|
||||
#: instances/views.py:2350 networks/views.py:261
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is deleted"
|
||||
msgstr "%(qos_dir)s QoS 已删除"
|
||||
|
||||
#: instances/views.py:2353
|
||||
#: instances/views.py:2355
|
||||
#, 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:2381
|
||||
#: instances/views.py:2383
|
||||
msgid "Only one owner is allowed and the one already added"
|
||||
msgstr "只允许一个所有者,且已添加"
|
||||
|
||||
#: instances/views.py:2383
|
||||
#: instances/views.py:2385
|
||||
#, python-format
|
||||
msgid "%(user)s is already an owner"
|
||||
msgstr "%(user)s 已是所有者"
|
||||
|
||||
#: instances/views.py:2428
|
||||
#: instances/views.py:2430
|
||||
#, python-format
|
||||
msgid "Console settings were not saved: %(errors)s"
|
||||
msgstr "控制台设置未保存:%(errors)s"
|
||||
|
||||
#: instances/views.py:2450
|
||||
#: instances/views.py:2452
|
||||
msgid ""
|
||||
"Error setting console password. You should check that your instance have an "
|
||||
"graphic device."
|
||||
msgstr "设置控制台密码出错。请检查虚拟机是否有图形设备。"
|
||||
|
||||
#: instances/views.py:2497
|
||||
#: instances/views.py:2499
|
||||
msgid "Shut the VM down to change whether it is a template."
|
||||
msgstr "请关闭虚拟机以更改其是否为模板。"
|
||||
|
||||
#: instances/views.py:2503
|
||||
#: instances/views.py:2505
|
||||
#, python-format
|
||||
msgid "%(quota)s: '%(instance_name)s' stays a template."
|
||||
msgstr "%(quota)s:“%(instance_name)s”仍为模板。"
|
||||
|
||||
#: instances/views.py:2600
|
||||
#: instances/views.py:2602
|
||||
msgid "The XML has no name"
|
||||
msgstr "XML 中没有名称"
|
||||
|
||||
#: instances/views.py:2618 webvirtcloud/middleware.py:157
|
||||
#: instances/views.py:2620 webvirtcloud/middleware.py:157
|
||||
#, python-format
|
||||
msgid "libvirt Error - %(exception)s"
|
||||
msgstr "libvirt 错误 - %(exception)s"
|
||||
|
||||
#: instances/views.py:2632
|
||||
#: instances/views.py:2634
|
||||
msgid "An empty disk of the size you set"
|
||||
msgstr "按设定大小创建的空磁盘"
|
||||
|
||||
#: instances/views.py:2633
|
||||
#: instances/views.py:2635
|
||||
msgid "Volumes already in a pool"
|
||||
msgstr "存储池中已有的卷"
|
||||
|
||||
#: instances/views.py:2634
|
||||
#: instances/views.py:2636
|
||||
msgid "A copy of a template volume"
|
||||
msgstr "模板卷的副本"
|
||||
|
||||
#: instances/views.py:2724
|
||||
#: instances/views.py:2726
|
||||
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:2726
|
||||
#: instances/views.py:2728
|
||||
msgid "This host has no network for the VM: add one on its Networks page."
|
||||
msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。"
|
||||
|
||||
#: instances/views.py:2758
|
||||
#: instances/views.py:2760
|
||||
#, python-format
|
||||
msgid "The machine type is q35, not %(machine)s: UEFI Secure Boot needs it"
|
||||
msgstr "机器类型为 q35,而不是 %(machine)s:UEFI 安全启动需要它"
|
||||
|
||||
#: instances/views.py:2787
|
||||
#: instances/views.py:2789
|
||||
msgid "Flavor Created"
|
||||
msgstr "规格已创建"
|
||||
|
||||
#: instances/views.py:2795
|
||||
#: instances/views.py:2797
|
||||
msgid "Create Flavor"
|
||||
msgstr "创建规格"
|
||||
|
||||
#: instances/views.py:2807
|
||||
#: instances/views.py:2809
|
||||
msgid "Flavor Deleted"
|
||||
msgstr "规格已删除"
|
||||
|
||||
#: instances/views.py:2813
|
||||
#: instances/views.py:2815
|
||||
msgid "Only the size template goes; VMs made from it keep their size."
|
||||
msgstr "仅删除此规格;由它创建的虚拟机保持其大小。"
|
||||
|
||||
|
|
@ -9201,7 +9201,7 @@ msgid ""
|
|||
"encrypted anew."
|
||||
msgstr "新值会立即替换旧值;之前用口令加密的内容不会重新加密。"
|
||||
|
||||
#: vmbackups/forms.py:13 vmbackups/forms.py:37 vmbackups/forms.py:54
|
||||
#: vmbackups/forms.py:13 vmbackups/forms.py:37 vmbackups/forms.py:56
|
||||
msgid "Compute"
|
||||
msgstr "计算节点"
|
||||
|
||||
|
|
@ -9227,58 +9227,58 @@ msgstr "恢复的客户机保留虚拟机的地址和主机名:与原虚拟机
|
|||
msgid "Start after restore"
|
||||
msgstr "恢复后启动"
|
||||
|
||||
#: vmbackups/forms.py:56
|
||||
#: vmbackups/forms.py:58
|
||||
msgid "Volume name"
|
||||
msgstr "卷名"
|
||||
|
||||
#: vmbackups/forms.py:75 vmbackups/templates/vmbackups/vm_tab.html:13
|
||||
#: vmbackups/forms.py:77 vmbackups/templates/vmbackups/vm_tab.html:13
|
||||
msgid "Backup target"
|
||||
msgstr "备份目标"
|
||||
|
||||
#: vmbackups/forms.py:75
|
||||
#: vmbackups/forms.py:77
|
||||
msgid "Every VM of a compute"
|
||||
msgstr "某计算节点的所有虚拟机"
|
||||
|
||||
#: vmbackups/forms.py:76
|
||||
#: vmbackups/forms.py:78
|
||||
msgid "Or these VMs"
|
||||
msgstr "或这些虚拟机"
|
||||
|
||||
#: vmbackups/forms.py:76 vmbackups/templates/vmbackups/policies.html:16
|
||||
#: vmbackups/forms.py:78 vmbackups/templates/vmbackups/policies.html:16
|
||||
msgid "Daily at"
|
||||
msgstr "每天时间"
|
||||
|
||||
#: vmbackups/forms.py:76
|
||||
#: vmbackups/forms.py:78
|
||||
msgid "Backups to keep of each VM"
|
||||
msgstr "每台虚拟机保留的备份数"
|
||||
|
||||
#: vmbackups/forms.py:77
|
||||
#: vmbackups/forms.py:79
|
||||
msgid "A full backup every N backups"
|
||||
msgstr "每 N 次备份进行一次完整备份"
|
||||
|
||||
#: vmbackups/forms.py:78 vmbackups/templates/vmbackups/vm_tab.html:21
|
||||
#: vmbackups/forms.py:80 vmbackups/templates/vmbackups/vm_tab.html:21
|
||||
msgid "Require frozen file systems"
|
||||
msgstr "要求冻结文件系统"
|
||||
|
||||
#: vmbackups/forms.py:78 vmbackups/templates/vmbackups/policies.html:27
|
||||
#: vmbackups/forms.py:80 vmbackups/templates/vmbackups/policies.html:27
|
||||
msgid "Enabled"
|
||||
msgstr "已启用"
|
||||
|
||||
#: vmbackups/forms.py:90
|
||||
#: vmbackups/forms.py:92
|
||||
msgid ""
|
||||
"1: every backup is full. Above 1, the backups between copy only what changed "
|
||||
"(running VMs with qcow2 disks)."
|
||||
msgstr "1:每次备份都是完整备份。大于 1 时,中间的备份只复制变化的部分(适用于使用 qcow2 磁盘的运行中虚拟机)。"
|
||||
|
||||
#: vmbackups/forms.py:97
|
||||
#: vmbackups/forms.py:99
|
||||
msgid "Choose a compute or VMs, not both"
|
||||
msgstr "请选择一个计算节点或若干虚拟机,不能同时选择"
|
||||
|
||||
#: vmbackups/forms.py:102 vmbackups/jobs.py:106
|
||||
#: vmbackups/forms.py:104 vmbackups/jobs.py:106
|
||||
#, python-format
|
||||
msgid "Backup target %(target)s has no storage pool on %(compute)s"
|
||||
msgstr "备份目标 %(target)s 在 %(compute)s 上没有存储池"
|
||||
|
||||
#: vmbackups/forms.py:109
|
||||
#: vmbackups/forms.py:111
|
||||
msgid "Keep one backup at least"
|
||||
msgstr "至少保留一个备份"
|
||||
|
||||
|
|
@ -9562,7 +9562,7 @@ msgstr "任务停止时磁盘正在复制;请检查此卷,然后处理此任
|
|||
msgid "The disk was not restored"
|
||||
msgstr "磁盘未恢复"
|
||||
|
||||
#: vmbackups/jobs.py:1239 vmbackups/templates/vmbackups/target.html:18
|
||||
#: vmbackups/jobs.py:1239 vmbackups/templates/vmbackups/target.html:23
|
||||
msgid "Read backups from target"
|
||||
msgstr "从目标读取备份"
|
||||
|
||||
|
|
@ -9616,7 +9616,7 @@ msgstr "增量"
|
|||
|
||||
#: vmbackups/templates/vmbackups/delete_form.html:4
|
||||
#: vmbackups/templates/vmbackups/restore.html:9
|
||||
#: vmbackups/templates/vmbackups/restore.html:18
|
||||
#: vmbackups/templates/vmbackups/restore.html:19
|
||||
#: vmbackups/templates/vmbackups/restore_disk.html:18
|
||||
msgid "Restore"
|
||||
msgstr "恢复"
|
||||
|
|
@ -9796,6 +9796,13 @@ msgid ""
|
|||
"with its own UUID and MAC addresses."
|
||||
msgstr "%(vm)s 在 %(time)s 的备份(位于 %(target)s)将恢复为一台拥有自己 UUID 和 MAC 地址的新虚拟机。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore.html:17
|
||||
#, python-format
|
||||
msgid ""
|
||||
"On %(compute)s, in storage pool %(pool)s: the VM's host and the pool of its "
|
||||
"first disk."
|
||||
msgstr "在 %(compute)s 上,存储池 %(pool)s 中:即虚拟机所在主机及其第一个磁盘的存储池。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_disk.html:7
|
||||
#: vmbackups/templates/vmbackups/restore_disk.html:9
|
||||
msgid "Restore one disk"
|
||||
|
|
@ -9810,7 +9817,7 @@ msgstr "%(vm)s 于 %(time)s 在 %(target)s 中的备份的一个磁盘将复制
|
|||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:6
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:8
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:33
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:34
|
||||
msgid "Restore over the VM"
|
||||
msgstr "恢复到虚拟机上"
|
||||
|
||||
|
|
@ -9833,14 +9840,20 @@ msgid "The old volumes stay in their pools until you delete them."
|
|||
msgstr "旧卷会保留在其存储池中,直到您删除它们。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:27
|
||||
msgid ""
|
||||
"The disks the VM runs from now are deleted once it is switched to the new "
|
||||
"ones."
|
||||
msgstr "虚拟机切换到新磁盘后,其当前运行的磁盘将被删除。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:28
|
||||
msgid "The UEFI variables return to the backup's."
|
||||
msgstr "UEFI 变量恢复为备份中的状态。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:28
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:29
|
||||
msgid "The TPM state returns to the backup's."
|
||||
msgstr "TPM 状态恢复为备份中的状态。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:33
|
||||
#: vmbackups/templates/vmbackups/restore_over.html:34
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Restore the backup over %(vm)s? What the VM wrote since the backup is no "
|
||||
|
|
@ -9857,40 +9870,56 @@ msgid "%(counter)s backup."
|
|||
msgid_plural "%(counter)s backups."
|
||||
msgstr[0] "%(counter)s 个备份。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:18
|
||||
#: vmbackups/templates/vmbackups/target.html:14
|
||||
msgid "VM owners with the backup permission may use it."
|
||||
msgstr "拥有备份权限的虚拟机所有者可以使用它。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:14
|
||||
msgid "Only superusers use it."
|
||||
msgstr "仅超级用户可以使用。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:17
|
||||
msgid "Close to VM owners"
|
||||
msgstr "对虚拟机所有者关闭"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:17
|
||||
msgid "Open to VM owners"
|
||||
msgstr "向虚拟机所有者开放"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:23
|
||||
msgid ""
|
||||
"Adds the backups whose manifest is in the target and that the panel does not "
|
||||
"list, as after its database was lost."
|
||||
msgstr "添加清单位于目标中、但面板未列出的备份,例如在面板数据库丢失之后。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:33
|
||||
#: vmbackups/templates/vmbackups/target.html:38
|
||||
msgid ""
|
||||
"Remove this storage pool from the target? The pool and its files stay on the "
|
||||
"host."
|
||||
msgstr "要从目标中移除此存储池吗?存储池及其文件仍保留在主机上。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:43
|
||||
#: vmbackups/templates/vmbackups/target.html:48
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The target is inside storage pool %(pool)s: its backups are lost with that "
|
||||
"storage."
|
||||
msgstr "目标位于存储池 %(pool)s 内:该存储丢失时其备份也会丢失。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:53
|
||||
#: vmbackups/templates/vmbackups/target.html:58
|
||||
msgid "Add a compute's storage pool"
|
||||
msgstr "添加计算节点的存储池"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:55
|
||||
#: vmbackups/templates/vmbackups/target.html:60
|
||||
msgid ""
|
||||
"The pool must be the same directory as the target's other pools, as an NFS "
|
||||
"share mounted on each host."
|
||||
msgstr "该存储池必须与目标的其他存储池是同一目录,例如挂载在每台主机上的 NFS 共享。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:68
|
||||
#: vmbackups/templates/vmbackups/target.html:73
|
||||
msgid "Delete this backup target? Its storage pools stay on the hosts."
|
||||
msgstr "要删除此备份目标吗?其存储池仍保留在主机上。"
|
||||
|
||||
#: vmbackups/templates/vmbackups/target.html:68
|
||||
#: vmbackups/templates/vmbackups/target.html:73
|
||||
msgid "Delete target"
|
||||
msgstr "删除目标"
|
||||
|
||||
|
|
@ -9947,28 +9976,33 @@ msgid ""
|
|||
"first"
|
||||
msgstr "存储池 %(pool)s 是备份目标 %(target)s;请先将其从目标中移除"
|
||||
|
||||
#: vmbackups/utils.py:50
|
||||
#: vmbackups/utils.py:56
|
||||
msgid ""
|
||||
"No backup target open to VM owners has a storage pool on this VM's host."
|
||||
msgstr "没有向虚拟机所有者开放的备份目标在此虚拟机的主机上有存储池。"
|
||||
|
||||
#: vmbackups/utils.py:57
|
||||
msgid "No backup target has a storage pool on this VM's host."
|
||||
msgstr "没有备份目标在此虚拟机的主机上有存储池。"
|
||||
|
||||
#: vmbackups/views.py:69 vmbackups/views.py:90
|
||||
#: vmbackups/views.py:82 vmbackups/views.py:108
|
||||
#, python-format
|
||||
msgid "Backup target %(target)s has backups; delete them first"
|
||||
msgstr "备份目标 %(target)s 中有备份;请先删除它们"
|
||||
|
||||
#: vmbackups/views.py:72
|
||||
#: vmbackups/views.py:85
|
||||
#, python-format
|
||||
msgid "Backup target %(target)s has schedules; delete them first"
|
||||
msgstr "备份目标 %(target)s 有计划;请先删除它们"
|
||||
|
||||
#: vmbackups/views.py:107
|
||||
#: vmbackups/views.py:125
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Storage pool %(pool)s of %(compute)s is not the same directory as storage "
|
||||
"pool %(other)s of %(other_compute)s"
|
||||
msgstr "%(compute)s 的存储池 %(pool)s 与 %(other_compute)s 的存储池 %(other)s 不是同一目录"
|
||||
|
||||
#: vmbackups/views.py:139
|
||||
#: vmbackups/views.py:161
|
||||
msgid "Choose a backup target"
|
||||
msgstr "请选择备份目标"
|
||||
|
||||
|
|
|
|||
|
|
@ -41,10 +41,12 @@ class RestoreForm(forms.Form):
|
|||
"connected beside the VM, they clash."))
|
||||
start = forms.BooleanField(label=_("Start after restore"), required=False)
|
||||
|
||||
def __init__(self, *args, backup, **kwargs):
|
||||
def __init__(self, *args, backup, place=None, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.fields["compute"].queryset = Compute.objects.filter(backuptargetpool__target=backup.target).order_by("name")
|
||||
self.fields["name"].initial = f"{backup.vm_name}-restored"
|
||||
if place: # a VM owner's: the VM's compute and pool, shown on the page
|
||||
del self.fields["compute"], self.fields["pool"]
|
||||
|
||||
|
||||
class RestoreDiskForm(forms.Form):
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
<ul class="dropdown-menu dropdown-menu-end shadow">
|
||||
<li><a class="dropdown-item" href="{% url 'vmbackups:restore' backup.uuid %}">{% trans "As a new VM" %}</a></li>
|
||||
{% if backup.instance_id %}<li><a class="dropdown-item" href="{% url 'vmbackups:restore_over' backup.uuid %}">{% trans "Over the VM" %}</a></li>{% endif %}
|
||||
<li><a class="dropdown-item" href="{% url 'vmbackups:restore_disk' backup.uuid %}">{% trans "One disk" %}</a></li>
|
||||
{% if user.is_superuser %}<li><a class="dropdown-item" href="{% url 'vmbackups:restore_disk' backup.uuid %}">{% trans "One disk" %}</a></li>{% endif %}
|
||||
</ul>
|
||||
</div>{% endif %}{% if backup.state != "creating" %}<form method="post" action="{% url 'vmbackups:delete' backup.uuid %}" class="d-inline">{% csrf_token %}{% submission_key %}
|
||||
</div>{% endif %}{% if backup.state != "creating" %}{% if user.is_superuser or backup.taken_by_id == user.id and not backup.policy_id %}<form method="post" action="{% url 'vmbackups:delete' backup.uuid %}" class="d-inline">{% csrf_token %}{% submission_key %}
|
||||
<button type="submit" class="btn btn-sm btn-outline-danger" aria-label="{% trans "Delete" %}" title="{% trans "Delete" %}"
|
||||
data-confirm="{% blocktrans with time=backup.created_at|date:"Y-m-d H:i" vm=backup.vm_name %}Delete the backup of {{ vm }} taken {{ time }}? Its files are removed from the target.{% endblocktrans %}">{% bs_icon 'trash' %}</button></form>{% endif %}
|
||||
data-confirm="{% blocktrans with time=backup.created_at|date:"Y-m-d H:i" vm=backup.vm_name %}Delete the backup of {{ vm }} taken {{ time }}? Its files are removed from the target.{% endblocktrans %}">{% bs_icon 'trash' %}</button></form>{% endif %}{% endif %}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
<div class="card-body">
|
||||
<form method="post">
|
||||
{% csrf_token %}{% submission_key %}
|
||||
{% if place %}<p>{% blocktrans with compute=place.compute.name pool=place.pool %}On {{ compute }}, in storage pool {{ pool }}: the VM's host and the pool of its first disk.{% endblocktrans %}</p>{% endif %}
|
||||
{% bootstrap_form form %}
|
||||
<button type="submit" class="btn btn-primary">{% bs_icon 'arrow-clockwise' %} {% trans "Restore" %}</button>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<ul>
|
||||
<li>{% trans "The old volumes stay in their pools until you delete them." %}</li>
|
||||
{% if user.is_superuser %}<li>{% trans "The old volumes stay in their pools until you delete them." %}</li>
|
||||
{% else %}<li>{% trans "The disks the VM runs from now are deleted once it is switched to the new ones." %}</li>{% endif %}
|
||||
{% if over.nvram %}<li>{% trans "The UEFI variables return to the backup's." %}</li>{% endif %}
|
||||
{% if over.tpm %}<li>{% trans "The TPM state returns to the backup's." %}</li>{% endif %}
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,12 @@
|
|||
|
||||
{% block content %}
|
||||
<div class="d-flex flex-wrap align-items-center gap-2 mb-3">
|
||||
<span class="text-body-secondary me-auto">{% blocktrans count counter=backup_count %}{{ counter }} backup.{% plural %}{{ counter }} backups.{% endblocktrans %}</span>
|
||||
<span class="text-body-secondary me-auto">{% blocktrans count counter=backup_count %}{{ counter }} backup.{% plural %}{{ counter }} backups.{% endblocktrans %}
|
||||
{% if target.owners %}{% trans "VM owners with the backup permission may use it." %}{% else %}{% trans "Only superusers use it." %}{% endif %}</span>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<button type="submit" name="owners" value="{% if target.owners %}0{% else %}1{% endif %}" class="btn btn-sm btn-outline-secondary">{% if target.owners %}{% trans "Close to VM owners" %}{% else %}{% trans "Open to VM owners" %}{% endif %}</button>
|
||||
</form>
|
||||
{% if pools %}
|
||||
<form method="post">
|
||||
{% csrf_token %}{% submission_key %}
|
||||
|
|
|
|||
|
|
@ -563,9 +563,40 @@ class BackupTabTests(PageControls, TransactionTestCase):
|
|||
self.assertIn("ctl-vm has TPM state", page.xpath("string(//div[@id='backups'])"))
|
||||
self.assertFalse(page.xpath("//div[@id='backups']//form[contains(@action, '/create/')]"))
|
||||
|
||||
def test_owners_have_no_backups_tab(self):
|
||||
def test_owners_without_the_backup_permission_have_no_backups_tab(self):
|
||||
self.controls(self.user("tab-owner", owner={"is_change": True}))
|
||||
self.assertFalse(lxml_html.fromstring(self.last_page).xpath("//*[@id='backups']"))
|
||||
self.controls(self.user("tab-viewer", perms=("backup_instances",), owner={"is_change": False}))
|
||||
self.assertFalse(lxml_html.fromstring(self.last_page).xpath("//*[@id='backups']"))
|
||||
|
||||
def test_an_owner_sees_targets_open_to_owners_and_deletes_only_their_own(self):
|
||||
import datetime
|
||||
|
||||
from vmbackups.models import BackupPolicy
|
||||
|
||||
owner = self.user("tab-owner2", perms=("backup_instances",), owner={"is_change": True})
|
||||
closed = BackupTarget.objects.create(name="closed")
|
||||
opened = BackupTarget.objects.create(name="opened", owners=True)
|
||||
for target in (closed, opened):
|
||||
BackupTargetPool.objects.create(target=target, compute=self.compute, pool=target.name, pool_uuid="u")
|
||||
policy = BackupPolicy.objects.create(name="nightly", target=opened, time=datetime.time(2), keep=2)
|
||||
policy.instances.add(self.instance)
|
||||
|
||||
def backup(target, **fields):
|
||||
return Backup.objects.create(target=target, instance=self.instance, vm_uuid=self.instance.uuid,
|
||||
vm_name="ctl-vm", compute_name="ctl-compute", state=Backup.READY, **fields)
|
||||
|
||||
hidden, mine, scheduled = backup(closed), backup(opened, taken_by=owner), backup(opened, policy=policy)
|
||||
with patch("vmbackups.utils.wvmBackup"):
|
||||
self.controls(owner)
|
||||
tab = lxml_html.fromstring(self.last_page).xpath("//div[@id='backups']")[0]
|
||||
self.assertEqual(tab.xpath(".//select[@id='backup-target']/option/text()"), ["opened"])
|
||||
self.assertNotIn("nightly", tab.text_content()) # schedules are the administrators'
|
||||
actions = tab.xpath(".//form[contains(@action, '/delete/')]/@action")
|
||||
self.assertEqual(actions, [f"/backups/{mine.uuid}/delete/"])
|
||||
self.assertTrue(tab.xpath(f".//a[@href='/backups/{scheduled.uuid}/restore-over/']"))
|
||||
self.assertFalse(tab.xpath(".//a[contains(@href, '/restore-disk/')]"))
|
||||
self.assertNotIn(str(hidden.uuid), lxml_html.tostring(tab).decode())
|
||||
|
||||
|
||||
class BackupApiTests(TransactionTestCase):
|
||||
|
|
|
|||
|
|
@ -292,3 +292,47 @@ class OwnerTests(TransactionTestCase):
|
|||
with self.assertRaises(PermissionDenied):
|
||||
self.submit("backup.restore_disk", {"backup": str(backup.uuid), "dev": "vda", "compute": self.compute.pk,
|
||||
"pool": "default", "name": "x.qcow2"})
|
||||
|
||||
# pages
|
||||
|
||||
def test_the_restore_page_of_an_owner_names_the_vms_host_and_pool(self):
|
||||
from django.urls import reverse
|
||||
from lxml import html as lxml_html
|
||||
|
||||
backup = self.ready_backup()
|
||||
self.client.force_login(self.owner)
|
||||
with patch("vmbackups.views._vm_pool", return_value="default"):
|
||||
page = lxml_html.fromstring(self.client.get(reverse("vmbackups:restore", args=[backup.uuid])).content)
|
||||
self.assertFalse(page.xpath("//select[@name='compute']|//input[@name='pool']"))
|
||||
self.assertIn("On h1, in storage pool default", page.text_content())
|
||||
with (patch("vmbackups.views._vm_pool", return_value="default"),
|
||||
patch("vmbackups.jobs._vm_pool", return_value="default"),
|
||||
patch("vmbackups.jobs.wvmConnect", return_value=MagicMock()),
|
||||
patch("vmbackups.jobs.get_file", return_value=DEFINITION),
|
||||
patch("vmbackups.jobs.check_user_quota", return_value="")):
|
||||
response = self.client.post(reverse("vmbackups:restore", args=[backup.uuid]),
|
||||
{"name": "vm1-back", "submission_key": "key-owner-restore"})
|
||||
op = Operation.objects.get(kind="backup.restore")
|
||||
self.assertRedirects(response, reverse("operations:job", args=[op.pk]), fetch_redirect_response=False)
|
||||
self.assertEqual((op.params["compute"], op.params["pool"]), (self.compute.pk, "default"))
|
||||
|
||||
def test_the_restore_pages_are_refused_without_the_rights(self):
|
||||
from django.urls import reverse
|
||||
|
||||
backup = self.ready_backup()
|
||||
self.client.force_login(self.owner)
|
||||
BackupTarget.objects.filter(pk=self.target.pk).update(owners=False)
|
||||
for name in ("restore", "restore_over"):
|
||||
self.assertEqual(self.client.get(reverse(f"vmbackups:{name}", args=[backup.uuid])).status_code, 403)
|
||||
BackupTarget.objects.filter(pk=self.target.pk).update(owners=True)
|
||||
self.assertEqual(self.client.get(reverse("vmbackups:restore_disk", args=[backup.uuid])).status_code, 403)
|
||||
self.assertEqual(self.client.get(reverse("vmbackups:index")).status_code, 403)
|
||||
|
||||
def test_a_superuser_opens_a_target_to_owners(self):
|
||||
from django.urls import reverse
|
||||
|
||||
admin = get_user_model().objects.create_superuser("adm3", "c@example.com", "pw")
|
||||
self.client.force_login(admin)
|
||||
BackupTarget.objects.filter(pk=self.target.pk).update(owners=False)
|
||||
self.client.post(reverse("vmbackups:target", args=[self.target.pk]), {"owners": "1"})
|
||||
self.assertTrue(BackupTarget.objects.get(pk=self.target.pk).owners)
|
||||
|
|
|
|||
|
|
@ -41,19 +41,26 @@ def refuse_target_pool(compute, pool):
|
|||
)
|
||||
|
||||
|
||||
def vm_tab(instance):
|
||||
def vm_tab(instance, user):
|
||||
"""The VM page's Backups tab: the VM's backups, the targets of its host,
|
||||
and why it cannot be backed up, if it cannot."""
|
||||
targets = list(BackupTarget.objects.filter(pools__compute=instance.compute).order_by("name"))
|
||||
and why it cannot be backed up, if it cannot. A VM owner sees only
|
||||
targets open to VM owners, and no schedule."""
|
||||
owner = not user.is_superuser
|
||||
targets = BackupTarget.objects.filter(pools__compute=instance.compute)
|
||||
rows = instance.backups.select_related("target", "operation")
|
||||
if owner:
|
||||
targets, rows = targets.filter(owners=True), rows.filter(target__owners=True)
|
||||
targets = list(targets.order_by("name"))
|
||||
problem = None
|
||||
if not targets:
|
||||
problem = gettext("No backup target has a storage pool on this VM's host.")
|
||||
problem = (gettext("No backup target open to VM owners has a storage pool on this VM's host.") if owner
|
||||
else gettext("No backup target has a storage pool on this VM's host."))
|
||||
else:
|
||||
c = instance.compute
|
||||
try:
|
||||
wvmBackup(c.hostname, c.login, c.password, c.type, instance.name, uuid=instance.uuid).backup_plan()
|
||||
except libvirtError as err:
|
||||
problem = str(err)
|
||||
schedules = BackupPolicy.objects.filter(Q(instances=instance) | Q(compute=instance.compute_id)).distinct()
|
||||
return {"rows": instance.backups.select_related("target", "operation"), "targets": targets, "problem": problem,
|
||||
"schedules": schedules.order_by("name")}
|
||||
schedules = [] if owner else BackupPolicy.objects.filter(
|
||||
Q(instances=instance) | Q(compute=instance.compute_id)).distinct().order_by("name")
|
||||
return {"rows": rows, "targets": targets, "problem": problem, "schedules": schedules}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
from django.contrib import messages
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.core.exceptions import PermissionDenied
|
||||
from django.db import transaction
|
||||
from django.conf import settings
|
||||
from django.db.models import Count
|
||||
|
|
@ -11,6 +13,7 @@ from libvirt import libvirtError
|
|||
|
||||
from admin.decorators import superuser_only
|
||||
from instances.models import Instance
|
||||
from instances.views import get_instance
|
||||
from logs.audit import audit
|
||||
from operations import claims, jobs
|
||||
from operations.utils import busy_message
|
||||
|
|
@ -20,11 +23,21 @@ from vrtManager.connection import wvmConnect
|
|||
from vrtManager.util import OperationError
|
||||
|
||||
from .forms import PolicyForm, RestoreDiskForm, RestoreForm, TargetForm, TargetPoolForm
|
||||
from .jobs import _over_plan, _proxy
|
||||
from .jobs import _over_plan, _proxy, _vm_pool
|
||||
from .models import Backup, BackupPolicy, BackupTarget
|
||||
from .utils import inside_vm_pool
|
||||
|
||||
|
||||
def _may_restore(user, backup):
|
||||
"""A superuser; or a VM owner with the backup permission who may change
|
||||
the backup's VM, on a target open to VM owners (the jobs check again)."""
|
||||
if user.is_superuser:
|
||||
return
|
||||
if backup.instance_id is None or not backup.target.owners or not user.has_perm("instances.backup_instances"):
|
||||
raise PermissionDenied
|
||||
get_instance(user, backup.instance_id, perm_type="change")
|
||||
|
||||
|
||||
def connect(compute):
|
||||
return wvmConnect(compute.hostname, compute.login, compute.password, compute.type)
|
||||
|
||||
|
|
@ -74,6 +87,11 @@ def target(request, target_id):
|
|||
with audit(request, None, subject, "delete"):
|
||||
target.delete()
|
||||
return redirect("vmbackups:targets")
|
||||
if request.method == "POST" and "owners" in request.POST:
|
||||
target.owners = request.POST["owners"] == "1"
|
||||
with audit(request, None, subject, "open to VM owners" if target.owners else "closed to VM owners"):
|
||||
target.save(update_fields=["owners"])
|
||||
return redirect("vmbackups:target", target.id)
|
||||
if request.method == "POST" and "import" in request.POST:
|
||||
try:
|
||||
op = jobs.submit("backup.import", request.user, {"target": target.pk}, request.POST.get("submission_key", ""))
|
||||
|
|
@ -123,10 +141,14 @@ def target(request, target_id):
|
|||
|
||||
|
||||
@require_POST
|
||||
@superuser_only
|
||||
@login_required
|
||||
def create(request, instance_id):
|
||||
"""Back up now, from the VM's Backups tab: a backup.create job."""
|
||||
instance = get_object_or_404(Instance, pk=instance_id)
|
||||
if not request.user.is_superuser: # before the form is read: the job checks again
|
||||
if not request.user.has_perm("instances.backup_instances"):
|
||||
raise PermissionDenied
|
||||
get_instance(request.user, instance.pk, perm_type="change")
|
||||
page = reverse("instances:instance", args=[instance.pk]) + "#backups"
|
||||
raw = {"instance": instance.pk, "target": request.POST.get("target", ""), "frozen": request.POST.get("frozen", "")}
|
||||
try:
|
||||
|
|
@ -160,7 +182,7 @@ def index(request):
|
|||
|
||||
|
||||
@require_POST
|
||||
@superuser_only
|
||||
@login_required
|
||||
def delete(request, uuid):
|
||||
backup = get_object_or_404(Backup, uuid=uuid)
|
||||
try:
|
||||
|
|
@ -176,13 +198,23 @@ def delete(request, uuid):
|
|||
return redirect(same_origin_referer(request, reverse("vmbackups:index")))
|
||||
|
||||
|
||||
@superuser_only
|
||||
@login_required
|
||||
def restore(request, uuid):
|
||||
"""Restore a ready backup as a new VM: a backup.restore job, followed on its page."""
|
||||
backup = get_object_or_404(Backup.objects.select_related("target"), uuid=uuid, state=Backup.READY)
|
||||
form = RestoreForm(request.POST or None, backup=backup)
|
||||
"""Restore a ready backup as a new VM: a backup.restore job, followed on
|
||||
its page. A VM owner's goes to the VM's compute and its first disk's pool."""
|
||||
backup = get_object_or_404(Backup.objects.select_related("target", "instance__compute"), uuid=uuid,
|
||||
state=Backup.READY)
|
||||
_may_restore(request.user, backup)
|
||||
place = None
|
||||
if not request.user.is_superuser:
|
||||
try:
|
||||
place = {"compute": backup.instance.compute, "pool": _vm_pool(backup.instance)}
|
||||
except (libvirtError, OperationError) as err:
|
||||
messages.error(request, error_text(request, err))
|
||||
return redirect(reverse("instances:instance", args=[backup.instance_id]) + "#backups")
|
||||
form = RestoreForm(request.POST or None, backup=backup, place=place)
|
||||
if form.is_valid():
|
||||
data = form.cleaned_data
|
||||
data = {**form.cleaned_data, **(place or {})}
|
||||
raw = {"backup": str(backup.uuid), "compute": data["compute"].pk, "pool": data["pool"], "name": data["name"],
|
||||
"connect": data["connect"], "start": data["start"]}
|
||||
try:
|
||||
|
|
@ -193,7 +225,7 @@ def restore(request, uuid):
|
|||
form.add_error(None, error_text(request, err))
|
||||
else:
|
||||
return redirect("operations:job", op.pk)
|
||||
return render(request, "vmbackups/restore.html", {"backup": backup, "form": form})
|
||||
return render(request, "vmbackups/restore.html", {"backup": backup, "form": form, "place": place})
|
||||
|
||||
|
||||
def _submit(request, kind, raw):
|
||||
|
|
@ -207,17 +239,18 @@ def _submit(request, kind, raw):
|
|||
return None
|
||||
|
||||
|
||||
@superuser_only
|
||||
@login_required
|
||||
def restore_over(request, uuid):
|
||||
"""Restore a ready backup over its own shut-off VM, after the page shows
|
||||
which volumes it makes: a backup.restore_over job, followed on its page."""
|
||||
backup = get_object_or_404(Backup.objects.select_related("target", "instance__compute"), uuid=uuid,
|
||||
state=Backup.READY, instance__isnull=False)
|
||||
_may_restore(request.user, backup)
|
||||
if request.method == "POST" and (op := _submit(request, "backup.restore_over", {"backup": str(backup.uuid)})):
|
||||
return redirect("operations:job", op.pk)
|
||||
over, problem = None, None
|
||||
try:
|
||||
over = _over_plan(backup, _proxy(backup.instance))
|
||||
over = _over_plan(backup, _proxy(backup.instance), owner=not request.user.is_superuser)
|
||||
except (OperationError, libvirtError) as err:
|
||||
problem = error_text(request, err)
|
||||
disks = [{"dev": dev, "old": over["old"][dev], "pool": pool, "name": name}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue