If you run image-import api on any image which is in queued state having
valid container-format and disk-format set will return 500 error as it
raises IOError: [Errno 2] No such file or directory:
'/tmp/staging/567bfb61-d9f7-47e5-aa1a-90b7797e70be'. The reason is image
does not have data stored in staging area.
Restricted transition from queued to importing state and returned HTTP 409
conflict error to the user.
Reviewed: https:/ /review. openstack. org/522703 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=a19fdb0e5f4 7eb5ea6f5150e05 6f1df26fb8b7e9
Committed: https:/
Submitter: Zuul
Branch: master
commit a19fdb0e5f47eb5 ea6f5150e056f1d f26fb8b7e9
Author: Abhishek Kekane <email address hidden>
Date: Fri Nov 24 04:08:13 2017 +0000
Fix 500 from image-import on queued images
If you run image-import api on any image which is in queued state having staging/ 567bfb61- d9f7-47e5- aa1a-90b7797e70 be'. The reason is image
valid container-format and disk-format set will return 500 error as it
raises IOError: [Errno 2] No such file or directory:
'/tmp/
does not have data stored in staging area.
Restricted transition from queued to importing state and returned HTTP 409
conflict error to the user.
Change-Id: I3d3ab283fd0faf 4b63365ff2dbeb7 14913f02b27
Closes-Bug: #1733813