mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
fix(instances): USB device changes as PCI ones; device refusals name no VM to owners
- A USB device added to or removed from a VM with a saved state applied only at the next cold boot: refused now, as for PCI devices, and the form says so. - A USB hot plug or removal that failed half way said only libvirt's error: it now says where the device is, as for PCI devices (_hostdev_outcome, shared). - A host device refusal (check_hostdevs) names the other VMs that have the device; users who do not see the hosts, such as an owner whose snapshot revert is refused, now read that a device is not free and that an administrator can see why. - The host's USB devices named among a PCI device's host resources were English in every language.
This commit is contained in:
parent
d07362106a
commit
2db25314ea
12 changed files with 662 additions and 563 deletions
|
|
@ -115,6 +115,15 @@ class StartCheckTests(SimpleTestCase):
|
|||
self.proxy(gone, saved=gone).check_start_hostdevs(restore=False)
|
||||
|
||||
|
||||
class ResourceLanguageTests(SimpleTestCase):
|
||||
def test_a_usb_device_the_host_has_is_named_in_the_reader_s_language(self):
|
||||
from django.utils import translation
|
||||
|
||||
with translation.override("tr"):
|
||||
pci_devices, _ = devices()
|
||||
self.assertEqual(pci_devices[-1]["resources"], ["USB aygıtı 1/2 (QEMU Tablet)", "USB aygıtı 1/3 (QEMU Tablet)"])
|
||||
|
||||
|
||||
class NodeDevicesTests(SimpleTestCase):
|
||||
def test_pci_devices_by_group_with_what_the_host_has_on_them(self):
|
||||
pci_devices, _ = devices()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue