[openstack-dev] Error about "dest" attribute missing when adding custom glance store

Brian Waldon bcwaldon at gmail.com
Wed Mar 6 18:30:19 UTC 2013


This would work, but you can also append the store to the 'known_stores' option in glance-api.conf.

On Mar 6, 2013, at 10:14 AM, Jay Pipes wrote:

> Add your store to glance/store/__init__.py, line 42.
> 
> Best,
> -jay
> 
> On 03/06/2013 09:04 AM, DigitalWonk wrote:
>> Hi all,
>> 
>> Hopefully, this is the right place for this question. I basically wrote
>> my own store to glance, which can be found here:
>> 
>> http://paste.openstack.org/show/32823/
>> 
>> But, I get this error:
>> 
>> 2013-03-05 22:55:51 28157 DEBUG glance.store [-] Attempting to import
>> store glance.store.irods.Store _get_store_class
>> /usr/lib/python2.7/dist-packages/glance/store/__init__.py:145
>> 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/importutils.py",
>> line 30, in import_class\\n __import__(mod_str)\\n\', \' File
>> "/usr/lib/python2.7/dist-packages/glance/store/irods.py", line 27, in
>> <module>\\n CONF.register_opt(irods_opts)\\n\', \' File
>> "/usr/lib/python2.7/dist-packages/glance/openstack/common/cfg.py", line
>> 983, in __inner\\n return f(self, *args, **kwargs)\\n\', \' File
>> "/usr/lib/python2.7/dist-packages/glance/openstack/common/cfg.py", line
>> 1090, in register_opt\\n if _is_opt_registered(self._opts, opt):\\n\',
>> \' File
>> "/usr/lib/python2.7/dist-packages/glance/openstack/common/cfg.py", 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 irods.py store file is located in
>> /usr/lib/python2.7/dist-packages/glance/store/irods.py.  I have also
>> added the defined configuration options to the glance-api.conf.  After
>> looking at s3.py and filesystem.py, I'm not sure what else I'm missing. 
>> What else should I create or change to add another store in glance?
>> 
>> Thanks in advance,
>> Ed
>> 
>> 
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>> 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list