Activity log for bug #1799221

Date Who What changed Old value New value Message
2018-10-22 13:19:22 Francois Deppierraz bug added bug
2018-10-22 13:21:08 Francois Deppierraz cinder: assignee Francois Deppierraz (francois-ctrlaltdel)
2018-10-22 13:25:27 Francois Deppierraz description The following code from cinder/image/image_utils.py doesn't correctly handled cases where image_service.download raises an IOError which is due to something else than disk space issues (ie. network connection timeouts). try: image_service.download(context, image_id, image_file) except IOError as e: if e.errno == errno.ENOSPC: params = {'path': os.path.dirname(path), 'image': image_id} reason = _("No space left in image_conversion_dir " "path (%(path)s) while fetching " "image %(image)s.") % params LOG.exception(reason) raise exception.ImageTooBig(image_id=image_id, reason=reason) Using openstack-ansible for queens, we experienced this issue because the storage system behind /var/lib/cinder/conversion was too slow and glance connections sometimes failed because of timeouts. When this happened, a truncated volume in status available was created while we would have expected it to be in error state instead. The solution looks simple, raise the initial exception when e.errno != errno.ENOSPC The following code from cinder/image/image_utils.py doesn't correctly handled cases where image_service.download() raises an IOError due to something else than disk space issues (ie. network connection timeouts).             try:                 image_service.download(context, image_id, image_file)             except IOError as e:                 if e.errno == errno.ENOSPC:                     params = {'path': os.path.dirname(path),                               'image': image_id}                     reason = _("No space left in image_conversion_dir "                                "path (%(path)s) while fetching "                                "image %(image)s.") % params                     LOG.exception(reason)                     raise exception.ImageTooBig(image_id=image_id,                                                 reason=reason) Using openstack-ansible for queens, we experienced this issue because the storage system behind /var/lib/cinder/conversion was too slow and glance connections sometimes failed because of haproxy timeouts. When this happened, a truncated volume in available state was created while we would have expected it to be in error state instead. The solution looks simple: raise the initial exception when e.errno != errno.ENOSPC.
2018-10-22 13:41:16 OpenStack Infra cinder: status New In Progress
2018-10-23 19:55:09 Jay Bryant cinder: importance Undecided High
2018-12-18 21:04:12 OpenStack Infra tags in-stable-rocky
2019-01-04 18:09:55 OpenStack Infra cinder: assignee Francois Deppierraz (francois-ctrlaltdel) Brian Rosmaita (brian-rosmaita)
2019-01-08 02:47:14 OpenStack Infra cinder: status In Progress Fix Released
2019-01-08 14:14:52 Sean McGinnis nominated for series cinder/pike
2019-01-08 14:14:52 Sean McGinnis bug task added cinder/pike
2019-01-08 14:14:52 Sean McGinnis nominated for series cinder/rocky
2019-01-08 14:14:52 Sean McGinnis bug task added cinder/rocky
2019-01-08 14:14:52 Sean McGinnis nominated for series cinder/queens
2019-01-08 14:14:52 Sean McGinnis bug task added cinder/queens
2019-01-08 14:15:48 Sean McGinnis cinder/rocky: status New Fix Released
2019-01-08 14:17:11 Brian Rosmaita bug task added ossn
2019-01-08 14:22:04 Sean McGinnis cinder: assignee Brian Rosmaita (brian-rosmaita) Francois Deppierraz (francois-ctrlaltdel)
2019-01-08 14:22:26 Sean McGinnis cinder/rocky: assignee iain MacDonnell (imacdonn)
2019-01-08 14:22:42 Sean McGinnis cinder: milestone stein-2
2019-01-09 12:38:37 OpenStack Infra cinder/queens: status New In Progress
2019-01-09 12:38:37 OpenStack Infra cinder/queens: assignee Brian Rosmaita (brian-rosmaita)
2019-01-15 20:05:33 Brian Rosmaita affects ossn ossa
2019-01-17 15:12:09 Nick Tait description The following code from cinder/image/image_utils.py doesn't correctly handled cases where image_service.download() raises an IOError due to something else than disk space issues (ie. network connection timeouts).             try:                 image_service.download(context, image_id, image_file)             except IOError as e:                 if e.errno == errno.ENOSPC:                     params = {'path': os.path.dirname(path),                               'image': image_id}                     reason = _("No space left in image_conversion_dir "                                "path (%(path)s) while fetching "                                "image %(image)s.") % params                     LOG.exception(reason)                     raise exception.ImageTooBig(image_id=image_id,                                                 reason=reason) Using openstack-ansible for queens, we experienced this issue because the storage system behind /var/lib/cinder/conversion was too slow and glance connections sometimes failed because of haproxy timeouts. When this happened, a truncated volume in available state was created while we would have expected it to be in error state instead. The solution looks simple: raise the initial exception when e.errno != errno.ENOSPC. The following code from cinder/image/image_utils.py doesn't correctly handle cases where image_service.download() raises an IOError due to something else than disk space issues (ie. network connection timeouts).             try:                 image_service.download(context, image_id, image_file)             except IOError as e:                 if e.errno == errno.ENOSPC:                     params = {'path': os.path.dirname(path),                               'image': image_id}                     reason = _("No space left in image_conversion_dir "                                "path (%(path)s) while fetching "                                "image %(image)s.") % params                     LOG.exception(reason)                     raise exception.ImageTooBig(image_id=image_id,                                                 reason=reason) Using openstack-ansible for queens, we experienced this issue because the storage system behind /var/lib/cinder/conversion was too slow and glance connections sometimes failed because of haproxy timeouts. When this happened, a truncated volume in available state was created while we would have expected it to be in error state instead. The solution looks simple: raise the initial exception when e.errno != errno.ENOSPC.
2019-01-24 00:15:25 OpenStack Infra cinder/queens: status In Progress Fix Committed
2019-01-24 15:18:54 OpenStack Infra cinder/pike: status New In Progress
2019-01-24 15:18:54 OpenStack Infra cinder/pike: assignee Brian Rosmaita (brian-rosmaita)
2019-02-08 18:49:29 OpenStack Infra cinder/pike: status In Progress Fix Committed
2021-01-21 16:34:49 Jeremy Stanley ossa: status New Won't Fix
2021-01-21 16:35:05 Jeremy Stanley tags in-stable-rocky in-stable-rocky security