commit db40cc44cbad32353510819c0aee1d0a3c9e4357
Author: Lee Yarwood <email address hidden>
Date: Tue Jun 4 11:57:18 2019 +0100
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:
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.
Reviewed: https:/ /review. opendev. org/663677 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=db40cc44cba d32353510819c0a ee1d0a3c9e4357
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit db40cc44cbad323 53510819c0aee1d 0a3c9e4357
Author: Lee Yarwood <email address hidden>
Date: Tue Jun 4 11:57:18 2019 +0100
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' /bugs.launchpad .net/nova/ +bug/1780138
https:/
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 default_ machine_ type utility method.
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_
Related-bug: 1780138 ff91599773d9b5d e5181b7fdf6 16eb8121796f761 af97522772)
Closes-bug: 1831538
Change-Id: Id97f4baddcf2ca
(cherry picked from commit 527c452a6fc05a3