
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: I75e5ae7f46ce3a1506ed6108ff05df3083fd5084 Closes-Bug: #1741223