Ask Your Question
0

ceilometer-api CRITICAL ceilometer [-] ImportError: No module named code

asked 2014-10-27 10:23:23 -0500

Asif J gravatar image

updated 2014-10-27 10:28:06 -0500

mpetason gravatar image

ceilometer-api service startup fails

2014-10-27 20:40:50.047 14953 INFO ceilometer.api.app [-] Full WSGI config used: /etc/ceilometer/api_paste.ini

2014-10-27 20:40:50.452 14953 CRITICAL ceilometer [-] ImportError: No module named code

2014-10-27 20:40:50.452 14953 TRACE ceilometer Traceback (most recent call last):

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/bin/ceilometer-api", line 10, in <module>

2014-10-27 20:40:50.452 14953 TRACE ceilometer     sys.exit(main())

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/ceilometer/cmd/api.py", line 23, in main

2014-10-27 20:40:50.452 14953 TRACE ceilometer     srv = app.build_server()

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/ceilometer/api/app.py", line 157, in build_server

2014-10-27 20:40:50.452 14953 TRACE ceilometer     app = load_app()

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/ceilometer/api/app.py", line 153, in load_app

2014-10-27 20:40:50.452 14953 TRACE ceilometer     return deploy.loadapp("config:" + cfg_file)

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp

2014-10-27 20:40:50.452 14953 TRACE ceilometer     return loadobj(APP, uri, name=name, **kw)

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj

2014-10-27 20:40:50.452 14953 TRACE ceilometer     return context.create()

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create

2014-10-27 20:40:50.452 14953 TRACE ceilometer     return self.object_type.invoke(self)

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 203, in invoke

2014-10-27 20:40:50.452 14953 TRACE ceilometer     app = context.app_context.create()

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create

2014-10-27 20:40:50.452 14953 TRACE ceilometer     return self.object_type.invoke(self)

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke

2014-10-27 20:40:50.452 14953 TRACE ceilometer     return fix_call(context.object, context.global_conf, **context.local_conf)

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call

2014-10-27 20:40:50.452 14953 TRACE ceilometer     val = callable(*args, **kw)

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/ceilometer/api/app.py", line 181, in app_factory

2014-10-27 20:40:50.452 14953 TRACE ceilometer     return VersionSelectorApplication()

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2.7/dist-packages/ceilometer/api/app.py", line 104, in __init__

2014-10-27 20:40:50.452 14953 TRACE ceilometer     self.v2 = setup_app(pecan_config=pc)

2014-10-27 20:40:50.452 14953 TRACE ceilometer   File "/usr/lib/python2 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-10-27 10:25:24 -0500

Asif J gravatar image

Resolved by running following commands to update to bson and other packages

pip install pymongo

sudo apt-get install build-essential python-dev**

edit flag offensive delete link more

Comments

good to know, thanks.

SGPJ gravatar imageSGPJ ( 2014-10-31 10:02:55 -0500 )edit

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: 2014-10-27 10:23:23 -0500

Seen: 1,234 times

Last updated: Oct 27 '14