Bug 1639820 - Glance image download leads to unhandled python NoneType error
Summary: Glance image download leads to unhandled python NoneType error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: zstream
: 13.0 (Queens)
Assignee: Eric Harney
QA Contact: Avi Avraham
Kim Nylander
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-16 16:44 UTC by Marc Methot
Modified: 2021-12-10 17:58 UTC (History)
3 users (show)

Fixed In Version: openstack-cinder-12.0.6-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-30 17:21:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1798147 0 None None None 2018-10-16 16:44:41 UTC
OpenStack gerrit 611081 0 None MERGED Handling unexpected python error "NoneType object is not iterable" 2020-12-20 12:46:40 UTC
Red Hat Issue Tracker OSP-11690 0 None None None 2021-12-10 17:58:56 UTC
Red Hat Product Errata RHBA-2019:0929 0 None None None 2019-04-30 17:22:00 UTC

Description Marc Methot 2018-10-16 16:44:42 UTC
This ERROR should be handled prior to trying to iteration attempt.

2018-09-28 11:38:10.124 3320 ERROR cinder.scheduler.filter_scheduler [req-e8cb2375-a6d3-4afb-a146-21be0d1c8777 d6c1ad4f37c74ffd862f5c22cc869ce5 0896f504b30e4522b605d4f3c784dca1 - default default] Error scheduling None from last vol-service: hostgroup@scaleio#OPS:Standard : [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task\n result = task.execute(**arguments)\n', u' File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 951, in execute\n **volume_spec)\n', u' File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 898, in _create_from_image\n image_service)\n', u' File "<string>", line 2, in _create_from_image_cache_or_download\n', u' File "/usr/lib/python2.7/site-packages/cinder/coordination.py", line 176, in _synchronized\n return f(*a, **k)\n', u' File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 779, in _create_from_image_cache_or_download\n backend_name) as tmp_image:\n', u' File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__\n return self.gen.next()\n', u' File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 670, in fetch\n fetch_verify_image(context, image_service, image_id, tmp)\n', u' File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 288, in fetch_verify_image\n None, None)\n', u' File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 223, in fetch\n image_service.download(context, image_id, image_file)\n', u' File "/usr/lib/python2.7/site-packages/cinder/image/glance.py", line 341, in download\n for chunk in image_chunks:\n', u"TypeError: 'NoneType' object is not iterable\n"]

Also opened upstream: https://bugs.launchpad.net/cinder/+bug/1798147
Proposed fix : https://review.openstack.org/#/c/611081/

Comment 6 Eric Harney 2019-04-17 14:17:10 UTC
This was fixed in the cinder 12.0.5 release by https://review.openstack.org/#/c/629463/ .

Comment 10 errata-xmlrpc 2019-04-30 17:21:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0929


Note You need to log in before you can comment on or make changes to this bug.