← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1803498] Re: node_staging_uri needs the file store to be configured

 

Reviewed:  https://review.openstack.org/618468
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=c92724608512d42b56152d199cc0fea049e4d4a7
Submitter: Zuul
Branch:    master

commit c92724608512d42b56152d199cc0fea049e4d4a7
Author: Abhishek Kekane <akekane@xxxxxxxxxx>
Date:   Wed Mar 13 18:12:42 2019 +0000

    Data remains in staging area if 'file' store is not enabled
    
    When operator has not enabled 'file' store and using other stores like ceph,
    swift etc. the uploading to staging area works as we explicitly
    build 'file' store during this operation, while cleaning up we directly
    use 'glance_store.delete_from_backend' which only works if 'file'
    store is enabled.
    
    Modified '_DeleteFromFS' task and _unstage call which will use os
    module to unlink the file present in staging area explicitly to
    delete the data from staging area.
    
    Closes-Bug: #1803498
    Change-Id: If0b3b0af9300301291758c67267890e0959ebb3c


** 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/1803498

Title:
  node_staging_uri needs the file store to be configured

Status in Glance:
  Fix Released

Bug description:
  If you set node_staging_uri=file:///var/lib/glance/staging and try to
  do a web-download import without the file store enabled, this is
  logged:

  
   Traceback (most recent call last):
     File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
       result = task.execute(**arguments)
     File "/usr/lib/python2.7/site-packages/glance/async_/flows/api_image_import.py", line 92, in execute
       store_api.delete_from_backend(file_path)
     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

  
  The consequence is that the staging area is not cleaned up, and files are piling up. The store should probably be automatically configured.

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


References