node_staging_uri needs the file store to be configured
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Abhishek Kekane |
Bug Description
If you set node_staging_
Traceback (most recent call last):
File "/usr/lib/
result = task.execute(
File "/usr/lib/
store_
File "/usr/lib/
loc = location.
File "/usr/lib/
raise exceptions.
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.
tags: | added: rocky-backport-potential |
Changed in glance: | |
milestone: | none → stein-rc1 |
This is the case when operator has not enabled file store, i.e. he is using other stores like ceph, swift etc. In this situation, 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 by operator explicitly.
This is not user-friendly, what I recommend for upstream fix is;
1. Document that in case if you want to use image-import api then 'file' store needs to be in the list of 'stores' defined in glance-api.conf
2. We can load file store at [1] and use store.delete method directly there.
[1] https:/ /github. com/openstack/ glance/ blob/master/ glance/ async_/ flows/api_ image_import. py#L78
NOTE: /review. openstack. org/605584)
Once multiple backend is stabilized we will not face this issue as we will be reserving a file store for this purpose. (refer, https:/