cinder-volume: Stop masking IOError different than ENOSPC
When glanceclient raises an IOError with a different errno than ENOSPC,
cinder-volume silently masked it and continued its volume creation
process. The result was volumes with invalid content being successfuly
created.
With the patch, an ImageDownloadFailed exception is raised in this case,
which makes the volume creation process fail and gives enough
information to operators for troubleshooting.
Reviewed: https:/ /review. openstack. org/612393 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=864c074ff15 db601c896dadc28 42ae703861c0dd
Committed: https:/
Submitter: Zuul
Branch: master
commit 864c074ff15db60 1c896dadc2842ae 703861c0dd
Author: Francois Deppierraz <email address hidden>
Date: Mon Oct 22 15:33:25 2018 +0200
cinder-volume: Stop masking IOError different than ENOSPC
When glanceclient raises an IOError with a different errno than ENOSPC,
cinder-volume silently masked it and continued its volume creation
process. The result was volumes with invalid content being successfuly
created.
With the patch, an ImageDownloadFailed exception is raised in this case,
which makes the volume creation process fail and gives enough
information to operators for troubleshooting.
Change-Id: Ic011fe30b4840e 5098db1a594ea27 6ec98768bff
Closes-Bug: #1799221