Ask Your Question
0

ImportError: No module named tools.tracer

asked 2011-08-16 18:25:08 -0500

gagupta gravatar image

t@openstack:openstack# /home/cloud/openstack/nova/bin/nova-api /usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py:8: UserWarning: Module nov a was already imported from /home/cloud/openstack/nova/nova/__init__.pyc, but / usr/lib/pymodules/python2.6 is being added to sys.path import pkg_resources 2011-08-16 11:16:34,292 AUDIT nova [-] Nova Version (2011.3-LOCALBRANCH:LOCALREVISION) 2011-08-16 11:16:34,293 AUDIT nova [-] Currently active flags: 2011-08-16 11:16:34,293 AUDIT nova [-] help : None 2011-08-16 11:16:34,293 AUDIT nova [-] ec2_dmz_host : 192.168.1.101 2011-08-16 11:16:34,293 AUDIT nova [-] compute_topic : compute 2011-08-16 11:16:34,293 AUDIT nova [-] glance_api_servers : ['192.168.1.101:9292'] 2011-08-16 11:16:34,293 AUDIT nova [-] rabbit_password : guest 2011-08-16 11:16:34,293 AUDIT nova [-] s3_dmz : 192.168.1.101 2011-08-16 11:16:34,293 AUDIT nova [-] aws_access_key_id : admin 2011-08-16 11:16:34,294 AUDIT nova [-] enable_new_services : True 2011-08-16 11:16:34,294 AUDIT nova [-] my_ip : 192.168.1.101 2011-08-16 11:16:34,294 AUDIT nova [-] zone_capabilities : ['hypervisor=xenserver;kvm', 'os=linux;windows'] 2011-08-16 11:16:34,294 AUDIT nova [-] logdir : None 2011-08-16 11:16:34,294 AUDIT nova [-] sqlite_db : nova.sqlite 2011-08-16 11:16:34,294 AUDIT nova [-] helpxml : None 2011-08-16 11:16:34,294 AUDIT nova [-] notification_driver : nova.notifier.no_op_notifier 2011-08-16 11:16:34,294 AUDIT nova [-] osapi_max_limit : 1000 2011-08-16 11:16:34,294 AUDIT nova [-] rabbit_port : 5672 2011-08-16 11:16:34,295 AUDIT nova [-] rabbit_max_retries : 12 2011-08-16 11:16:34,295 AUDIT nova [-] resume_guests_state_on_host_boot : False 2011-08-16 11:16:34,295 AUDIT nova [-] ec2_listen : 0.0.0.0 2011-08-16 11:16:34,295 AUDIT nova [-] logfile : None 2011-08-16 11:16:34,295 AUDIT nova [-] ajax_console_proxy_url : http://127.0.0.1:8000 2011-08-16 11:16:34,295 AUDIT nova [-] snapshot_name_template : snapshot-%08x 2011-08-16 11:16:34,295 AUDIT nova [-] ajax_console_proxy_topic : ajax_proxy 2011-08-16 11:16:34,295 AUDIT nova [-] rabbit_userid : guest 2011-08-16 11:16:34,295 AUDIT nova [-] volume_topic : volume 2011-08-16 11:16:34,296 AUDIT nova [-] volume_name_template : volume-%08x 2011-08-16 11:16:34,296 AUDIT nova [-] lock_path : /home/cloud/openstack/nova/nova/../ 2011-08-16 11:16:34,296 AUDIT nova [-] osapi_listen_port : 8774 2011-08-16 11:16:34,296 AUDIT nova [-] connection_type : libvirt 2011-08-16 11:16:34,296 AUDIT nova [-] default_project : openstack 2011-08-16 11:16:34,296 AUDIT nova [-] s3_port : 3333 2011-08-16 11:16:34,296 AUDIT nova [-] logfile_mode : 420 2011-08-16 11:16:34,296 AUDIT nova [-] logging_context_format_string : %(asctime)s %(levelname)s %(name)s [%(request_id)s %(user_id)s %(project_id)s] %(message)s 2011-08-16 11:16:34,296 AUDIT nova [-] instance_name_template : instance-%08x 2011-08-16 11:16:34,297 AUDIT nova [-] ec2_host : 192.168.1.101 2011-08-16 11:16:34,297 AUDIT nova [-] logging_debug_format_suffix : from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d 2011-08-16 11:16:34,297 AUDIT nova [-] console_manager : nova.console.manager.ConsoleProxyManager 2011-08-16 11:16:34,297 AUDIT nova [-] ? : None 2011-08-16 11:16:34,297 AUDIT nova [-] rpc_backend : nova.rpc.amqp 2011-08-16 11:16:34,297 AUDIT nova [-] default_log_levels : ['amqplib=WARN', 'sqlalchemy=WARN', 'boto=WARN ... (more)

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2011-08-16 19:00:14 -0500

gagupta gravatar image

Thanks. The workaround works

I updated the bug to refer to Keystone.

edit flag offensive delete link more
0

answered 2011-08-16 18:37:30 -0500

vishvananda gravatar image

This is actually a keystone error. The import for tools tracer requires that the parent keystone directory is in your path. This is actually a bug that should be reported to keystone. As a workaround, add the parent keystone directory to your python path or just comment out the line in keystone/keystone/middleware/auth_token.py

edit flag offensive delete link more
0

answered 2011-08-16 18:31:02 -0500

gagupta gravatar image

I am getting the ImportError for "tools.tracer". The nova-api service does come up. I see the following line on stdout: 2011-08-16 11:16:34,523 INFO nova.wsgi [-] Started ec2 on 0.0.0.0:8773

Can someone point me to the right direction on why this error is happening and how to fix it.

edit flag offensive delete link more
0

answered 2011-08-16 19:00:19 -0500

gagupta gravatar image

Thanks Vish Ishaya, that solved my question.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-08-16 18:25:08 -0500

Seen: 81 times

Last updated: Aug 16 '11