Working with images and logging in DEBUG level causes a MemoryError because _http_log_response() calls response.text which in turn tries to read all data before passing params to _remove_service_catalog:
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/glanceclient/v1/images.py", line 148, in data
% urlparse.quote(str(image_id)))
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/keystoneclient/adapter.py", line 176, in get
return self.request(url, 'GET', **kwargs)
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/glanceclient/common/http.py", line 331, in request
**kwargs)
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/keystoneclient/adapter.py", line 101, in request
return self.session.request(url, method, **kwargs)
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
return wrapped(*args, **kwargs)
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/keystoneclient/session.py", line 404, in request
resp = send(**kwargs)
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/keystoneclient/session.py", line 464, in _send_request
self._http_log_response(resp, logger)
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/keystoneclient/session.py", line 219, in _http_log_response
text = _remove_service_catalog(response.text)
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/requests/models.py", line 773, in text
encoding = self.apparent_encoding
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/requests/models.py", line 647, in apparent_encoding
return chardet.detect(self.content)['encoding']
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/requests/packages/chardet/__init__.py", line 30, in detect
u.feed(aBuf)
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/requests/packages/chardet/universaldetector.py", line 128, in feed
if prober.feed(aBuf) == constants.eFoundIt:
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/requests/packages/chardet/charsetgroupprober.py", line 64, in feed
st = prober.feed(aBuf)
File "/home/etobdia/.env/cloud-wrapper/lib/python2.7/site-packages/requests/packages/chardet/sjisprober.py", line 54, in feed
for i in range(0, aLen):
MemoryError
What is the exact command that was run? Could you also tell me the OpenStack version that is used?