nova/nova/tests/unit/api
Lee Yarwood 5913bd889f compute: Validate a BDMs disk_bus when provided
Previously disk_bus values were never validated and could easily end up
being ignored by the underlying virt driver and hypervisor.

For example, a common mistake made by users is to request a virtio-scsi
disk_bus when using the libvirt virt driver. This however isn't a valid
bus and is ignored, defaulting back to the virtio (virtio-blk) bus.

This change adds a simple validation in the compute API using the
potential disk_bus values provided by the DiskBus field class as used
when validating the hw_*_bus image properties.

Closes-Bug: #1876301
Change-Id: I77b28b9cc8f99b159f628f4655d85ff305a71db8
2020-07-29 16:05:48 +00:00
..
openstack compute: Validate a BDMs disk_bus when provided 2020-07-29 16:05:48 +00:00
validation hardware: Enable 'hw:cpu_dedicated_mask' for creating a mixed instance 2020-07-21 15:18:41 +08:00
__init__.py
test_auth.py Deprecate [api]auth_strategy and noauth2 2019-10-09 15:16:07 -05:00
test_compute_req_id.py Migrate to oslo request_id middleware - mv 2.46 2017-05-27 10:11:44 +00:00
test_wsgi.py api: Remove 'Debug' middleware 2019-09-27 15:27:30 +01:00