Comment 5 for bug 1204424

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/48362
Committed: http://github.com/openstack/nova/commit/474e48bf1169a24123e92381f45650b29990d3bf
Submitter: Jenkins
Branch: master

commit 474e48bf1169a24123e92381f45650b29990d3bf
Author: Vladik Romanovsky <email address hidden>
Date: Thu Sep 26 16:41:40 2013 -0400

    Fixing ephemeral disk creation.

    The patch addresses 2 scenarios, which occur when
    CONF.default_ephemeral_format was provided:

    1. Creation of ephemeral block devices would fail,
       due to permission issues, during an attempt to format it without sudo,
       in _create_local.
    2. The device/image would be formatted twice, while the final
       filesystem will differ from the one provided in
       CONF.default_ephemeral_format.

    This patch will format only once, relying on the changed
    disk.mkfs command, that takes CONF.default_ephemeral_format
    into consideration.
    It will also run the command as root only for block devices,
    according to the disk_image is_block_dev property.

    Closes-Bug: #1204424
    Change-Id: I2bf7abc982e20eaaf7bca7cd798b4134b76d10a8