[openstack-dev] [Openstack] Glance on swift problem

Sławek Kapłoński slawek at kaplonski.pl
Thu Oct 2 14:09:43 UTC 2014


Hello,

I make some more debugging on that problem and I found what is happend:
Glance is sending first chunk (in my config it was 200MB) and after 
finishing sending it to swift it send some bad http request. Swift has 
got in logs something like:
proxy-server ERROR WSGI: code 400, message Bad request syntax 
('\x01\x00\x1c[n\x01\x00\x00\x96s\x01\x00\x00*t') (txn: 
txa21d64d49ac347bb87023-00542d4e59) (client_ip: X.X.X.X)
and uploading is finished with error in glance

Maybe someone of You know such bug?

Best regards
Slawek Kaplonski

W dniu 2014-09-30 16:20, Sławek Kapłoński napisał(a):
> Hello,
> 
> I'm using openstack havana release and glance with swift backend.
> Today I found that I have problem when I create image with url in
> "--copy-from" when image is bigger than my
> "swift_store_large_object_size" because then glance is trying to split
> image to chunks with size given in
> "swift_store_large_object_chunk_size" and when try to upload first
> chunk to swift I have error:
> 
> 2014-09-30 15:05:29.361 18023 ERROR glance.store.swift [-] Error
> during chunked upload to backend, deleting stale chunks
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift Traceback (most
> recent call last):
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift   File
> "/usr/lib/python2.7/dist-packages/glance/store/swift.py", line 384, in
> add
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift
> content_length=content_length)
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift   File
> "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1234,
> in put_object
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift
> response_dict=response_dict)
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift   File
> "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1143,
> in _retry
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift
> reset_func(func, *args, **kwargs)
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift   File
> "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1215,
> in _default_reset
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift     % 
> (container, obj))
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift
> ClientException: put_object('glance',
> '9f56ccec-deeb-4020-95ba-ca7bf1170056-00001', ...) failure and no
> ability to reset contents for reupload.
> 2014-09-30 15:05:29.361 18023 TRACE glance.store.swift
> 2014-09-30 15:05:29.362 18023 ERROR glance.store.swift [-] Failed to
> add object to Swift.
> Got error from Swift: put_object('glance',
> '9f56ccec-deeb-4020-95ba-ca7bf1170056-00001', ...) failure and no
> ability to reset contents for reupload.
> 2014-09-30 15:05:29.362 18023 ERROR glance.api.v1.upload_utils [-]
> Failed to upload image 9f56ccec-deeb-4020-95ba-ca7bf1170056
> 2014-09-30 15:05:29.362 18023 TRACE glance.api.v1.upload_utils
> Traceback (most recent call last):
> 2014-09-30 15:05:29.362 18023 TRACE glance.api.v1.upload_utils   File
> "/usr/lib/python2.7/dist-packages/glance/api/v1/upload_utils.py", line
> 101, in upload_data_to_store
> 2014-09-30 15:05:29.362 18023 TRACE glance.api.v1.upload_utils     
> store)
> 2014-09-30 15:05:29.362 18023 TRACE glance.api.v1.upload_utils   File
> "/usr/lib/python2.7/dist-packages/glance/store/__init__.py", line 333,
> in store_add_to_backend
> 2014-09-30 15:05:29.362 18023 TRACE glance.api.v1.upload_utils
> (location, size, checksum, metadata) = store.add(image_id, data, size)
> 2014-09-30 15:05:29.362 18023 TRACE glance.api.v1.upload_utils   File
> "/usr/lib/python2.7/dist-packages/glance/store/swift.py", line 447, in
> add
> 2014-09-30 15:05:29.362 18023 TRACE glance.api.v1.upload_utils
> raise glance.store.BackendException(msg)
> 2014-09-30 15:05:29.362 18023 TRACE glance.api.v1.upload_utils
> BackendException: Failed to add object to Swift.
> 2014-09-30 15:05:29.362 18023 TRACE glance.api.v1.upload_utils Got
> error from Swift: put_object('glance',
> '9f56ccec-deeb-4020-95ba-ca7bf1170056-00001', ...) failure and no
> ability to reset contents for reupload.
> 
> 
> Does someone of You got same error and know what is solution of it? I
> was searching about that in google but I not found anything what could
> solve my problem.

-- 
Pozdrawiam
Sławek Kapłoński
slawek at kaplonski.pl



More information about the OpenStack-dev mailing list