Glance: Failed to Upload Image Data Due to HTTP Error
Problem
Uploading an image to Glance or creating a snapshot of an instance fails silently.
The following exception is seen in /var/log/pf9/ostackhost.log on the host where the instance resides.
On the Glance node, the Glance API logs in /var/log/glance/api.log logs the following error.
Environment
Platform9 Managed OpenStack - v3.7.0 and Higher
Cause
The directory on the Glance nodes where the snapshots/images are uploaded have incorrect permissions.
Resolution
The directory where the Glance images are uploaded should have the following permissions.
Ownership: pf9:pf9group
Permission: 755
Additional Information
In this scenario, enabling the debug mode for Glance won't help.
To identify the issue, capture the strace of the Glance process when uploading an image or taking a snapshot.
To stop the strace capture, press Ctrl+C.
