nova/nova/tests/unit/virt
Kevin Zhao 041a62d0d5 fix scsi disk unit number of the attaching volume when cdrom bus is scsi
From Image Meta Properties: hw_cdrom_bus=scsi, and use virtio-scsi mode,
it will also need a disk address for it. So we need to calculate the
disk address when call the function to get the next unit of scsi controller.

Closes-Bug: #1867075
Change-Id: Ifd8b249de3e8f96fa13db252f0abe2b1bd950de0
Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org>
(cherry picked from commit c8d6767cf8)
(cherry picked from commit 11b2b7f0b3)
(cherry picked from commit 86328d1146)
(cherry picked from commit 3b2c6ccf26)
2020-07-20 16:51:16 +02:00
..
disk lxc: make use of filter python3 compatible 2019-10-02 13:41:45 +00:00
hyperv Fix 'has_calls' method calls in unit tests 2019-08-20 12:38:25 +09:00
image Use assert(Not)Equal instead of assertTrue(A == X) 2016-06-03 16:53:15 +01:00
ironic Lowercase ironic driver hash ring and ignore case in cache 2020-05-01 14:52:24 +00:00
libvirt fix scsi disk unit number of the attaching volume when cdrom bus is scsi 2020-07-20 16:51:16 +02:00
powervm Use correct arguments in task inits 2018-02-13 17:05:21 -05:00
vmwareapi Fix wrong assertions in unit tests 2019-08-20 14:11:51 +09:00
xenapi xenapi/agent: Change openssl error handling 2019-04-30 09:07:53 -04:00
__init__.py
fakelibosinfo.py Stop sending bad values from libosinfo to libvirt 2019-10-11 09:34:10 +01:00
test_block_device.py block_device: Rollback volumes to in-use on DeviceDetachFailed 2018-08-10 16:38:18 +01:00
test_configdrive.py
test_driver.py Remove usage of parameter enforce_type 2017-04-17 20:23:19 +08:00
test_events.py
test_fake.py
test_firewall.py remove get_nw_info_for_instance from compute.utils 2017-06-13 13:30:06 +02:00
test_hardware.py [Stable Only] hardware: Handle races during pinning 2019-03-27 12:29:05 +00:00
test_imagecache.py Remove mox from tests/unit/virt/test_imagecache.py 2016-06-16 23:40:01 +00:00
test_images.py mock utils.execute() in qemu-img unit test 2018-06-11 13:31:44 +00:00
test_netutils.py Remove unnecessary code 2017-07-28 06:01:21 +00:00
test_osinfo.py Stop sending bad values from libosinfo to libvirt 2019-10-11 09:34:10 +01:00
test_virt.py Rename block_device_info_get_root 2018-01-11 20:46:13 +00:00
test_virt_drivers.py libvirt: move checking CONF.my_ip to init_host() 2019-07-22 16:30:12 -04:00