# Pastebin jP3DapNy Nov 27 11:06:08 ubuntu1604 glance-api[4389]: DEBUG glance_store._drivers.swift.store [None req-27704c4a-7061-489e-8db9-1899c4a378c7 admin admin] Adding image object '71740e4a-28c5-4b43-9d99-d38202b1ab80' to Swift {{(pid=4527) add /u sr/local/lib/python3.5/dist-packages/glance_store/_drivers/swift/store.py:941}} Nov 27 11:06:08 ubuntu1604 glance-api[4389]: DEBUG glance_store._drivers.swift.store [None req-27704c4a-7061-489e-8db9-1899c4a378c7 admin admin] Cannot determine image size because it is either not provided in the request or chunked -transfer encoding is used. Adding image as a segmented object to Swift. {{(pid=4527) add /usr/local/lib/python3.5/dist-packages/glance_store/_drivers/swift/store.py:964}} Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance_store._drivers.swift.store [None req-27704c4a-7061-489e-8db9-1899c4a378c7 admin admin] Error during chunked upload to backend, deleting stale chunks. Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.api.v2.image_data [None req-27704c4a-7061-489e-8db9-1899c4a378c7 admin admin] Failed to upload image data due to internal error Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi [None req-27704c4a-7061-489e-8db9-1899c4a378c7 admin admin] Caught error: Unicode-objects must be encoded before hashing: TypeError: Unicode-objects must be encod ed before hashing Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi Traceback (most recent call last): Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/common/wsgi.py", line 1253, in __call__ Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi request, **action_args) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/common/wsgi.py", line 1296, in dispatch Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi return method(*args, **kwargs) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/common/utils.py", line 417, in wrapped Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi return func(self, req, *args, **kwargs) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/api/v2/image_data.py", line 279, in upload Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi self._restore(image_repo, image) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi self.force_reraise() Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi six.reraise(self.type_, self.value, self.tb) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/six.py", line 693, in reraise Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi raise value Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/api/v2/image_data.py", line 144, in upload Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi image.set_data(data, size, backend=backend) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/domain/proxy.py", line 198, in set_data Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi self.base.set_data(data, size, backend=backend) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/notifier.py", line 485, in set_data Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi _send_notification(notify_error, 'image.upload', msg) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi self.force_reraise() Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi six.reraise(self.type_, self.value, self.tb) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/six.py", line 693, in reraise Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi raise value Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/notifier.py", line 432, in set_data Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi self.repo.set_data(data, size, backend=backend) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/api/policy.py", line 193, in set_data Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi return self.image.set_data(*args, **kwargs) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/quota/__init__.py", line 310, in set_data Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi self.image.set_data(data, size=size, backend=backend) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/opt/stack/glance/glance/location.py", line 483, in set_data Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi verifier=verifier) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/glance_store/backend.py", line 541, in add_to_backend_with_multihash Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi image_id, data, size, hashing_algo, store, context, verifier) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/glance_store/backend.py", line 518, in store_add_to_backend_with_multihash Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi image_id, data, size, hashing_algo, context=context, verifier=verifier) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/glance_store/driver.py", line 274, in add_adapter Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi metadata_dict) = store_add_fun(*args, **kwargs) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/glance_store/capabilities.py", line 225, in op_checker Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi return store_op_fun(store, *args, **kwargs) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/glance_store/_drivers/swift/store.py", line 1012, in add Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi written_chunks) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi self.force_reraise() Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi six.reraise(self.type_, self.value, self.tb) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/six.py", line 693, in reraise Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi raise value Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/glance_store/_drivers/swift/store.py", line 1001, in add Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi content_length=content_length) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/swiftclient/client.py", line 1878, in put_object Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi response_dict=response_dict) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/swiftclient/client.py", line 1722, in _retry Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi service_token=self.service_token, **kwargs) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/swiftclient/client.py", line 1346, in put_object Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi conn.putrequest(path, headers=headers, data=data) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/swiftclient/client.py", line 454, in putrequest Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi return self.request('PUT', full_path, data, headers, files) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/swiftclient/client.py", line 444, in request Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi files=files, **self.requests_args) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/swiftclient/client.py", line 427, in _request Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi return self.request_session.request(*arg, **kwarg) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 533, in request Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi resp = self.send(prep, **send_kwargs) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 646, in send Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi r = adapter.send(request, **kwargs) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 469, in send Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi for i in request.body: Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/swiftclient/utils.py", line 298, in __next__ Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi chunk = self.content.read(self.chunk_size) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi File "/usr/local/lib/python3.5/dist-packages/glance_store/_drivers/swift/store.py", line 1636, in read Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi self.checksum.update(result) Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi TypeError: Unicode-objects must be encoded before hashing Nov 27 11:06:10 ubuntu1604 glance-api[4389]: ERROR glance.common.wsgi Nov 27 11:06:10 ubuntu1604 glance-api[4389]: INFO eventlet.wsgi.server [None req-27704c4a-7061-489e-8db9-1899c4a378c7 admin admin] 10.3.150.30 - - [27/Nov/2018 11:06:10] "PUT /v2/images/71740e4a-28c5-4b43-9d99-d38202b1ab80/file HTTP/1.1" 500 454 2.883589