nova/nova/tests/functional/libvirt
Lee Yarwood db40cc44cb libvirt: Use SATA bus for cdrom devices when using Q35 machine type
The Q35 machine type no longer provides an IDE bus and will need to use
a SATA bus to attach legacy devices such as cdroms. More details can be
found in the following related bug:

Don't assume the guest machine type to be of 'pc'
https://bugs.launchpad.net/nova/+bug/1780138

This change now ensures the blockinfo.get_disk_bus_for_device_type
method will now return "sata" as the bus type when the Q35 machine type
is used for cdrom devices on QEMU or KVM hosts that are not PPC, S390 or
AArch64 based.

To enable this the _get_machine_type method has been extracted from the
Libvirt driver into the Libvirt utils module. This method has also been
simplified through the removal of the caps parameter, replaced with
calls to the get_arch utility method and additional extraction of
architecture specific defaults into the existing
get_default_machine_type utility method.

Related-bug: 1780138
Closes-bug: 1831538
Change-Id: Id97f4baddcf2caff91599773d9b5de5181b7fdf6
(cherry picked from commit 527c452a6f)
2019-06-13 15:56:58 +00:00
..
__init__.py tests: introduce a NUMAServersTest class 2015-04-16 11:43:53 -04:00
base.py libvirt: Use SATA bus for cdrom devices when using Q35 machine type 2019-06-13 15:56:58 +00:00
test_numa_servers.py Include all network devices in nova diagnostics 2019-05-04 09:44:22 -06:00
test_pci_sriov_servers.py Include all network devices in nova diagnostics 2019-05-04 09:44:22 -06:00
test_report_cpu_traits.py Convert driver supported capabilities to compute node provider traits 2019-02-28 23:28:19 +00:00
test_reshape.py FUP for test_reshape 2019-03-06 15:12:54 -06:00
test_rt_servers.py tests: Create functional libvirt test base class 2018-08-23 17:37:50 +00:00
test_shared_resource_provider.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00