-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libvirt: fix disk_bus handling for root disk
- The hw_disk_bus image metadata key allows users to specify the bus to which guest hard disk images are attached for libvirt instances. - In commit 7be531f the libvirt disk mappings were refactored. As part of that change a lossy conversion was introduced which resulted in multiple disk buses being mapped to the same block device prefix. - As a result of this lossy mapping hw_disk_bus=sata and hw_disk_bus=usb were mapped to the same prefix as scsi "sd". this resulted in the request to use sata or usb root disk being ignored. - This change fixes handling of the root disk device bus selection in libvirt blockinfo.py by using the disk bus provided instead of inferring it from the block device name. - This change adds a new unit test to assert the correct handeling of the hw_disk_bus image metadata key in the libvirt driver. Change-Id: I63836f461507f4924dc8f3491ef518a4ce4d32f9 Closes-Bug: 1759420
- Loading branch information
1 parent
38b2150
commit 1ba150f
Showing
3 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters