Still "no space left" error during deploy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
jiang, yunhong |
Bug Description
I have seen deploys error because of lack of disk space:
Stderr: 'qemu-img: error while writing sector 2768741: No space left on device\n'
------- NOTE(dtantsur): this is part of original report, bug this assumption looks wrong to me -------
the get_image_mb function is used when checking for free disk space. This check may not be valid for all drivers as some drivers (like iscsi) also convert the image to RAW format.
for drivers that do convert the image to another format such as raw we should also be checking the images virtual size and The compressed size as both need to be held on the disk for deployment.
(seed)nobodycam
image: basicNew.qcow2
file format: qcow2
virtual size: 1.5G (1560084480 bytes)
disk size: 319M
cluster_size: 65536
Changed in ironic: | |
assignee: | nobody → jiang, yunhong (yunhong-jiang) |
Changed in ironic: | |
milestone: | none → 4.1.0 |
status: | Fix Committed → Fix Released |
https:/ /github. com/openstack/ ironic/ blob/master/ ironic/ common/ images. py#L295: images. converted_ size() is used for checking for enough disk space already and it uses virtual size, so there should be another reason. Probably some mistake in clean_up_caches: https:/ /github. com/openstack/ ironic/ blob/master/ ironic/ drivers/ modules/ image_cache. py#L327