[Openstack] Cannot start neutron-server

dheeru dheerendra.madhusudhana at gmail.com
Thu Nov 28 16:24:52 UTC 2013


Thats cool kevin. Your poblem is resolved.

-Dheeru
@Community Service


On Thu, Nov 28, 2013 at 8:38 PM, Kevin Breit <kevin.breit at kevinbreit.net>wrote:

> That was indeed the fix. I needed to install python-keystoneclient and it
> worked immediately. Thank you.
>
>
> On 28 Nov 2013, at 1:36, dheeru wrote:
>
>  Looks like you missed installing the keystoneclient/middleware
>>
>> Can you check you have keystoneclient/middleware/authtoken* ?
>>
>> You server is failing while importing the above module. Due to this it is
>> trying to load quantum configuration
>>
>> -dheeru
>> @Community Sevice
>>
>>
>> On Thu, Nov 28, 2013 at 10:47 AM, Jitendra Kumar Bhaskar <
>> jitendra.b at pramati.com> wrote:
>>
>>  Hi Kevin,
>>>
>>> Can you please update the api-pase.ini in [filter:authtoken] to :
>>>
>>> [filter:authtoken]
>>> paste.filter_factory = keystoneclient.middleware.
>>> auth_token:filter_factory
>>> auth_host=controllerauth_port = 35357
>>> auth_protocol = http
>>> admin_user=neutron
>>> admin_tenant_name=service
>>> admin_password=password
>>>
>>>
>>>
>>> Regards
>>> *Jitendra Bhaskar*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Nov 28, 2013 at 2:34 AM, kevin.breit at kevinbreit.net <
>>> kevin.breit at kevinbreit.net> wrote:
>>>
>>>  I am trying to start neutron-server on my network node but it is
>>>> crashing. Here is the output followed by my api-paste.ini file. What is
>>>> wrong? I have the exact same api-paste.ini file working on other server
>>>> but
>>>> it is crashing on my neutron node. Any suggestions?
>>>>
>>>> [root at networking neutron]# neutron-server
>>>> 2013-11-27 14:58:04.447 5336 INFO neutron.common.config [-] Logging
>>>> enabled!
>>>> 2013-11-27 14:58:04.448 5336 ERROR neutron.common.legacy [-] Skipping
>>>> unknown group key: firewall_driver
>>>> 2013-11-27 14:58:04.453 5336 INFO neutron.common.config [-] Config paste
>>>> file: /etc/neutron/api-paste.ini
>>>> 2013-11-27 14:58:04.459 5336 ERROR neutron.common.config [-] Unable to
>>>> load neutron from configuration file /etc/neutron/api-paste.ini.
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config Traceback (most
>>>> recent call last):
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/neutron/common/config.py", line 144,
>>>> in
>>>> load_paste_app
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     app =
>>>> deploy.loadapp("config:%s" % config_path, name=app_name)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 247, in loadapp
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     return
>>>> loadobj(APP, uri, name=name, **kw)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 272, in loadobj
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     return
>>>> context.create()
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 710, in create
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     return
>>>> self.object_type.invoke(self)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 144, in invoke
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config
>>>> **context.local_conf)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/util.py",
>>>> line 56, in fix_call
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     val =
>>>> callable(*args, **kw)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 25, in
>>>> urlmap_factory
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     app =
>>>> loader.get_app(app_name, global_conf=global_conf)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 350, in get_app
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     name=name,
>>>> global_conf=global_conf).create()
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 710, in create
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     return
>>>> self.object_type.invoke(self)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 144, in invoke
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config
>>>> **context.local_conf)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/util.py",
>>>> line 56, in fix_call
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     val =
>>>> callable(*args, **kw)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/neutron/auth.py", line 58, in
>>>> pipeline_factory
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     filters =
>>>> [loader.get_filter(n) for n in pipeline[:-1]]
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 354, in get_filter
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     name=name,
>>>> global_conf=global_conf).create()
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 366, in filter_context
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     FILTER,
>>>> name=name, global_conf=global_conf)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 458, in get_context
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     section)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 517, in _context_from_explicit
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     value =
>>>> import_string(found_expr)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 22, in import_string
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     return
>>>> pkg_resources.EntryPoint.parse("x=" + s).load(False)
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config     entry =
>>>> __import__(self.module_name, globals(),globals(), ['__name__'])
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config ImportError: No
>>>> module named keystoneclient.middleware.auth_token
>>>> 2013-11-27 14:58:04.459 5336 TRACE neutron.common.config
>>>> 2013-11-27 14:58:04.463 5336 WARNING neutron.service [-] Attempting
>>>> fallback to old Quantum api-paste config
>>>> 2013-11-27 14:58:04.464 5336 INFO neutron.common.config [-] Logging
>>>> enabled!
>>>> 2013-11-27 14:58:04.464 5336 ERROR neutron.common.legacy [-] Skipping
>>>> unknown group key: firewall_driver
>>>> 2013-11-27 14:58:04.467 5336 INFO neutron.common.config [-] Config paste
>>>> file: /etc/neutron/api-paste.ini
>>>> 2013-11-27 14:58:04.467 5336 ERROR neutron.common.config [-] Unable to
>>>> load quantum from configuration file /etc/neutron/api-paste.ini.
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config Traceback (most
>>>> recent call last):
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/neutron/common/config.py", line 144,
>>>> in
>>>> load_paste_app
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config     app =
>>>> deploy.loadapp("config:%s" % config_path, name=app_name)
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 247, in loadapp
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config     return
>>>> loadobj(APP, uri, name=name, **kw)
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 271, in loadobj
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config
>>>> global_conf=global_conf)
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 296, in loadcontext
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config
>>>> global_conf=global_conf)
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 320, in _loadconfig
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config     return
>>>> loader.get_context(object_type, name, global_conf)
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 408, in get_context
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config
>>>> object_type,
>>>> name=name)
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config   File
>>>> "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-
>>>> py2.6.egg/paste/deploy/loadwsgi.py",
>>>> line 587, in find_config_section
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config
>>>> self.filename))
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config LookupError: No
>>>> section 'quantum' (prefixed by 'app' or 'application' or 'composite' or
>>>> 'composit' or 'pipeline' or 'filter-app') found in config
>>>> /etc/neutron/api-paste.ini
>>>> 2013-11-27 14:58:04.467 5336 TRACE neutron.common.config
>>>> 2013-11-27 14:58:04.468 5336 ERROR neutron.service [-] In serve_wsgi()
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service Traceback (most
>>>> recent
>>>> call last):
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service   File
>>>> "/usr/lib/python2.6/site-packages/neutron/service.py", line 100, in
>>>> serve_wsgi
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service     service.start()
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service   File
>>>> "/usr/lib/python2.6/site-packages/neutron/service.py", line 65, in
>>>> start
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service     self.wsgi_app =
>>>> _run_wsgi(self.app_name)
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service   File
>>>> "/usr/lib/python2.6/site-packages/neutron/service.py", line 109, in
>>>> _run_wsgi
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service     app =
>>>> config.load_paste_app(app_name)
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service   File
>>>> "/usr/lib/python2.6/site-packages/neutron/common/config.py", line 151,
>>>> in
>>>> load_paste_app
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service     raise
>>>> RuntimeError(msg)
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service RuntimeError: Unable
>>>> to load quantum from configuration file /etc/neutron/api-paste.ini.
>>>> 2013-11-27 14:58:04.468 5336 TRACE neutron.service
>>>> ERROR: Unable to load quantum from configuration file
>>>> /etc/neutron/api-paste.ini.
>>>> [root at networking neutron]# cat api-paste.ini
>>>> [composite:neutron]
>>>> use = egg:Paste#urlmap
>>>> /: neutronversions
>>>> /v2.0: neutronapi_v2_0
>>>>
>>>> [composite:neutronapi_v2_0]
>>>> use = call:neutron.auth:pipeline_factory
>>>> noauth = extensions neutronapiapp_v2_0
>>>> keystone = authtoken keystonecontext extensions neutronapiapp_v2_0
>>>>
>>>> [filter:keystonecontext]
>>>> paste.filter_factory = neutron.auth:NeutronKeystoneContext.factory
>>>>
>>>> [filter:authtoken]
>>>> paste.filter_factory = keystoneclient.middleware.
>>>> auth_token:filter_factory
>>>> auth_host = controller
>>>> auth_uri = http://controller:5000
>>>> admin_user = neutron
>>>> admin_tenant_name = service
>>>> admin_password = pass
>>>>
>>>> [filter:extensions]
>>>> paste.filter_factory =
>>>> neutron.api.extensions:plugin_aware_extension_middleware_factory
>>>>
>>>> [app:neutronversions]
>>>> paste.app_factory = neutron.api.versions:Versions.factory
>>>>
>>>> [app:neutronapiapp_v2_0]
>>>> paste.app_factory = neutron.api.v2.router:APIRouter.factory
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list:
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>> Post to     : openstack at lists.openstack.org
>>>> Unsubscribe :
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> Mailing list:
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>> Post to     : openstack at lists.openstack.org
>>> Unsubscribe :
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>
>>>
>>>


-- 
-dheeru
@Community Service
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131128/7651acac/attachment.html>


More information about the Openstack mailing list