Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set bootable flag for volume cloned from image
In previous code we don't set the bootable flag for volume cloned from image. This does not appear to break booting from volume at present but the status displayed by the cinder client is broken. The bug is reported and fixed several months ago(bug #1185533) but the author doesn't provide unit test with the patch. Now it has been broken again by somebody else.The patch re-fixed this bug together with unit tests. Also add a function named _handle_bootable_volume_glance_meta, it is a combination of enable_bootable_flag and glance_metadata handling. There are 3 kinds of volume creation tasks may required to copy/fetch the glance metadata. In previous code every kind of task have its own handling code, this patch consolidate them together to share some common code. fixed bug #1211272 fixed bug #1185533 Change-Id: I86007e26efbebe58dc0c5995b6f14f68258144b5
- Loading branch information
1 parent
d2b48cd
commit 162aa28
Showing
2 changed files
with
94 additions
and
58 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