Public bug reported:

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.

** Affects: glance
     Importance: High
     Assignee: Abhishek Kekane (abhishek-kekane)
         Status: Confirmed

-- 
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:
  Confirmed

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

-- 
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