ironic-lib/ironic_lib
Ian Pilcher 9347e60f9b Use dd conv=sparse when writing images to nodes
When using whole disk images, one generally wants the *virtual*
size of the image to be close to the size of the overcloud nodes'
physical disks (since no partition/logical volume/filesystem
expansion is done). As an example, one might end up with a 4GB
overcloud image (QCOW file) that has a virtual size of 100GB or
more.

Ironic uses qemu-img to convert this QCOW file to a "raw" image,
which is a *sparse* file. When the image is copied to an overcloud
node's disk (via iSCSI), we currently write all 100GB (mainly of
zeroes) across the network to the node's disk.

Adding conv=sparse to the dd command makes it skip the "holes" in
the image file; it will only the write the portions of the image
that actually contain data across the network.

Closes-Bug #1743651

Change-Id: Ief3688b210c3b19ce8be45c5f9571b7ba6e79127
(cherry picked from commit ab0492a364)
2018-01-18 11:58:26 +00:00
..
common Remove translation of log messages 2017-03-21 12:12:56 -07:00
tests Merge "Adjust test with option 'backend'" 2017-06-19 13:59:52 +00:00
__init__.py Initial commit for ironic-lib 2015-02-26 04:15:08 -08:00
disk_partitioner.py Remove translation of log messages 2017-03-21 12:12:56 -07:00
disk_utils.py Use dd conv=sparse when writing images to nodes 2018-01-18 11:58:26 +00:00
exception.py Remove translation of log messages 2017-03-21 12:12:56 -07:00
metrics.py Enforce doc8, make it pass, + fix inaccuracies 2016-08-18 16:47:22 +00:00
metrics_statsd.py Remove translation of log messages 2017-03-21 12:12:56 -07:00
metrics_utils.py Add support for metrics 2016-06-28 13:38:01 +01:00
utils.py Remove translation of log messages 2017-03-21 12:12:56 -07:00
version.py Add framework for doc building in ironic-lib 2016-08-18 09:14:52 -07:00