OpenStack: During new Cinder volume creation copying image from Glance takes long time
Applies to
- OpenStack Yoga and earlier releases
- NFS
Issue
When provisioning a new Cinder volume:
- Volume provisioning can take 10 minutes or more
- When reviewing the Cinder volume.log, a bulk of the time is spent pulling the Glance image:
2022-07-12 10:58:56.195 190 DEBUG cinder.image.image_utils [req-xxxx] Image fetch details: dest /var/lib/cinder/conversion/image_fetch_1234host@netapp, size 3012.00 MB, duration 544.82 sec fetch /usr/lib/python3.6/site-packages/cinder/image/image_utils.py:465
2022-07-12 10:58:56.195 190 INFO cinder.image.image_utils [req-xxxx] Image download 3012.00 MB at 5.53 MB/s
- The above image fetch task took over 9 minutes to complete.
Performing a copy outside of OpenStack takes seconds:
# time cp /var/lib/glance/images/1234-5678-abcd-1234-123456789012 temp/
real 0m4.030s
user 0m0.004s
sys 0m1.495s