← Back to team overview

openstack team mailing list archive

[nova-api] No module named nova_keystone_context

 

Hello,

Every time i start nova-api i get the following output:

nova-api --config-file=/etc/nova/nova.conf
> 2012-04-30 15:23:51 CRITICAL nova [-] No module named nova_keystone_context
> 2012-04-30 15:23:51 TRACE nova Traceback (most recent call last):
> 2012-04-30 15:23:51 TRACE nova   File "/usr/bin/nova-api", line 51, in
> <module>
> 2012-04-30 15:23:51 TRACE nova     servers.append(service.WSGIService(api))
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/nova/service.py", line 326, in __init__
> 2012-04-30 15:23:51 TRACE nova     self.app = self.loader.load_app(name)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/nova/wsgi.py", line 388, in load_app
> 2012-04-30 15:23:51 TRACE nova     return deploy.loadapp("config:%s" %
> self.config_path, name=name)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in
> loadapp
> 2012-04-30 15:23:51 TRACE nova     return loadobj(APP, uri, name=name,
> **kw)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in
> loadobj
> 2012-04-30 15:23:51 TRACE nova     return context.create()
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in
> create
> 2012-04-30 15:23:51 TRACE nova     return self.object_type.invoke(self)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in
> invoke
> 2012-04-30 15:23:51 TRACE nova     **context.local_conf)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in
> fix_call
> 2012-04-30 15:23:51 TRACE nova     val = callable(*args, **kw)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/nova/api/openstack/urlmap.py", line 163,
> in urlmap_factory
> 2012-04-30 15:23:51 TRACE nova     app = loader.get_app(app_name,
> global_conf=global_conf)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in
> get_app
> 2012-04-30 15:23:51 TRACE nova     name=name,
> global_conf=global_conf).create()
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in
> create
> 2012-04-30 15:23:51 TRACE nova     return self.object_type.invoke(self)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in
> invoke
> 2012-04-30 15:23:51 TRACE nova     **context.local_conf)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in
> fix_call
> 2012-04-30 15:23:51 TRACE nova     val = callable(*args, **kw)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/nova/api/auth.py", line 48, in
> pipeline_factory
> 2012-04-30 15:23:51 TRACE nova     filters = [loader.get_filter(n) for n
> in pipeline[:-1]]
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 354, in
> get_filter
> 2012-04-30 15:23:51 TRACE nova     name=name,
> global_conf=global_conf).create()
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 366, in
> filter_context
> 2012-04-30 15:23:51 TRACE nova     FILTER, name=name,
> global_conf=global_conf)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in
> get_context
> 2012-04-30 15:23:51 TRACE nova     section)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 517, in
> _context_from_explicit
> 2012-04-30 15:23:51 TRACE nova     value = import_string(found_expr)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 22, in
> import_string
> 2012-04-30 15:23:51 TRACE nova     return
> pkg_resources.EntryPoint.parse("x=" + s).load(False)
> 2012-04-30 15:23:51 TRACE nova   File
> "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
> 2012-04-30 15:23:51 TRACE nova     entry = __import__(self.module_name,
> globals(),globals(), ['__name__'])
> 2012-04-30 15:23:51 TRACE nova ImportError: No module named
> nova_keystone_context
> 2012-04-30 15:23:51 TRACE nova
> Exception KeyError: KeyError(140300442122736,) in <module 'threading' from
> '/usr/lib/python2.7/threading.pyc'> ignored



Am i missing something from my config file, or is it something else?

Here's my nova.conf file:

[DEFAULT]
> # LOG/State
> verbose=True
> # Authentication
> auth_strategy=keystone
> # Scheduler
> compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
> # VOLUMES
> volume_group=nova-volumes
> volume_name_template=volume-%08x
> iscsi_helper=tgtadm
> iscsi_ip_prefix=192.168.164.128
> # COMPUTE
> libvirt_type=kvm
> connection_type=libvirt
> instance_name_template=instance-%08x
> api_paste_config=/etc/nova/api-paste.ini
> allow_resize_to_same_host=True
> root_helper=sudo nova-rootwrap
> libvirt_use_virtio_for_bridges=True
> allow_admin_api=true
> instances_path=/var/lib/nova/instances
> # enable to automatically assign floating ip
> #auto_assign_floating_ip=True
> #enable for multihost
> #multi_host=True
> # DATABASE
> sql_connection=mysql://nova:@192.168.164.128/nova
> # APIS
>
> osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
> #ec2_dmz_host=192.168.164.128
> #s3_dmz=192.168.164.128
> #ec2_host=192.168.164.128
> #s3_host=192.168.164.128
> osapi_host=192.168.164.128
>
> # Glance
> glance_api_servers=192.168.164.128:9292
> # RABBITMQ
> rabbit_host=192.168.164.128
> # NETWORK
> firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
> dhcpbridge_flagfile=/etc/nova/nova.conf
> dhcpbridge=/usr/bin/nova-dhcpbridge
> force_dhcp_release=True
> public_interface=eth0
> vlan_interface=eth1
> vlan_start=100
> zone_name=nova
> node_availability_zone=nova
> storage_availability_zone=nova
> enable_zone_routing=true
> # NOVNC CONSOLE
> novncproxy_base_url=http://192.168.164.128:6080/vnc_auto.html
> vncserver_proxyclient_address=192.168.164.128
> vncserver_listen=192.168.164.128


Regards,

Leander

Follow ups