cinder/releasenotes/notes/bug-1799221-fix-truncated-volumes-in-case-of-glance-errors-6cae19218249c3cf.yaml
Francois Deppierraz 864c074ff1 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: Ic011fe30b4840e5098db1a594ea276ec98768bff
Closes-Bug: #1799221
2019-01-04 18:09:46 +00:00

7 lines
204 B
YAML

---
fixes:
- |
Fixed a bug which could create volumes with invalid content in case of
unhandled errors from glance client
(Bug `#1799221 <https://bugs.launchpad.net/cinder/+bug/1799221>`_).