Updated imagebackend to run the necessary callback conditionally
based on whether LVM is configured for use and ephemeral_size is
defined. The callback function was updated not to invoke qemu-img
for LVM, since the ephemeral disk is already present/created via
LVM. Lastly, the mkfs call had to be changed to be run as root,
since we are dealing with raw devices.
Reviewed: https:/ /review. openstack. org/23253 github. com/openstack/ nova/commit/ 8bd8da476c9e771 8cea6552e767ea5 1727d28418
Committed: http://
Submitter: Jenkins
Branch: master
commit 8bd8da476c9e771 8cea6552e767ea5 1727d28418
Author: Rafi Khardalian <email address hidden>
Date: Fri Mar 1 08:53:52 2013 +0000
Fix ephemeral devices on LVM don't get mkfs'd
Fixes bug 1083424
Updated imagebackend to run the necessary callback conditionally
based on whether LVM is configured for use and ephemeral_size is
defined. The callback function was updated not to invoke qemu-img
for LVM, since the ephemeral disk is already present/created via
LVM. Lastly, the mkfs call had to be changed to be run as root,
since we are dealing with raw devices.
Change-Id: Ieb1febb0ea086f 8e5063d92ca376d 349fcd43a43