← Back to team overview

openstack team mailing list archive

Re: [Nova] Unable to start nova-api

 

Hi-

Thanks a lot for the reply.

it solved the issue.




On Tue, Feb 5, 2013 at 3:47 PM, Unmesh Gurjar <unmesh.gurjar@xxxxxxxxx>wrote:

> Trinath,
>
> You probably have a wrong config setting. Please check the value of
> 'network_api_class' in your nova.conf and confirm that the module with the
> specified class exists.
>
> The default value of this parameter is "nova.network.api.API", so you
> should expect class 'API' in nova/network/api.py of your Nova codebase.
>
> Regards,
> Unmesh.
>
> On Tue, Feb 5, 2013 at 3:23 PM, Trinath Somanchi <
> trinath.somanchi@xxxxxxxxx> wrote:
>
>> Hi-
>>
>>
>>
>> When I start the nova-api  service, I’m getting this error:
>>
>>
>>
>> Can anyone help me troubleshoot the issue
>>
>>
>>
>> root@NewFolsomController:/etc/nova# nova-api
>> --flagfile=/etc/nova/nova.conf
>>
>> 2013-02-05 12:29:29 DEBUG nova.utils [-] Inner Exception: No module named
>> api from (pid=19874) import_class
>> /usr/lib/python2.7/dist-packages/nova/utils.py:78
>>
>> 2013-02-05 12:29:29 CRITICAL nova [-] Class API could not be found: No
>> module named api
>>
>> 2013-02-05 12:29:29 TRACE nova Traceback (most recent call last):
>>
>> 2013-02-05 12:29:29 TRACE nova   File "/usr/bin/nova-api", line 51, in
>> <module>
>>
>> 2013-02-05 12:29:29 TRACE nova
>> servers.append(service.WSGIService(api))
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/nova/service.py", line 326, in __init__
>>
>> 2013-02-05 12:29:29 TRACE nova     self.app = self.loader.load_app(name)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/nova/wsgi.py", line 388, in load_app
>>
>> 2013-02-05 12:29:29 TRACE nova     return deploy.loadapp("config:%s" %
>> self.config_path, name=name)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in
>> loadapp
>>
>> 2013-02-05 12:29:29 TRACE nova     return loadobj(APP, uri, name=name,
>> **kw)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in
>> loadobj
>>
>> 2013-02-05 12:29:29 TRACE nova     return context.create()
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in
>> create
>>
>> 2013-02-05 12:29:29 TRACE nova     return self.object_type.invoke(self)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in
>> invoke
>>
>> 2013-02-05 12:29:29 TRACE nova     **context.local_conf)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in
>> fix_call
>>
>> 2013-02-05 12:29:29 TRACE nova     val = callable(*args, **kw)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 25, in
>> urlmap_factory
>>
>> 2013-02-05 12:29:29 TRACE nova     app = loader.get_app(app_name,
>> global_conf=global_conf)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in
>> get_app
>>
>> 2013-02-05 12:29:29 TRACE nova     name=name,
>> global_conf=global_conf).create()
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in
>> create
>>
>> 2013-02-05 12:29:29 TRACE nova     return self.object_type.invoke(self)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in
>> invoke
>>
>> 2013-02-05 12:29:29 TRACE nova     **context.local_conf)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in
>> fix_call
>>
>> 2013-02-05 12:29:29 TRACE nova     val = callable(*args, **kw)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/nova/api/auth.py", line 48, in
>> pipeline_factory
>>
>> 2013-02-05 12:29:29 TRACE nova     filters = [loader.get_filter(n) for n
>> in pipeline[:-1]]
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 354, in
>> get_filter
>>
>> 2013-02-05 12:29:29 TRACE nova     name=name,
>> global_conf=global_conf).create()
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 366, in
>> filter_context
>>
>> 2013-02-05 12:29:29 TRACE nova     FILTER, name=name,
>> global_conf=global_conf)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in
>> get_context
>>
>> 2013-02-05 12:29:29 TRACE nova     section)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 517, in
>> _context_from_explicit
>>
>> 2013-02-05 12:29:29 TRACE nova     value = import_string(found_expr)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 22, in
>> import_string
>>
>> 2013-02-05 12:29:29 TRACE nova     return
>> pkg_resources.EntryPoint.parse("x=" + s).load(False)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
>>
>> 2013-02-05 12:29:29 TRACE nova     entry = __import__(self.module_name,
>> globals(),globals(), ['__name__'])
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/nova/api/ec2/__init__.py", line 30, in
>> <module>
>>
>> 2013-02-05 12:29:29 TRACE nova     from nova.api.ec2 import apirequest
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/nova/api/ec2/apirequest.py", line 27, in
>> <module>
>>
>> 2013-02-05 12:29:29 TRACE nova     from nova.api.ec2 import ec2utils
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/nova/api/ec2/ec2utils.py", line 25, in
>> <module>
>>
>> 2013-02-05 12:29:29 TRACE nova     from nova import network
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/nova/network/__init__.py", line 24, in
>> <module>
>>
>> 2013-02-05 12:29:29 TRACE nova     API =
>> nova.utils.import_class(nova.flags.FLAGS.network_api_class)
>>
>> 2013-02-05 12:29:29 TRACE nova   File
>> "/usr/lib/python2.7/dist-packages/nova/utils.py", line 79, in import_class
>>
>> 2013-02-05 12:29:29 TRACE nova     raise
>> exception.ClassNotFound(class_name=class_str, exception=exc)
>>
>> 2013-02-05 12:29:29 TRACE nova ClassNotFound: Class API could not be
>> found: No module named api
>>
>> 2013-02-05 12:29:29 TRACE nova
>>
>> --
>> Regards,
>> ----------------------------------------------
>> Trinath Somanchi,
>> +91 9866 235 130
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>


-- 
Regards,
----------------------------------------------
Trinath Somanchi,
+91 9866 235 130

References