HTTP 413 : Failed to add object to Swift. Got error from Swift

Bug #1926404 reported by Rajiv Mucheli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance_store
Fix Released
High
Erno Kuvaja
Victoria
Fix Released
High
Erno Kuvaja
Wallaby
Triaged
High
Erno Kuvaja
Xena
Triaged
High
Erno Kuvaja

Bug Description

Hi,

Openstack Glance Version : Victoria
Openstack Swift Version : Victoria

During image_upload, the HTTP 413 error is generated in glance-api logs if swift quota is full and hence the entire image_upload fails and delete operation is triggered :

Caught error: Failed to add object to Swift.
Got error from Swift: Object PUT failed: https://objectstore-3.xxx:443/v1/AUTH_22a2e2dfd8dd4156ba5c945bed320f50/glance_6a5e5cae-180c-42ca-ad0f-b459cb8ad8f7/6a5e5cae-180c-42ca-ad0f-b459cb8ad8f7-00118 413 Request Entity Too Large b'Upload exceeds quota.'.

BackendException
Failed to add object to Swift.
Got error from Swift: Object PUT failed: https://objectstore-3.xxx:443/v1/AUTH_22a2e2dfd8dd4156ba5c945bed320f50/glance_6a5e5cae-180c-42ca-ad0f-b459cb8ad8f7/6a5e5cae-180c-42ca-ad0f-b459cb8ad8f7-00118 413 Request Entity Too Large b'Upload exceeds quota.'.

Unfortunately the user receives :

The error message is :HttpException: 500: Server Error for url: https://image-3.xxx/v2/images/6a5e5cae-180c-42ca-ad0f-b459cb8ad8f7/file, Internal Server Error

The swift error is generated from :

https://github.com/openstack/python-swiftclient/blob/master/swiftclient/client.py#L1491-L1492

Erno Kuvaja (jokke)
Changed in glance:
status: New → Triaged
importance: Undecided → High
no longer affects: glance/victoria
no longer affects: glance/wallaby
no longer affects: glance/xena
affects: glance → glance-store
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance_store (master)
Changed in glance-store:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance_store (master)

Reviewed: https://review.opendev.org/c/openstack/glance_store/+/800227
Committed: https://opendev.org/openstack/glance_store/commit/6a241a20c9c17ede1985e5c1f4c63fcaf2a2dbc7
Submitter: "Zuul (22348)"
Branch: master

commit 6a241a20c9c17ede1985e5c1f4c63fcaf2a2dbc7
Author: Erno Kuvaja <email address hidden>
Date: Fri Jul 9 14:08:59 2021 +0100

    Raise correct exception from "Quota full"

    Swift driver reraises the client exception causing glance-api
    to return 500. Lets raise g_s StoreFull correctly instead.

    Change-Id: I5be151afe242a75142e74d488c4787a35929e189
    Closes-bug: #1926404

Changed in glance-store:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance_store 2.7.0

This issue was fixed in the openstack/glance_store 2.7.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.