In my experience, it happens when Swift storage backing Glance was
purged, but it can probably also happen if an image never had data
at all. This patch raises a correct exception instead of TypeError.
Switch relevant unit tests to Glance V2, as V1 is long deprecated.
Reviewed: https:/ /review. openstack. org/531180 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=70039cbe607 195f66872d86409 76c13284f75b79
Committed: https:/
Submitter: Zuul
Branch: master
commit 70039cbe607195f 66872d8640976c1 3284f75b79
Author: Dmitry Tantsur <email address hidden>
Date: Thu Jan 4 16:47:20 2018 +0100
Handle case when a glance image contains no data
In my experience, it happens when Swift storage backing Glance was
purged, but it can probably also happen if an image never had data
at all. This patch raises a correct exception instead of TypeError.
Switch relevant unit tests to Glance V2, as V1 is long deprecated.
Change-Id: I75e5ae7f46ce3a 1506ed6108ff05d f3083fd5084
Closes-Bug: #1741223