Reviewed:  https://review.opendev.org/670236
Committed: 
https://git.openstack.org/cgit/openstack/glance/commit/?id=7f74a92338894d01feebf706663b1b5a10d99ece
Submitter: Zuul
Branch:    master

commit 7f74a92338894d01feebf706663b1b5a10d99ece
Author: Abhishek Kekane <akek...@redhat.com>
Date:   Thu Jul 11 06:06:04 2019 +0000

    Image deletion returns 500 if 'file' store is not enabled
    
    When image import fails during image is uploading from staging area,
    image remains in uploading state and data remains in staging area. In
    this scenario if 'file' store is not enabled then while deleting the
    image glance-api returns 500 status code with error 'file' scheme is
    Unknwon.
    
    Used os module to unlink the file present in staging area explicitly to
    delete the data from staging area.
    
    Change-Id: I57dcd6b18b0039e824e8adbe77de59079360a34f
    Closes-Bug: #1836140


** Changed in: glance
       Status: In Progress => Fix Released

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

Title:
  500 response while try to delete image is in uploading state

Status in Glance:
  Fix Released

Bug description:
  When image import fails during image is in uploaded from staging area
  image remains in uploading state and data remains in staging area. In
  this scenario if file store is not enabled then while deleting the
  image glance-api returns 500 status code with error 'file' scheme is
  Unknwon.

   Traceback (most recent call last):
     File "/usr/lib/python2.7/site-packages/glance_store/backend.py", line 409, 
in delete_from_backend
       loc = location.get_location_from_uri(uri, conf=CONF)
     File "/usr/lib/python2.7/site-packages/glance_store/location.py", line 75, 
in get_location_from_uri
       raise exceptions.UnknownScheme(scheme=pieces.scheme)
   UnknownScheme: Unknown scheme 'file' found in URI


  Note:
  Solution is similar as proposed in this patch:
  https://review.opendev.org/#/c/618468/7

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to