yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01499
[Bug 1083424] Re: ephemeral devices on LVM don't get mkfs'd
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1083424
Title:
ephemeral devices on LVM don't get mkfs'd
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
ephemeral device creation when using LVM devices does not cause the
resulting filesystem to get newfs'd
Reading through nova code:
in utils.py/LibvirtDriver/_create_image
fn = functools.partial(self._create_ephemeral,
fs_label='ephemeral0',
os_type=instance["os_type"])
then:
image('disk.local').cache(fetch_func=fn,
filename=fname,
size=size,
ephemeral_size=ephemeral_gb)
is called
cache() then calls imagebackend.py/Lvm/create_image
create_image() then calls libvirt_utils.create_lvm_image, which creates the LVM
prepare_template() is then called, leading us cache.call_if_not_exists
call_if_not_exists contains the following check:
if not os.path.exists(target):
since create_image has already created the lvm device, the /dev/ entry exists and therefore our fetch_func (self._create_ephemeral) never gets called, and no filesystem is created on the ephemeral device.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1083424/+subscriptions