Ask Your Question

Attempting to add a custom store file, but I receive an CONF error

asked 2013-03-06 05:59:58 -0500

digitalwonk gravatar image

Hi all,

Hopefully, this is the right place for this question. I basically wrote my own store to glance, which can be found here:

But, I get this error:

2013-03-05 22:55:51 28157 DEBUG [-] Attempting to import store _get_store_class /usr/lib/python2.7/dist-packages/glance/store/ ERROR: Unable to load glance-api-keystone from configuration file /etc/glance/glance-api-paste.ini. Got: ImportError('Class Store cannot be found ([\'Traceback (most recent call last):\n\', \' File "/usr/lib/python2.7/dist-packages/glance/openstack/common/", line 30, in import_class\n __import__(mod_str)\n\', \' File "/usr/lib/python2.7/dist-packages/glance/store/", line 27, in <module>\n CONF.register_opt(irods_opts)\n\', \' File "/usr/lib/python2.7/dist-packages/glance/openstack/common/", line 983, in __inner\n return f(self, args, *kwargs)\n\', \' File "/usr/lib/python2.7/dist-packages/glance/openstack/common/", line 1090, in register_opt\n if _is_opt_registered(self._opts, opt):\n\', \' File "/usr/lib/python2.7/dist-packages/glance/openstack/common/", line 469, in _is_opt_registered\n if opt.dest in opts:\n\', "AttributeError: \'list\' object has no attribute \'dest\'\n"])',) 2013-03-05 22:55:51 28116 ERROR eventlet.wsgi.server [-] Removing dead child 28157

The store file is located in /usr/lib/python2.7/dist-packages/glance/store/ After looking at and, I'm not sure what else I'm missing.

Thanks in advance, Ed

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-03-06 06:04:54 -0500

digitalwonk gravatar image

If I import the file from within /usr/lib/python2.7/dist-packages/glance/store, the error is also seen (but not with


Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import s3 import irods Traceback (most recent call last): File "<stdin>", line 1, in <module> File "", line 27, in <module> CONF.register_opt(irods_opts) File "/usr/lib/python2.7/dist-packages/glance/openstack/common/", line 983, in __inner return f(self, args, *kwargs) File "/usr/lib/python2.7/dist-packages/glance/openstack/common/", line 1090, in register_opt if _is_opt_registered(self._opts, opt): File "/usr/lib/python2.7/dist-packages/glance/openstack/common/", line 469, in _is_opt_registered if opt.dest in opts: AttributeError: 'list' object has no attribute 'dest'

edit flag offensive delete link more

answered 2013-03-18 05:31:34 -0500

digitalwonk gravatar image

The solution was that I was invoking register_opt, when I should have invoked register_opts

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-03-06 05:59:58 -0500

Seen: 82 times

Last updated: Mar 18 '13