Ask Your Question
0

ceilometer-collector - oslo not define

asked 2015-08-23 04:38:21 -0500

senyapsudah gravatar image

Hi Guys,

can any of you help me to solve this solutions. i cannot start my ceilometer-collector. i can see there are errors like below.

2015-08-23 17:33:40.179 24442 ERROR ceilometer.openstack.common.threadgroup [-] global name 'oslo' is not defined
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup Traceback (most recent call last):
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/ceilometer/openstack/common/threadgroup.py", line 145, in wait
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup     x.wait()
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/ceilometer/openstack/common/threadgroup.py", line 47, in wait
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup     return self.thread.wait()
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 175, in wait
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup     return self._exit_event.wait()
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup     return hubs.get_hub().switch()
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 294, in switch
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup     return self.greenlet.switch()
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup     result = function(*args, **kwargs)
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/ceilometer/openstack/common/service.py", line 491, in run_service
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup     service.start()
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/ceilometer/collector.py", line 85, in start
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup     sample_target = oslo.messaging.Target(
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup NameError: global name 'oslo' is not defined
2015-08-23 17:33:40.179 24442 TRACE ceilometer.openstack.common.threadgroup

before this i also got problem with ceilometer-agent-notification. what i did is just change oslo.messaging to oslo_messaging inside notification.py and i'm able to bring up the in service. same thing i did for collector.py, but sadly i got a diffrent errors now.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-23 06:14:58 -0500

senyapsudah gravatar image

issue resolved. what i need to do is jut add

import oslo

into my collector.py

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: 2015-08-23 04:38:21 -0500

Seen: 100 times

Last updated: Aug 23 '15