Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Creating Instances from Newly Added Image Fail with Error ‘Corrupt Image Download’
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
Instance creation with newly added image in Glance Image Library fails with the below error in /var/log/pf9/ostackhost.log on the compute host.
/var/log/pf9/ostackhost.log
x
ERROR nova.image.glance [<request_UUID>] Error writing to /opt/pf9/data/instances/_base/<base_disk_UUID>.part: [Errno 32] Corrupt image download. Checksum was a1b2c3d4 expected p5q6r7s8: BrokenPipeError: [Errno 32] Corrupt image download. Checksum was a1b2c3d4 expected p5q6r7s8 ERROR nova.compute.manager [<request_UUID>] [instance: <instance_UUID>] Instance failed to spawn: BrokenPipeError: [Errno 32] Corrupt image download. Checksum was a1b2c3d4 expected p5q6r7s8Environment
- Platform9 Managed OpenStack - All Versions
- Glance
- Images
- Nova
Cause
- For larger images that are copied over the network (via SCP, FTP, etc) to the Image Library directory directly, the image transfer can take a longer time. In such a case, Image Library could calculate the checksum of a partial image and store it in glance-registry.
- As the checksum differs from the image downloaded by Nova and the image in the Image Library directory, instances creation from that image will fail.
Image Library adds the metadata with the checksum of the glance image to the glance-registry from the image content monitored directory ( Image Library directory default path: /var/opt/pf9/imagelibrary/data/ ).
Resolution
- Remove the existing problematic image from the glance:
command
xxxxxxxxxx$ glance image-delete <image-name>- The recommended method is to transfer the image to Glance hosts in a temporary/home directory and then move it to the image content monitored directory.
example
xxxxxxxxxx$ scp myimage.img <username>@<glance-host>:/tmp/$ ssh <username>@<glance-host>$ mv /tmp/myimage.img /var/opt/pf9/imagelibrary/data/OR
- Use the glance image-create command to upload the image, Refer Managing Images with CLI article.
example
xxxxxxxxxx$ qemu-img info myimage.imgimage: myimage.imgfile format: qcow2virtual size: 39M (41126400 bytes)disk size: 13Mcluster_size: 65536 $ glance image-create --disk-format qcow2--container-format bare--file /tmp/myimage.img--visibility public--name myimage--property pf9_description='best image ever'--property pf9_virtual_size=41126400VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message