scality / scality-glance-store

Glance backend for Scality
Apache License 2.0
0 stars 0 forks source link

Forget to set scality_sproxyd_endpoints raises cryptic error #12

Closed JordanP closed 9 years ago

JordanP commented 9 years ago

If someone forgets to configure the scality_sproxyd_endpoints flag in glance-api.conf, Glance refuses to start with the error :

2015-04-30 15:20:12.874 CRITICAL glance [-] TypeError: 'NoneType' object is not iterable

2015-04-30 15:20:12.874 TRACE glance Traceback (most recent call last):
2015-04-30 15:20:12.874 TRACE glance   File "/usr/local/bin/glance-api", line 10, in <module>
2015-04-30 15:20:12.874 TRACE glance     sys.exit(main())
2015-04-30 15:20:12.874 TRACE glance   File "/opt/stack/glance/glance/cmd/api.py", line 87, in main
2015-04-30 15:20:12.874 TRACE glance     server.start(config.load_paste_app('glance-api'), default_port=9292)
2015-04-30 15:20:12.874 TRACE glance   File "/opt/stack/glance/glance/common/wsgi.py", line 298, in start
2015-04-30 15:20:12.874 TRACE glance     self.configure()
2015-04-30 15:20:12.874 TRACE glance   File "/opt/stack/glance/glance/common/wsgi.py", line 372, in configure
2015-04-30 15:20:12.874 TRACE glance     initialize_glance_store()
2015-04-30 15:20:12.874 TRACE glance   File "/opt/stack/glance/glance/common/wsgi.py", line 219, in initialize_glance_store
2015-04-30 15:20:12.874 TRACE glance     glance_store.create_stores(CONF)
2015-04-30 15:20:12.874 TRACE glance   File "/usr/local/lib/python2.7/dist-packages/glance_store/backend.py", line 183, in create_stores
2015-04-30 15:20:12.874 TRACE glance     for (store_entry, store_instance) in _load_stores(conf):
2015-04-30 15:20:12.874 TRACE glance   File "/usr/local/lib/python2.7/dist-packages/glance_store/backend.py", line 165, in _load_stores
2015-04-30 15:20:12.874 TRACE glance     store_instance = _load_store(conf, store_entry)
2015-04-30 15:20:12.874 TRACE glance   File "/usr/local/lib/python2.7/dist-packages/glance_store/backend.py", line 152, in _load_store
2015-04-30 15:20:12.874 TRACE glance     invoke_on_load=invoke_load)
2015-04-30 15:20:12.874 TRACE glance   File "/usr/local/lib/python2.7/dist-packages/stevedore/driver.py", line 45, in __init__
2015-04-30 15:20:12.874 TRACE glance     verify_requirements=verify_requirements,
2015-04-30 15:20:12.874 TRACE glance   File "/usr/local/lib/python2.7/dist-packages/stevedore/named.py", line 55, in __init__
2015-04-30 15:20:12.874 TRACE glance     verify_requirements)
2015-04-30 15:20:12.874 TRACE glance   File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 170, in _load_plugins
2015-04-30 15:20:12.874 TRACE glance     self._on_load_failure_callback(self, ep, err)
2015-04-30 15:20:12.874 TRACE glance   File "/usr/local/lib/python2.7/dist-packages/stevedore/driver.py", line 50, in _default_on_load_failure
2015-04-30 15:20:12.874 TRACE glance     raise err
2015-04-30 15:20:12.874 TRACE glance TypeError: 'NoneType' object is not iterable
2015-04-30 15:20:12.874 TRACE glance 
g-api failed to start

Which is a bit cryptic.