ImageSizeLimitExceeded exception block [1] is unreachable in upload because
it is caught at [1] and raised StorageQuotaFull exception from there.
Further as it raised StorageQuataFull exception it prints None as a size in the glance-api logs.
Reference glance-api-logs:
Nov 28 07:04:13 devstack <email address hidden>[11453]: ERROR glance.api.v2.image_data [None req-17b243db-9b3d-46d9-97f0-05f74bc76e18 admin admin] Image exceeds the storage quota: The size of the data None will exceed the limit. None bytes remaining.: StorageQuotaFull: The size of the data None will exceed the limit. None bytes remaining.
To make it correct we need to remove code from [2] where ImageSizeLimitExceeded is caught and StorageQuotaFull is raised so that it will be reachable in the controller [1].
ImageSizeLimitE xceeded exception block [1] is unreachable in upload because
it is caught at [1] and raised StorageQuotaFull exception from there.
Further as it raised StorageQuataFull exception it prints None as a size in the glance-api logs.
Reference glance-api-logs: api.v2. image_data [None req-17b243db- 9b3d-46d9- 97f0-05f74bc76e 18 admin admin] Image exceeds the storage quota: The size of the data None will exceed the limit. None bytes remaining.: StorageQuotaFull: The size of the data None will exceed the limit. None bytes remaining.
Nov 28 07:04:13 devstack <email address hidden>[11453]: ERROR glance.
To make it correct we need to remove code from [2] where ImageSizeLimitE xceeded is caught and StorageQuotaFull is raised so that it will be reachable in the controller [1].
[1] https:/ /github. com/openstack/ glance/ blob/master/ glance/ api/v2/ image_data. py#L232 /github. com/openstack/ glance/ blob/master/ glance/ quota/_ _init__ .py#L305
[2] https:/