openstack CLI object save - MemoryError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Reproduced on Mirantis OpenStack 9.2 (mitaka)
Issue summary: CLI command "openstack object save ..." silently fails (error only visible with --debug).
Steps to reproduce:
- Deploy controllers with 2GB RAM (virtual lab), then:
root@node-
total used free shared buffers cached
Mem: 2000 1353 647 7 10 93
-/+ buffers/cache: 1249 751
root@node-
+------
| Field | Value |
+------
| account | AUTH_231d9fe5c9
| container | glance |
| content-length | 341311488 |
| content-type | application/
| etag | 3209808b650928a
| last-modified | Wed, 08 Feb 2017 00:38:16 GMT |
| object | 18c0fae2-
+------
root@node-
...
Traceback (most recent call last):
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
return super(Command, self).run(
File "/usr/lib/
self.
File "/usr/lib/
file=
File "/usr/lib/
stream=True,
File "/usr/lib/
return session.
File "/usr/lib/
resp = super(TimingSes
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
resp = send(**kwargs)
File "/usr/lib/
self.
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
text = self._remove_
File "/usr/lib/
encoding = self.apparent_
File "/usr/lib/
return chardet.
File "/usr/lib/
u.feed(aBuf)
File "/usr/lib/
if prober.feed(aBuf) == constants.eFoundIt:
File "/usr/lib/
st = prober.feed(aBuf)
File "/usr/lib/
for i in range(0, aLen):
MemoryError
Expected results: openstack client successfully downloads a 300MB file from Swift.
Actual result: silent failure (error visible only if --debug is specified).
Reproducibility: 100% on this env.
Impact: cannot use openstack object CLI.
downstream MOS bug - https:/ /bugs.launchpad .net/mos/ +bug/1663771