yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #23626
[Bug 1379798] [NEW] Glance returns HTTPInternalServerError 500 in case of image server is down
Public bug reported:
HTTPInternalServerError 500 response is returned to the user while image server is down during downloading the image.
When user tries to download the image from the remote location (image server) which is down, Connection refused ECONNREFUSED error is raised on the glance server.
Ideally it should return 503 HTTPServiceUnavailable response to the
user.
Steps to reproduce:
1. Create a file 'test_image.py' at any location. example: /home/openstack/
2. Run Simple HTTP server using "python -m SimpleHTTPServer 8050" from location mentioned in step 1.
3. Create an image using location parameter.
example: glance image-create --name myimage --disk-format=raw --container-format=bare --location http://10.69.4.178:8050/test_image.py
4. Stop Simple HTTP server.
5. Download image using glance image-download <image_id> created in step 3.
Please refer http://paste.openstack.org/show/120165/ for v1 and v2 api
logs.
** Affects: glance
Importance: Undecided
Assignee: Ankit Agrawal (ankitagrawal)
Status: New
** Tags: ntt
** Changed in: glance
Assignee: (unassigned) => Ankit Agrawal (ankitagrawal)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1379798
Title:
Glance returns HTTPInternalServerError 500 in case of image server is
down
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Bug description:
HTTPInternalServerError 500 response is returned to the user while image server is down during downloading the image.
When user tries to download the image from the remote location (image server) which is down, Connection refused ECONNREFUSED error is raised on the glance server.
Ideally it should return 503 HTTPServiceUnavailable response to the
user.
Steps to reproduce:
1. Create a file 'test_image.py' at any location. example: /home/openstack/
2. Run Simple HTTP server using "python -m SimpleHTTPServer 8050" from location mentioned in step 1.
3. Create an image using location parameter.
example: glance image-create --name myimage --disk-format=raw --container-format=bare --location http://10.69.4.178:8050/test_image.py
4. Stop Simple HTTP server.
5. Download image using glance image-download <image_id> created in step 3.
Please refer http://paste.openstack.org/show/120165/ for v1 and v2 api
logs.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1379798/+subscriptions
Follow ups
References