yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #29047
[Bug 1426767] Re: Loading backend stores is not conditional and fails if optional dependencies are missing
See https://review.openstack.org/#/c/161428/ for a simpler solution that
does not add boto as a requirement.
** Project changed: glance => glance-store
** Changed in: glance-store
Assignee: Oleg Gashev (oleg-f) => Ian Cordasco (icordasc)
** Changed in: glance-store
Milestone: None => v0.1.13
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1426767
Title:
Loading backend stores is not conditional and fails if optional
dependencies are missing
Status in OpenStack Glance backend store-drivers library (glance_store):
In Progress
Bug description:
# pip list|grep glance
glance (2015.1.dev40)
glance-store (0.1.11)
# /usr/bin/glance-api
2015-02-28 15:21:25.949 23107 ERROR stevedore.extension [-] Could not load 's3': No module named boto.exception
2015-02-28 15:21:25.950 23107 ERROR stevedore.extension [-] No module named boto.exception
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension Traceback (most recent call last):
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 162, in _load_plugins
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension verify_requirements,
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 185, in _load_one_plugin
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension plugin = ep.load(require=verify_requirements)
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2025, in load
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension entry = __import__(self.module_name, globals(),globals(), ['__name__'])
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension File "/usr/lib/python2.7/site-packages/glance_store/_drivers/s3.py", line 26, in <module>
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension import boto.exception
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension ImportError: No module named boto.exception
2015-02-28 15:21:25.950 23107 TRACE stevedore.extension
2015-02-28 15:21:26.033 23107 ERROR stevedore.extension [-] Could not load 'glance.store.s3.Store': No module named boto.exception
2015-02-28 15:21:26.034 23107 ERROR stevedore.extension [-] No module named boto.exception
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension Traceback (most recent call last):
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 162, in _load_plugins
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension verify_requirements,
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 185, in _load_one_plugin
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension plugin = ep.load(require=verify_requirements)
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2025, in load
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension entry = __import__(self.module_name, globals(),globals(), ['__name__'])
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension File "/usr/lib/python2.7/site-packages/glance_store/_drivers/s3.py", line 26, in <module>
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension import boto.exception
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension ImportError: No module named boto.exception
2015-02-28 15:21:26.034 23107 TRACE stevedore.extension
boto does not exist to glance_store requirements.
After boto installation, issue was fixed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance-store/+bug/1426767/+subscriptions
References