Deprecate the gridfs store

The store doesn't seem to be used by anyone and it's sitting there
without good maintainers. I'm the original author of this code and I'm
not willing to maintain it any longer since I don't think it's a good
fit for glance's use case.

This was announced and discussed here:

http://lists.openstack.org/pipermail/openstack-dev/2014-October/047720.html

I'd like to remove it entirely now but we should be good boys and offer
a deprecation period first, hence this patch.

Change-Id: I984ef82b6c96e4edea102ae69a1d009c2f2965bd
This commit is contained in:
Flavio Percoco 2014-11-26 11:22:44 +01:00
parent 8d32ac25eb
commit f98018c1ad
1 changed files with 6 additions and 0 deletions

View File

@ -85,6 +85,12 @@ class Store(glance_store.driver.Store):
OPTIONS = _GRIDFS_OPTS OPTIONS = _GRIDFS_OPTS
EXAMPLE_URL = "gridfs://<IMAGE_ID>" EXAMPLE_URL = "gridfs://<IMAGE_ID>"
def __init__(self, *args, **kwargs):
LOG.warn('The gridfs store has been deprecated and it\'ll be removed '
'in future versions of this library. Please, consider '
'maintaining it yourself or adopting a different store.')
super(Store, self).__init__(*args, **kwargs)
def get_schemes(self): def get_schemes(self):
return ('gridfs',) return ('gridfs',)