Fix dropped check for boot_index 0 in _validate_bdm
This reverts commit 7f4b49c9c97e06babf82f6846c804ad176cd4cde.
During refactor change I8a3e7e6c4b72eb1c3707d54049d18dc29f606fe5
the conditional that at least one BDM had to be the boot
device was inadvertantly dropped, presumably because there was
no test for that case.
The validation is added back here along with a test.
Change-Id: I299bf846b658f2bb6903c898d7deac748f8d90e4
Related-Bug: #1766306
(cherry picked from commit b9815c2331904a3749269289b861229796aa6c91)
Reviewed: https:/ /review. openstack. org/564461 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=dcb51804127 a40768f543fa30b 6b505695bf64d1
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit dcb51804127a407 68f543fa30b6b50 5695bf64d1
Author: Matt Riedemann <email address hidden>
Date: Mon Apr 23 14:33:25 2018 -0400
Fix dropped check for boot_index 0 in _validate_bdm
This reverts commit 7f4b49c9c97e06b abf82f6846c804a d176cd4cde.
During refactor change I8a3e7e6c4b72eb 1c3707d54049d18 dc29f606fe5
the conditional that at least one BDM had to be the boot
device was inadvertantly dropped, presumably because there was
no test for that case.
The validation is added back here along with a test.
Change-Id: I299bf846b658f2 bb6903c898d7dea c748f8d90e4 749269289b86122 9796aa6c91)
Related-Bug: #1766306
(cherry picked from commit b9815c2331904a3