Ask Your Question
1

ceilometer cpu_util meter not showing up

asked 2014-06-18 08:46:54 -0500

Shardy gravatar image

I want to create an alarm in ceilometer on cpu_util but i don't seem to have that meter.

It doesn't show up when I run "ceilometer meter-list"

It is in the yaml file though.

Any idea why this might be and how I to get it to be measured - I currently have two instances running.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-18 22:09:37 -0500

Shardy gravatar image

updated 2014-06-19 01:36:50 -0500

I think I may be able to (partially) answer my own question here - it turned out on my compute node the message queue was not connecting to the controller node. I saw some errors about it. I was able to fix that problem by adding "rpc_backend = qpid" into the ceilometer.conf. But now I have some new problems. On the compute node the /var/log/ceilometer/compute.log has lots of messages like this:

2014-06-19 11:04:16.571 36042 ERROR ceilometer.pipeline [-] Pipeline network_sink: Continue after error from publisher <ceilometer.publisher.rpc.RPCPublisher object at 0x3a70cd0>
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline Traceback (most recent call last):
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline   File "/usr/lib/python2.6/site-packages/ceilometer/pipeline.py", line 309, in _publish_samples
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline     p.publish_samples(ctxt, transformed_samples)
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline   File "/usr/lib/python2.6/site-packages/ceilometer/publisher/rpc.py", line 156, in publish_samples
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline     self.flush()
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline   File "/usr/lib/python2.6/site-packages/ceilometer/publisher/rpc.py", line 167, in flush
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline     self.local_queue = self._process_queue(queue, self.policy) + \
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline   File "/usr/lib/python2.6/site-packages/ceilometer/publisher/rpc.py", line 199, in _process_queue
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline     rpc.cast(context, topic, msg)
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline   File "/usr/lib/python2.6/site-packages/ceilometer/openstack/common/rpc/__init__.py", line 130, in cast
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline     return _get_impl().cast(CONF, context, topic, msg)
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline AttributeError: 'module' object has no attribute 'cast'
2014-06-19 11:04:16.571 36042 TRACE ceilometer.pipeline

Any ideas?

ceilometer.conf on Compute Node is like this:

[DEFAULT]
[DEFAULT]
qpid_hostname = controller
rpc_backend = qpid
[alarm]
[api]
[collector]
[database]
[dispatcher_file]
[event]
[keystone_authtoken]
auth_host = controller
admin_user = ceilometer
admin_tenant_name = service
auth_protocol = http
admin_password = ceilometer
[matchmaker_redis]
[matchmaker_ring]
[notification]
[publisher]
metering_secret = fca029c770ed83a89e64
[publisher_rpc]
[rpc_notifier2]
[service_credentials]
os_username = ceilometer
os_tenant_name = service
os_password = ceilometer
os_auth_url = http://controller:5000/v2.0
[ssl]
[vmware]

And on controller like this:

[DEFAULT]
[DEFAULT]
rpc_backend = ceilometer.openstack.common.rpc.impl_qpid
auth_strategy = keystone
[alarm]
[api]
[collector]
[database]
connection = mongodb://ceilometer:CEILOMETER_DBPASS@controller:27017/ceilometer
[dispatcher_file]
[event]
[keystone_authtoken]
auth_host = controller
admin_user = ceilometer
admin_tenant_name = service
auth_protocol = http
auth_uri = http://controller:5000
admin_password = ceilometer
[matchmaker_redis]
[matchmaker_ring]
[notification]
[publisher]
metering_secret = fca029c770ed83a89e64
[publisher_rpc]
[rpc_notifier2]
[service_credentials]
os_auth_url = http://controller:5000/v2.0
os_username = ceilometer
os_tenant_name = service
os_password = ceilometer
[ssl]
[vmware]
edit flag offensive delete link more

Comments

Can you please share your ceilometer.conf file from compute and controller node

manish gravatar imagemanish ( 2014-06-19 00:53:45 -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-06-18 08:46:54 -0500

Seen: 1,758 times

Last updated: Jun 19 '14