← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1271150] [NEW] Appropriate 5XX error should be raised if glance-api terminated abruptly during image download

 

Public bug reported:

Using commit: 2c4bd695652a628758eb56cb36394940a855d696
Empty response is sent to user downloading an image, if glance-api stops abruptly

Steps to reproduce:
1> put a sleep of 10 sec in show()
https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L443
2> Download glance image
$ glance image-download <image-uuid>
3> Kill glance-api during its 10 sec sleep
4> Following output is displayed on terminal
$ ''

IMO if this scenario occurs then appropriate 5XX error should be raised.

** Affects: glance
     Importance: Undecided
     Assignee: Aswad Rangnekar (aswad-r)
         Status: New


** Tags: ntt

** Changed in: glance
     Assignee: (unassigned) => Aswad Rangnekar (aswad-r)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1271150

Title:
  Appropriate 5XX error should be raised if glance-api terminated
  abruptly during image download

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Using commit: 2c4bd695652a628758eb56cb36394940a855d696
  Empty response is sent to user downloading an image, if glance-api stops abruptly

  Steps to reproduce:
  1> put a sleep of 10 sec in show()
  https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L443
  2> Download glance image
  $ glance image-download <image-uuid>
  3> Kill glance-api during its 10 sec sleep
  4> Following output is displayed on terminal
  $ ''

  IMO if this scenario occurs then appropriate 5XX error should be
  raised.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1271150/+subscriptions


Follow ups

References