<div dir="ltr">Abel, <div><br></div><div>Thanks for your reply. Yes, I have already tried that with no success.</div><div><br></div><div>Thanks, </div><div><br></div><div>Lucas.-</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-20 13:40 GMT-03:00 Abel Lopez <span dir="ltr"><<a href="mailto:alopgeek@gmail.com" target="_blank">alopgeek@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did you try the suggestion in your bug report?<br>
<br>
<a href="https://bugs.launchpad.net/glance/+bug/1581111/comments/4" rel="noreferrer" target="_blank">https://bugs.launchpad.net/glance/+bug/1581111/comments/4</a><br>
<div><div class="h5"><br>
<br>
> On May 20, 2016, at 8:20 AM, Lucas Di Paola <<a href="mailto:ldipaola.despegar@gmail.com">ldipaola.despegar@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> 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.<br>
><br>
> 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+<a href="http://swift" rel="noreferrer" target="_blank">http://swift</a>%3Aswift:[PASSWORD]@[HOST]:5000/v2/[GLANCE_ID]" which seems to be good.<br>
><br>
> 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.<br>
><br>
> Any comments, suggestions or help will be really appreciated.<br>
><br>
> Thanks in advance.-<br>
><br>
><br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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".<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 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<br>
> 2016-05-20 10:57:04.453 31225 INFO glance.image_cache [-] Image cache loaded driver 'sqlite'.<br>
> 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<br>
> 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 _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:401<br>
> 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<br>
> Traceback (most recent call last):<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 457, in fire_timers<br>
> timer()<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 58, in __call__<br>
> cb(*args, **kw)<br>
> File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main<br>
> result = function(*args, **kwargs)<br>
> File "/usr/lib/python2.7/dist-packages/glance/image_cache/prefetcher.py", line 58, in fetch_image_into_cache<br>
> context=ctx)<br>
> File "/usr/lib/python2.7/dist-packages/glance_store/backend.py", line 269, in get_from_backend<br>
> loc = location.get_location_from_uri(uri, conf=CONF)<br>
> File "/usr/lib/python2.7/dist-packages/glance_store/location.py", line 75, in get_location_from_uri<br>
> raise exceptions.UnknownScheme(scheme=pieces.scheme)<br>
> UnknownScheme: Unknown scheme 'swift+http' found in URI<br>
> 2016-05-20 10:57:04.627 31225 CRITICAL glance [req-be56fb22-9541-4dea-a608-80a07be76dd4 - - - - -] UnknownScheme: Unknown scheme 'swift+http' found in URI<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance Traceback (most recent call last):<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/bin/glance-cache-prefetcher", line 10, in <module><br>
> 2016-05-20 10:57:04.627 31225 TRACE glance sys.exit(main())<br>
> 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<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance app.run()<br>
> 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<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance successes = sum([1 for r in results if r is True])<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/greenpool.py", line 238, in next<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance val = self.waiters.get().wait()<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 175, in wait<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance return self._exit_event.wait()<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 125, in wait<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance current.throw(*self._exc)<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance result = function(*args, **kwargs)<br>
> 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<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance context=ctx)<br>
> 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<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance loc = location.get_location_from_uri(uri, conf=CONF)<br>
> 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<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance raise exceptions.UnknownScheme(scheme=pieces.scheme)<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance UnknownScheme: Unknown scheme 'swift+http' found in URI<br>
> 2016-05-20 10:57:04.627 31225 TRACE glance<br>
</div></div>> _______________________________________________<br>
> OpenStack-operators mailing list<br>
> <a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br>
</blockquote></div><br></div>