Files
nova/api-ref/source
Lee Yarwood bbc562c572 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.

Conflicts:
    nova/tests/unit/compute/test_compute_api.py

NOTE(lyarwood): Conflict as If9c459a9a0aa752c478949e4240286cbdb146494 is
not present in stable/train. test_validate_bdm_disk_bus is also updated
as Ib31ba2cbff0ebb22503172d8801b6e0c3d2aa68a is not present in
stable/train.

Closes-Bug: #1876301
Change-Id: I77b28b9cc8f99b159f628f4655d85ff305a71db8
(cherry picked from commit 5913bd889f)
(cherry picked from commit fb31ae430a)
2020-09-03 15:24:37 +01:00
..
2019-07-05 13:24:18 +09:00
2019-08-12 08:52:38 -05:00
2019-07-22 19:17:28 +02:00
2019-08-30 10:04:56 +08:00
2016-11-11 14:01:51 -05:00
2017-03-31 06:19:01 +00:00
2019-07-22 19:17:28 +02:00
2019-04-16 18:26:13 +01:00
2017-03-29 01:37:56 +08:00
2019-07-22 19:17:28 +02:00
2017-11-28 11:07:36 +08:00
2019-07-22 19:17:28 +02:00
2019-07-22 19:17:28 +02:00
2019-07-22 19:17:28 +02:00
2019-07-22 19:17:28 +02:00
2019-07-22 19:17:28 +02:00
2019-07-22 19:17:28 +02:00
2017-07-13 11:40:43 +08:00
2019-07-22 19:17:28 +02:00