ChunkReader has no len() Swiftclient + Glance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance_store |
Fix Released
|
Undecided
|
Unassigned | ||
python-swiftclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On CentOS 6.5
Name : openstack-glance
Arch : noarch
Version : 2013.2.2
Release : 2.el6
Size : 52 k
Repo : installed
From repo : openstack-havana
When uploading an image that is larger than swifts chunk size I receive a ChunkReader error:
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift TypeError: object of type 'ChunkReader' has no len()
Full Traceback:
2014-03-25 18:29:16.916 21092 ERROR glance.store.swift [34633528-
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift Traceback (most recent call last):
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift content_
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift response_
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift rv = func(self.url, self.token, *args, **kwargs)
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift conn.putrequest
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift return self.request('PUT', full_path, data, headers, files)
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift files=files, **self.
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift return requests.
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift return session.
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift prep = req.prepare()
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift p.prepare_
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift File "/usr/lib/
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift self.headers[
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift TypeError: object of type 'ChunkReader' has no len()
2014-03-25 18:29:16.916 21092 TRACE glance.store.swift
2014-03-25 18:29:16.977 21092 ERROR glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
2014-03-25 18:29:16.977 21092 TRACE glance.
tags: | added: havana |
no longer affects: | swift |
tags: |
added: havana-backport-potential removed: glance havana swiftclient |
As an update: The size doesn't seem to matter.
If I use this and try to upload a 7G Windows image then I get the same error as above:
swift_store_ large_object_ size = 5120
If I use this and upload a Centos 300M Image I get the same error as above:
swift_store_ large_object_ size = 250
Then this setting is left at 200:
swift_store_ large_object_ chunk_size = 200
I have tried to change the object chunk size to different values as well, lower and higher. 50, 500, 1024. Each produces the same error: TypeError: object of type 'ChunkReader' has no len().