Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process image BDM earlier to avoid duplicates
If the block device mapping from the image properties are not handled at the same time as the ones defined from the API, we might make the false assumption that the instance has no root and failing or, in the case we're booting from an image that only defines a BDM and has no disk, creating a local disk BDM as root and ending up with two root devices which is forbidden. This patch moves the handling of the image block device mappings to the same method were we check the ones provided throught the API. This allows nova to decide wether the instance needs a local disk from an image if no root device is defined in any of the block device mappings. Change-Id: Ide95357895ab4dd1338ab5ee3ec25294af1d010b Closes-Bug: #1246327 (cherry picked from commit 482dfeb)
- Loading branch information
Xavier Queralt
committed
Nov 22, 2013
1 parent
cad49c3
commit 1d2a0b8
Showing
2 changed files
with
34 additions
and
20 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