Glance failed to upload large files rbd backend

asked 2018-08-20 22:19:42 -0600

mli103 gravatar image

It worked all good. But, all of sudden, it can not upload large file any more. 12MB size file worked though. Any one have an idea to work around it?

/etc/glance/glance-api.conf [glance_store] filesystem_store_datadir = /var/lib/glance/images/ stores = glance.store.filesystem.Store,glance.store.http.Store,glance.store.rbd.Store default_store = rbd rbd_store_ceph_conf = /etc/ceph/ceph.conf rbd_store_user = glance rbd_store_pool = glance rbd_store_chunk_size = 16 rados_connect_timeout = -1

/var/log/glance/glance-api.log

2018-08-21 01:47:37.168 1515288 WARNING glance_store._drivers.rbd [req-ab110f72-ccbe-47c2-8b0c-26c9cb9ea326 5bc4b85087824394bb2717f1782bfc17 2fa1bb9202d34b11a02559a0b5535ee7 - 7cea64ea8b3140d786e8bbefe8d95064 7cea64ea8b3140d786e8bbefe8d95064] since image size is zero we will be doing resize-before-write for each chunk which will be considerably slower than normal 2018-08-21 01:50:50.086 1515288 ERROR glance_store._drivers.rbd [req-ab110f72-ccbe-47c2-8b0c-26c9cb9ea326 5bc4b85087824394bb2717f1782bfc17 2fa1bb9202d34b11a02559a0b5535ee7 - 7cea64ea8b3140d786e8bbefe8d95064 7cea64ea8b3140d786e8bbefe8d95064] Failed to store image 633bc67b-f4fb-4dde-b043-e962d6564c19 Store Exception unexpected end of file while parsing chunked data 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data [req-ab110f72-ccbe-47c2-8b0c-26c9cb9ea326 5bc4b85087824394bb2717f1782bfc17 2fa1bb9202d34b11a02559a0b5535ee7 - 7cea64ea8b3140d786e8bbefe8d95064 7cea64ea8b3140d786e8bbefe8d95064] Failed to upload image data due to internal error 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data Traceback (most recent call last): 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data File "/usr/lib/python2.7/dist-packages/glance/api/v2/image_data.py", line 116, in upload 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data image.set_data(data, size) 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data File "/usr/lib/python2.7/dist-packages/glance/domain/proxy.py", line 195, in set_data 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data self.base.set_data(data, size) 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data File "/usr/lib/python2.7/dist-packages/glance/notifier.py", line 480, in set_data 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data _send_notification(notify_error, 'image.upload', msg) 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data self.force_reraise() 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data six.reraise(self.type_, self.value, self.tb) 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data File "/usr/lib/python2.7/dist-packages/glance/notifier.py", line 427, in set_data 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data self.repo.set_data(data, size) 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data File "/usr/lib/python2.7/dist-packages/glance/api/policy.py", line 192, in set_data 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data return self.image.set_data(args, *kwargs) 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data File "/usr/lib/python2.7/dist-packages/glance/quota/__init__.py", line 304, in set_data 2018-08-21 01:50:50.384 1515288 ERROR glance.api.v2.image_data self ... (more)

edit retag flag offensive close merge delete