Free disk space check (for raw image) ignores sparseness
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Triaged
|
Medium
|
Unassigned |
Bug Description
Ironic uses qemu-img to convert this QCOW file to a "raw" image, which is a *sparse* file. Currently ironic-conductor errors out if local file system doesn't have enough free space to accommodate the *virtual* size of the image (which can span the entire storage device).
In fact, the actual disk space consumed by the sparse raw image is fairly close to the size of the QCOW file. For example:
$ qemu-img info overcloud-
image: overcloud-
file format: qcow2
virtual size: 100G (107374182400 bytes)
disk size: 7.0G
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false
$ qemu-img convert -O raw overcloud-
$ ls -lh overcloud-
-rw-r--r--. 1 stack stack 100G Jan 17 14:13 overcloud-
$ du -h overcloud-
6.7G overcloud-
This bug is to make Ironic not requiring excessive space on its local file system for raw images.
Changed in ironic: | |
assignee: | nobody → Ilya Etingof (etingof) |
status: | New → In Progress |
Changed in ironic: | |
importance: | Undecided → Medium |
Changed in ironic: | |
status: | In Progress → Triaged |
assignee: | Ilya Etingof (etingof) → nobody |