[Openstack] Glance on swift problem

Sławek Kapłoński slawek at kaplonski.pl
Tue Sep 30 14:20:38 UTC 2014


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.

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




More information about the Openstack mailing list