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.
Reviewed: https:/ /review. openstack. org/48362 github. com/openstack/ nova/commit/ 474e48bf1169a24 123e92381f45650 b29990d3bf
Committed: http://
Submitter: Jenkins
Branch: master
commit 474e48bf1169a24 123e92381f45650 b29990d3bf
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 default_ ephemeral_ format was provided:
CONF.
1. Creation of ephemeral block devices would fail,
CONF.default_ ephemeral_ format.
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
This patch will format only once, relying on the changed ephemeral_ format
disk.mkfs command, that takes CONF.default_
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 aaf7bca7cd798b4 134b76d10a8
Change-Id: I2bf7abc982e20e