Hi, I am writing to see if someone can give me a light on this. I am trying to make the glance cache prefetcher work on Openstack Kilo but I am getting below exception.
Context: I use Swift (v2.0.3) as storage backend for images, they are added correctly to Swift and I can launch instances, but when trying to prefetch them to the cache, it fails. The value under the image_locations table in glance DB looks something like this "swift+http://swift%3Aswift:[PASSWORD]@[HOST]:5000/v2/[GLANCE_ID]" which seems to be good. Debuging the prefetcher in another Openstack version (icehouse) I realized that in Kilo, looks like the swift scheme is not beeing imported nor registered. I´ve been playing with the "stores" and "default_store" parameters in the glance-api.conf as well as with the glance-cache.conf with no luck. Any comments, suggestions or help will be really appreciated. Thanks in advance.- 2016-05-20 10:57:04.438 31225 DEBUG glance_store.backend [-] Attempting to import store glance.store.sheepdog.Store _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.438 31225 DEBUG glance_store.backend [-] Attempting to import store rbd _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.439 31225 DEBUG glance_store.backend [-] Attempting to import store http _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.439 31225 DEBUG glance_store.backend [-] Attempting to import store sheepdog _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.439 31225 DEBUG glance_store.backend [-] Attempting to import store glance.store.http.Store _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.440 31225 DEBUG glance_store.backend [-] Attempting to import store s3 _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.440 31225 DEBUG glance_store.backend [-] Attempting to import store glance.store.gridfs.Store _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.440 31225 DEBUG glance_store.backend [-] Attempting to import store glance.store.rbd.Store _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.441 31225 DEBUG glance_store.backend [-] Attempting to import store no_conf _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.441 31225 DEBUG glance_store.backend [-] Attempting to import store glance.store.cinder.Store _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.442 31225 DEBUG glance_store.backend [-] Attempting to import store file _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.442 31225 DEBUG glance_store.backend [-] Attempting to import store gridfs _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.442 31225 DEBUG glance_store.backend [-] Attempting to import store glance.store.filesystem.Store _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.443 31225 DEBUG glance_store.backend [-] Attempting to import store cinder _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.443 31225 DEBUG glance_store.backend [-] Attempting to import store glance.store.swift.Store _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.444 31225 DEBUG glance_store.backend [-] Attempting to import store swift _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.444 31225 DEBUG glance_store.backend [-] Attempting to import store glance.store.vmware_datastore.Store _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.444 31225 DEBUG glance_store.backend [-] Attempting to import store vmware _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.445 31225 DEBUG glance_store.backend [-] Attempting to import store glance.store.s3.Store _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.445 31225 DEBUG glance_store.backend [-] Registering options for group glance_store register_opts /usr/lib/python2.7/dist-packages/glance_store/backend.py:77 2016-05-20 10:57:04.445 31225 DEBUG glance_store.backend [-] Registering options for group glance_store register_opts /usr/lib/python2.7/dist-packages/glance_store/backend.py:77 2016-05-20 10:57:04.446 31225 DEBUG glance_store.backend [-] Attempting to import store http _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.446 31225 DEBUG glance_store.capabilities [-] Store glance_store._drivers.http.Store doesn't support updating dynamic storage capabilities. Please overwrite 'update_capabilities' method of the store to implement updating logics if needed. update_capabilities /usr/lib/python2.7/dist-packages/glance_store/capabilities.py:98 2016-05-20 10:57:04.447 31225 DEBUG glance_store.backend [-] Registering store http with schemes ('http', 'https') create_stores /usr/lib/python2.7/dist-packages/glance_store/backend.py:195 2016-05-20 10:57:04.447 31225 DEBUG glance_store.driver [-] Late loading location class glance_store._drivers.http.StoreLocation get_store_location_class /usr/lib/python2.7/dist-packages/glance_store/driver.py:93 2016-05-20 10:57:04.447 31225 DEBUG glance_store.location [-] Registering scheme http with {'location_class': <class 'glance_store._drivers.http.StoreLocation'>, 'store': <glance_store._drivers.http.Store object at 0x7fca125f96d0>, 'store_entry': 'http'} register_scheme_map /usr/lib/python2.7/dist-packages/glance_store/location.py:90 2016-05-20 10:57:04.448 31225 DEBUG glance_store.location [-] Registering scheme https with {'location_class': <class 'glance_store._drivers.http.StoreLocation'>, 'store': <glance_store._drivers.http.Store object at 0x7fca125f96d0>, 'store_entry': 'http'} register_scheme_map /usr/lib/python2.7/dist-packages/glance_store/location.py:90 2016-05-20 10:57:04.448 31225 DEBUG glance_store.backend [-] Attempting to import store file _load_store /usr/lib/python2.7/dist-packages/glance_store/backend.py:148 2016-05-20 10:57:04.448 31225 WARNING oslo_config.cfg [-] Option "filesystem_store_datadir" from group "DEFAULT" is deprecated. Use option "filesystem_store_datadir" from group "glance_store". 2016-05-20 10:57:04.449 31225 DEBUG glance_store.capabilities [-] Store glance_store._drivers.filesystem.Store doesn't support updating dynamic storage capabilities. Please overwrite 'update_capabilities' method of the store to implement updating logics if needed. update_capabilities /usr/lib/python2.7/dist-packages/glance_store/capabilities.py:98 2016-05-20 10:57:04.449 31225 DEBUG glance_store.backend [-] Registering store file with schemes ('file', 'filesystem') create_stores /usr/lib/python2.7/dist-packages/glance_store/backend.py:195 2016-05-20 10:57:04.450 31225 DEBUG glance_store.driver [-] Late loading location class glance_store._drivers.filesystem.StoreLocation get_store_location_class /usr/lib/python2.7/dist-packages/glance_store/driver.py:93 2016-05-20 10:57:04.450 31225 DEBUG glance_store.location [-] Registering scheme file with {'location_class': <class 'glance_store._drivers.filesystem.StoreLocation'>, 'store': <glance_store._drivers.filesystem.Store object at 0x7fca125f9350>, 'store_entry': 'file'} register_scheme_map /usr/lib/python2.7/dist-packages/glance_store/location.py:90 2016-05-20 10:57:04.450 31225 DEBUG glance_store.location [-] Registering scheme filesystem with {'location_class': <class 'glance_store._drivers.filesystem.StoreLocation'>, 'store': <glance_store._drivers.filesystem.Store object at 0x7fca125f9350>, 'store_entry': 'file'} register_scheme_map /usr/lib/python2.7/dist-packages/glance_store/location.py:90 2016-05-20 10:57:04.453 31225 INFO glance.image_cache [-] Image cache loaded driver 'sqlite'. 2016-05-20 10:57:04.455 31225 DEBUG glance.image_cache.prefetcher [-] Found 1 images to prefetch run /usr/lib/python2.7/dist-packages/glance/image_cache/prefetcher.py:75 2016-05-20 10:57:04.548 31225 DEBUG glance.common.client [req-be56fb22-9541-4dea-a608-80a07be76dd4 - - - - -] Constructed URL: http://[HOST]:9191/images/4fa9bccf-a643-477b-8682-4bad469d4c1c <http://10.181.0.1:9191/images/4fa9bccf-a643-477b-8682-4bad469d4c1c> _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:401 2016-05-20 10:57:04.624 31225 DEBUG glance.registry.client.v1.client [req-be56fb22-9541-4dea-a608-80a07be76dd4 - - - - -] Registry request GET /images/4fa9bccf-a643-477b-8682-4bad469d4c1c HTTP 200 request id req-6b129abb-948d-4d46-b7cb-98f41377b3e7 do_request /usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py:124 Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 457, in fire_timers timer() File "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 58, in __call__ cb(*args, **kw) File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main result = function(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/glance/image_cache/prefetcher.py", line 58, in fetch_image_into_cache context=ctx) File "/usr/lib/python2.7/dist-packages/glance_store/backend.py", line 269, in get_from_backend loc = location.get_location_from_uri(uri, conf=CONF) File "/usr/lib/python2.7/dist-packages/glance_store/location.py", line 75, in get_location_from_uri raise exceptions.UnknownScheme(scheme=pieces.scheme) UnknownScheme: Unknown scheme 'swift+http' found in URI 2016-05-20 10:57:04.627 31225 CRITICAL glance [req-be56fb22-9541-4dea-a608-80a07be76dd4 - - - - -] UnknownScheme: Unknown scheme 'swift+http' found in URI 2016-05-20 10:57:04.627 31225 TRACE glance Traceback (most recent call last): 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/bin/glance-cache-prefetcher", line 10, in <module> 2016-05-20 10:57:04.627 31225 TRACE glance sys.exit(main()) 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/cmd/cache_prefetcher.py", line 56, in main 2016-05-20 10:57:04.627 31225 TRACE glance app.run() 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/image_cache/prefetcher.py", line 79, in run 2016-05-20 10:57:04.627 31225 TRACE glance successes = sum([1 for r in results if r is True]) 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/greenpool.py", line 238, in next 2016-05-20 10:57:04.627 31225 TRACE glance val = self.waiters.get().wait() 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 175, in wait 2016-05-20 10:57:04.627 31225 TRACE glance return self._exit_event.wait() 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 125, in wait 2016-05-20 10:57:04.627 31225 TRACE glance current.throw(*self._exc) 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main 2016-05-20 10:57:04.627 31225 TRACE glance result = function(*args, **kwargs) 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/glance/image_cache/prefetcher.py", line 58, in fetch_image_into_cache 2016-05-20 10:57:04.627 31225 TRACE glance context=ctx) 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/glance_store/backend.py", line 269, in get_from_backend 2016-05-20 10:57:04.627 31225 TRACE glance loc = location.get_location_from_uri(uri, conf=CONF) 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/glance_store/location.py", line 75, in get_location_from_uri 2016-05-20 10:57:04.627 31225 TRACE glance raise exceptions.UnknownScheme(scheme=pieces.scheme) *2016-05-20 10:57:04.627 31225 TRACE glance UnknownScheme: Unknown scheme 'swift+http' found in URI* 2016-05-20 10:57:04.627 31225 TRACE glance
_______________________________________________ OpenStack-operators mailing list [email protected] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
