A python library of common ironic utilities.
Go to file
Ian Pilcher ab0492a364 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
2018-01-16 18:22:27 -06:00
doc/source Update and replace http with https for doc links 2017-07-21 16:40:32 +08:00
etc/rootwrap.d Fix retrieval of config-2 existing partition 2017-01-11 14:55:40 -08:00
ironic_lib Use dd conv=sparse when writing images to nodes 2018-01-16 18:22:27 -06:00
playbooks/legacy Use the tempest plugin from openstack/ironic-tempest-plugin 2017-12-14 10:29:33 -08:00
zuul.d Use the tempest plugin from openstack/ironic-tempest-plugin 2017-12-14 10:29:33 -08:00
.gitignore Migrate to stestr as unit tests runner 2017-09-26 09:22:22 -07:00
.gitreview Add .gitreview 2015-03-27 10:01:11 +01:00
.stestr.conf Migrate to stestr as unit tests runner 2017-09-26 09:22:22 -07:00
CONTRIBUTING.rst Update and replace http with https for doc links 2017-07-21 16:40:32 +08:00
LICENSE Initial commit for ironic-lib 2015-02-26 04:15:08 -08:00
MANIFEST.in Added project infrastructure needs. 2013-05-02 14:55:43 -04:00
README.rst Update and replace http with https for doc links 2017-07-21 16:40:32 +08:00
TESTING.rst Add prefix "$" for command examples 2016-09-28 22:19:51 +09:00
requirements.txt Updated from global requirements 2018-01-16 12:29:38 +00:00
setup.cfg Correct url in setup.cfg for documentation path 2017-07-19 20:11:19 +00:00
setup.py Updated from global requirements 2017-03-02 11:45:33 +00:00
test-requirements.txt Updated from global requirements 2018-01-16 12:29:38 +00:00
tox.ini tox: Use the default version of Python 3 for tox tests 2017-12-11 07:29:39 -08:00

README.rst

Team and repository tags

image

ironic_lib

Overview

A common library to be used exclusively by projects under the Ironic governance.

Running Tests

To run tests in virtualenvs (preferred):

$ sudo pip install tox
$ tox

To run tests in the current environment:

$ sudo pip install -r requirements.txt
$ nosetests