Image creation failed with "500 Server Error"
Issue
- When trying to create an image newly by
openstack image create
, it failed withHttpException: 500: Server Error
. -
The messages below can be seen in
/var/log/containers/glance/api.log
:2023-10-02 02:54:09.910 15 INFO swiftclient [req-2b06b126-dc39-4d32-bbfc-5d9899e70219 19ac15c2d7cb46f888bb714184d3b4ef 1dfc01ba547d49c09d696cd94ec51802 - default default] RESP STATUS: 503 Service Unavailable 2023-10-02 02:54:09.910 15 INFO swiftclient [req-2b06b126-dc39-4d32-bbfc-5d9899e70219 19ac15c2d7cb46f888bb714184d3b4ef 1dfc01ba547d49c09d696cd94ec51802 - default default] RESP HEADERS: {'content-type': 'text/html; charset=UTF-8', 'content-length': '118', 'x-trans-id': 'tx839cd02a458943a3a89f6-00651a30cb', 'x-openstack-request-id': 'tx839cd02a458943a3a89f6-00651a30cb', 'date': 'Mon, 02 Oct 2023 02:54:03 GMT'} 2023-10-02 02:54:09.911 15 INFO swiftclient [req-2b06b126-dc39-4d32-bbfc-5d9899e70219 19ac15c2d7cb46f888bb714184d3b4ef 1dfc01ba547d49c09d696cd94ec51802 - default default] RESP BODY: b'<html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>' 2023-10-02 02:54:10.434 18 INFO eventlet.wsgi.server [-] 10.0.0.159 - - [02/Oct/2023 02:54:10] "GET /healthcheck HTTP/1.0" 200 137 0.001677 2023-10-02 02:54:10.913 15 ERROR glance_store._drivers.swift.store [req-2b06b126-dc39-4d32-bbfc-5d9899e70219 19ac15c2d7cb46f888bb714184d3b4ef 1dfc01ba547d49c09d696cd94ec51802 - default default] Failed to add object to Swift. Got error from Swift: put_object('glance', '342e5591-010a-49bd-9dfb-5f7466be5f6f', ...) failure and no ability to reset contents for reupload..: swiftclient.exceptions.ClientException: put_object('glance', '342e5591-010a-49bd-9dfb-5f7466be5f6f', ...) failure and no ability to reset contents for reupload. 2023-10-02 02:54:10.914 15 ERROR glance.api.v2.image_data [req-2b06b126-dc39-4d32-bbfc-5d9899e70219 19ac15c2d7cb46f888bb714184d3b4ef 1dfc01ba547d49c09d696cd94ec51802 - default default] Failed to upload image data due to internal error: glance_store.exceptions.BackendException: Failed to add object to Swift. 2023-10-02 02:54:10.935 15 ERROR glance.common.wsgi [req-2b06b126-dc39-4d32-bbfc-5d9899e70219 19ac15c2d7cb46f888bb714184d3b4ef 1dfc01ba547d49c09d696cd94ec51802 - default default] Caught error: Failed to add object to Swift. Got error from Swift: put_object('glance', '342e5591-010a-49bd-9dfb-5f7466be5f6f', ...) failure and no ability to reset contents for reupload..: glance_store.exceptions.BackendException: Failed to add object to Swift. Got error from Swift: put_object('glance', '342e5591-010a-49bd-9dfb-5f7466be5f6f', ...) failure and no ability to reset contents for reupload..
Environment
- Red Hat OpenStack Platform (RHOSP)
- Swift used as backend of Glance
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.