Ask Your Question
0

nova-api did not start [closed]

asked 2016-01-07 05:51:18 -0500

audiomobster gravatar image

I'm getting following error from one day to another: /home/user/devstack/lib/nova:832:die [ERROR] /home/user/devstack/lib/nova:832 nova-api did not start

I'm not allowed to attach files, so from n-api.log:

stack@haystack:/home/user/devstack$ cat /opt/stack/logs/n-api.log tatus/stack/n-api.failure"fg || echo "n-api failed to start" | tee "/opt/stack/s [1] 12044 /usr/local/bin/nova-api 2016-01-07 11:31:21.840 DEBUG oslo_db.api [-] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=12044) _load_backend /usr/local/lib/python2.7/dist-packages/oslo_db/api.py:238 2016-01-07 11:31:21.874 WARNING oslo_reports.guru_meditation_report [-] Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports. 2016-01-07 11:31:21.874 DEBUG oslo_concurrency.lockutils [-] Acquired semaphore "singleton_lock" from (pid=12044) lock /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:212 2016-01-07 11:31:21.875 DEBUG oslo_concurrency.lockutils [-] Releasing semaphore "singleton_lock" from (pid=12044) lock /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:225 2016-01-07 11:31:21.875 DEBUG nova.wsgi [-] Loading app ec2 from /etc/nova/api-paste.ini from (pid=12044) load_app /opt/stack/nova/nova/wsgi.py:543 2016-01-07 11:31:21.876 ERROR nova.wsgi [-] Couldn't lookup app: ec2 2016-01-07 11:31:21.876 TRACE nova.wsgi Traceback (most recent call last): 2016-01-07 11:31:21.876 TRACE nova.wsgi   File "/opt/stack/nova/nova/wsgi.py", line 544, in load_app 2016-01-07 11:31:21.876 TRACE nova.wsgi     return deploy.loadapp("config:%s" % self.config_path, name=name) 2016-01-07 11:31:21.876 TRACE nova.wsgi   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp 2016-01-07 11:31:21.876 TRACE nova.wsgi     return loadobj(APP, uri, name=name,
**kw) 2016-01-07 11:31:21.876 TRACE nova.wsgi   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj 2016-01-07 11:31:21.876 TRACE nova.wsgi     global_conf=global_conf) 2016-01-07 11:31:21.876 TRACE nova.wsgi   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext 2016-01-07 11:31:21.876 TRACE nova.wsgi     global_conf=global_conf) 2016-01-07 11:31:21.876 TRACE nova.wsgi   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig 2016-01-07 11:31:21.876 TRACE nova.wsgi     return loader.get_context(object_type, name, global_conf) 2016-01-07 11:31:21.876 TRACE nova.wsgi   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context 2016-01-07 11:31:21.876 TRACE nova.wsgi     object_type, name=name) 2016-01-07 11:31:21.876 TRACE nova.wsgi   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section 2016-01-07 11:31:21.876 TRACE nova.wsgi     self.filename)) 2016-01-07 11:31:21.876 TRACE nova.wsgi LookupError: No section 'ec2' (prefixed by 'app' or 'application' or 'composite' or 'composit' or ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by audiomobster
close date 2017-06-19 00:59:48.236033

Comments

Thanks for your help folks. I left the company which I did this for a short time later, so I can't verify the answer.

audiomobster gravatar imageaudiomobster ( 2017-06-19 00:59:15 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2016-01-11 15:04:43 -0500

1:31:21.876 TRACE nova.wsgi LookupError: No section 'ec2' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/nova/api-paste.ini 2016-01-07 11:31:21.876 TRACE nova.wsgi 2016-01-07 11:31:21.877 CRITICAL nova [-] PasteAppNotFound: Could not load paste app 'ec2' from /etc/nova/api-paste.ini

looks like you need to correct your api-paste.ini

Here is an example: [root@platform2 ~]# cat /etc/nova/api-paste.ini

############
# Metadata #
############
[composite:metadata]
use = egg:Paste#urlmap
/: meta

[pipeline:meta]
pipeline = ec2faultwrap logrequest metaapp

[app:metaapp]
paste.app_factory = nova.api.metadata.handler:MetadataRequestHandler.factory

#######
# EC2 #
#######

# NOTE: this is now deprecated in favor of https://github.com/stackforge/ec2-api
[composite:ec2]
use = egg:Paste#urlmap
/: ec2cloud

[composite:ec2cloud]
use = call:nova.api.auth:pipeline_factory
noauth2 = ec2faultwrap logrequest ec2noauth cloudrequest validator ec2executor
keystone = ec2faultwrap logrequest ec2keystoneauth cloudrequest validator ec2executor

[filter:ec2faultwrap]
paste.filter_factory = nova.api.ec2:FaultWrapper.factory

[filter:logrequest]
paste.filter_factory = nova.api.ec2:RequestLogging.factory

[filter:ec2lockout]
paste.filter_factory = nova.api.ec2:Lockout.factory

[filter:ec2keystoneauth]                                                                                                                                     
paste.filter_factory = nova.api.ec2:EC2KeystoneAuth.factory

[filter:ec2noauth]
paste.filter_factory = nova.api.ec2:NoAuth.factory

[filter:cloudrequest]
controller = nova.api.ec2.cloud.CloudController
paste.filter_factory = nova.api.ec2:Requestify.factory

[filter:authorizer]
paste.filter_factory = nova.api.ec2:Authorizer.factory

[filter:validator]
paste.filter_factory = nova.api.ec2:Validator.factory

[app:ec2executor]
paste.app_factory = nova.api.ec2:Executor.factory

#############
# OpenStack #
#############

[composite:osapi_compute]
use = call:nova.api.openstack.urlmap:urlmap_factory
/: oscomputeversions
# starting in Liberty the v21 implementation replaces the v2
# implementation and is suggested that you use it as the default. If
# this causes issues with your clients you can rollback to the
# *frozen* v2 api by commenting out the above stanza and using the
# following instead::
# /v1.1: openstack_compute_api_legacy_v2
# /v2: openstack_compute_api_legacy_v2
# if rolling back to v2 fixes your issue please file a critical bug
# at - https://bugs.launchpad.net/nova/+bugs
#
# v21 is an exactly feature match for v2, except it has more stringent
# input validation on the wsgi surface (prevents fuzzing early on the
# API). It also provides new features via API microversions which are
# opt into for clients. Unaware clients will receive the same frozen
# v2 API feature set, but with some relaxed validation
/v1.1: openstack_compute_api_v21_legacy_v2_compatible
/v2: openstack_compute_api_v21_legacy_v2_compatible
/v2.1: openstack_compute_api_v21

# NOTE: this is deprecated in favor of openstack_compute_api_v21_legacy_v2_compatible
[composite:openstack_compute_api_legacy_v2]
use = call:nova.api.auth:pipeline_factory
noauth2 = compute_req_id faultwrap sizelimit noauth2 legacy_ratelimit osapi_compute_app_legacy_v2
keystone = compute_req_id faultwrap sizelimit authtoken keystonecontext legacy_ratelimit osapi_compute_app_legacy_v2
keystone_nolimit = compute_req_id faultwrap sizelimit authtoken keystonecontext osapi_compute_app_legacy_v2

[composite:openstack_compute_api_v21]
use = call:nova.api.auth:pipeline_factory_v21
noauth2 = compute_req_id faultwrap sizelimit noauth2 osapi_compute_app_v21
keystone = compute_req_id faultwrap sizelimit authtoken keystonecontext osapi_compute_app_v21

[composite:openstack_compute_api_v21_legacy_v2_compatible]
use = call:nova.api.auth:pipeline_factory_v21
noauth2 = compute_req_id faultwrap sizelimit noauth2 legacy_v2_compatible osapi_compute_app_v21
keystone = compute_req_id faultwrap sizelimit authtoken keystonecontext legacy_v2_compatible osapi_compute_app_v21

[filter:request_id]
paste.filter_factory = oslo_middleware:RequestId.factory

[filter:compute_req_id]
paste.filter_factory = nova.api.compute_req_id:ComputeReqIdMiddleware.factory

[filter:faultwrap]
paste.filter_factory = nova.api.openstack:FaultWrapper.factory

[filter:noauth2]
paste.filter_factory = nova.api.openstack.auth:NoAuthMiddleware.factory

[filter:legacy_ratelimit]
paste.filter_factory = nova.api ...
(more)
edit flag offensive delete link more
0

answered 2016-01-11 14:33:51 -0500

Sandeep gravatar image

updated 2016-01-11 14:34:17 -0500

restart complete service: systemctl restart openstack-nova-consoleauth.service systemctl restart openstack-nova-cert.service systemctl restart openstack-nova-compute.service systemctl restart openstack-nova-conductor.service systemctl restart openstack-nova-consoleauth.service

if using devstack: /usr/local/bin->nova all

edit flag offensive delete link more

Comments

or you could just use openstack-service restart

bcollins gravatar imagebcollins ( 2016-01-11 14:57:10 -0500 )edit
0

answered 2016-01-13 02:45:06 -0500

audiomobster gravatar image

updated 2016-01-13 02:47:54 -0500

Was solved after a git pull and unstack.sh & stack.sh.

Thanks anyway folks!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-01-07 05:51:18 -0500

Seen: 2,342 times

Last updated: Jan 13 '16