Openstack large image support issue
So I setup DevStack recently. I was able to upload a CentOS 7 image without any issues. I attempted to upload a Windows 2016 image (about ~11GB) from both Horizon and cli glance command, both fail. CLI gives a 502 Bad Gateway error.
Further log digging shows Apr 12 07:25:33 openstack01 object-server[26115]: ERROR call error with PUT /sdb1/473/AUTH_a9537f5d592146ef9d2eaed1cc9bc085/glance/5cb069be-d0d5-47a6-9beb-5d601023ae55-00030 : [Errno 28] No space left on device (txn: tx3b4278790601491c94b11-005e92c26b).
There is space left on the device. My drive has around 1TB free. Searching suggested I change SWIFT_LOOPBACK_DISK_SIZE_DEFAULT in lib\swift to a larger size. I changed it 25G. Issue persists after unstacking and stacking.
Anyone have any other solutions?
Posted Apr 12, 2020, 9:26 PM UTC
So I would do the following:
I have run the cloudbase-init git scripts to prepare windows images and was able to get 2016 and 2019 down to only a few gb. Virtually the disk were 80gb but the image was small.
Not sure about devstack but on say redhat openstack glance uses folders on the control plane to do the image juggling, you can run out of space there during the provisioning process if your image is monsterous.
Use this: https://github.com/cloudbase/windows-openstack-imaging-tools