ceilometer-alarm-notifier and ceilometer-alarm-evaluator packages with lot of dependecies

Asked by Malleshi C N

Hi Team ,
 I am working on configuring ceilometer
I tried to install the ceilometer-alarm-notifier and ceilometer-alarm-evaluator packages according to the link https://launchpad.net/ubuntu/+source/ceilometer/2014.1~b2-0ubuntu1
but its deleteing my old installation of ceilometer packages and while installing asking many dependecies as below

root@controller:/home/oss# dpkg -i ceilometer-agent-central_2014.1~b2-0ubuntu1_all.deb ceilometer-agent-notification_2014.1~b2-0ubuntu1_all.deb ceilometer-alarm-evaluator_2014.1~b2-0ubuntu1_all.deb ceilometer-alarm-notifier_2014.1~b2-0ubuntu1_all.deb ceilometer-api_2014.1~b2-0ubuntu1_all.deb ceilometer-collector_2014.1~b2-0ubuntu1_all.deb ceilometer-common_2014.1~b2-0ubuntu1_all.deb python-ceilometer_2014.1~b2-0ubuntu1_all.deb
(Reading database ... 128377 files and directories currently installed.)
Preparing to replace ceilometer-agent-central 2014.1~b2-0ubuntu1 (using ceilometer-agent-central_2014.1~b2-0ubuntu1_all.deb) ...
Unpacking replacement ceilometer-agent-central ...
Selecting previously unselected package ceilometer-agent-notification.
Unpacking ceilometer-agent-notification (from ceilometer-agent-notification_2014.1~b2-0ubuntu1_all.deb) ...
Preparing to replace ceilometer-alarm-evaluator 2014.1~b2-0ubuntu1 (using ceilometer-alarm-evaluator_2014.1~b2-0ubuntu1_all.deb) ...
Unpacking replacement ceilometer-alarm-evaluator ...
Preparing to replace ceilometer-alarm-notifier 2014.1~b2-0ubuntu1 (using ceilometer-alarm-notifier_2014.1~b2-0ubuntu1_all.deb) ...
Unpacking replacement ceilometer-alarm-notifier ...
Preparing to replace ceilometer-api 2013.2-0ubuntu1~cloud0 (using ceilometer-api_2014.1~b2-0ubuntu1_all.deb) ...
ceilometer-api stop/waiting
Unpacking replacement ceilometer-api ...
Preparing to replace ceilometer-collector 2013.2-0ubuntu1~cloud0 (using ceilometer-collector_2014.1~b2-0ubuntu1_all.deb) ...
ceilometer-collector stop/waiting
Unpacking replacement ceilometer-collector ...
Preparing to replace ceilometer-common 2014.1~b2-0ubuntu1 (using ceilometer-common_2014.1~b2-0ubuntu1_all.deb) ...
Unpacking replacement ceilometer-common ...
Preparing to replace python-ceilometer 2014.1~b2-0ubuntu1 (using python-ceilometer_2014.1~b2-0ubuntu1_all.deb) ...
Unpacking replacement python-ceilometer ...
dpkg: dependency problems prevent configuration of python-ceilometer:
 python-ceilometer depends on python-msgpack; however:
  Package python-msgpack is not installed.
 python-ceilometer depends on python-ceilometerclient (>= 1.0.6); however:
  Version of python-ceilometerclient on system is 1.0.5-0ubuntu1~cloud0.
 python-ceilometer depends on python-iso8601 (>= 0.1.8); however:
  Version of python-iso8601 on system is 0.1.4-1ubuntu1.
 python-ceilometer depends on python-keystoneclient (>= 1:0.4.1); however:
  Version of python-keystoneclient on system is 1:0.3.2-0ubuntu1~cloud0.
 python-ceilometer depends on python-six (>= 1.4.1); however:
  Version of python-six on system is 1.1.0-2.
 python-ceilometer depends on python-stevedore (>= 0.12); however:
  Version of python-stevedore on system is 0.10-2~cloud0.
 python-ceilometer depends on python-wsme (>= 0.5b6); however:
  Version of python-wsme on system is 0.5b5-1ubuntu2~cloud0.
 python-ceilometer depends on python-jsonpath-rw; however:
  Package python-jsonpath-rw is not installed.
dpkg: error processing python-ceilometer (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ceilometer-common:
 ceilometer-common depends on python-ceilometer (= 2014.1~b2-0ubuntu1); however:
  Package python-ceilometer is not configured yet.
dpkg: error processing ceilometer-common (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ceilometer-agent-central:
 ceilometer-agent-central depends on ceilometer-common (= 2014.1~b2-0ubuntu1); however:
  Package ceilometer-common is not configured yet.
dpkg: error processing ceilometer-agent-central (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ceilometer-agent-notification:
 ceilometer-agent-notification depends on ceilometer-common (= 2014.1~b2-0ubuntu1); however:
  Package ceilometer-common is not configured yet.
dpkg: error processing ceilometer-agent-notification (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ceilometer-alarm-evaluator:
 ceilometer-alarm-evaluator depends on ceilometer-common (= 2014.1~b2-0ubuntu1); however:
  Package ceilometer-common is not configured yet.
dpkg: error processing ceilometer-alarm-evaluator (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ceilometer-alarm-notifier:
 ceilometer-alarm-notifier depends on ceilometer-common (= 2014.1~b2-0ubuntu1); however:
  Package ceilometer-common is not configured yet.
dpkg: error processing ceilometer-alarm-notifier (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ceilometer-api:
 ceilometer-api depends on ceilometer-common (= 2014.1~b2-0ubuntu1); however:
  Package ceilometer-common is not configured yet.
dpkg: error processing ceilometer-api (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ceilometer-collector:
 ceilometer-collector depends on ceilometer-common (= 2014.1~b2-0ubuntu1); however:
  Package ceilometer-common is not configured yet.
dpkg: error processing ceilometer-collector (--install):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead ...
Errors were encountered while processing:
 python-ceilometer
 ceilometer-common
 ceilometer-agent-central
 ceilometer-agent-notification
 ceilometer-alarm-evaluator
 ceilometer-alarm-notifier
 ceilometer-api
 ceilometer-collector

but on my system I can see, but ceilometer services are not running after this. Any suggestion ..? it may be a simple but I am stuck here
root@Tcontroller:~# dpkg --list | grep -i ceilometer
iU ceilometer-agent-central 2014.1~b2-0ubuntu1 ceilometer central agent
iU ceilometer-agent-notification 2014.1~b2-0ubuntu1 ceilometer notification agent
iU ceilometer-alarm-evaluator 2014.1~b2-0ubuntu1 Ceilometer alarm evaluator
iU ceilometer-alarm-notifier 2014.1~b2-0ubuntu1 Ceilometer notification agent
iU ceilometer-api 2014.1~b2-0ubuntu1 ceilometer api service
iU ceilometer-collector 2014.1~b2-0ubuntu1 ceilometer collector service
iU ceilometer-common 2014.1~b2-0ubuntu1 ceilometer common files
iU python-ceilometer 2014.1~b2-0ubuntu1 ceilometer python libraries
ii python-ceilometerclient 1.0.5-0ubuntu1~cloud0 Client library for Openstack ceilometer server.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ceilometer Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

What Ubuntu release are you running? The dependencies for the 2014.1~b1 package are fulfilled only with the trusty release of Ubuntu.

If you are running an older Ubuntu release, you might have better chances with a PPA. e.g. https://launchpad.net/~ubuntu-cloud-archive/+archive/icehouse-staging

Revision history for this message
Malleshi C N (malleshicn) said :
#2

Hi Manfred,
I am running with below version
root@controller:/home/oss# cat /etc/issue
Ubuntu 12.04.3 LTS \n \l

root@controller:/home/oss# getconf LONG_BIT
64
root@controller:/home/oss#

Revision history for this message
Malleshi C N (malleshicn) said :
#3

I have installed Havana on my 3 node configuration

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

As far as I can see the package in that PPA has been based on the packages that you tried to installed, and been modified for precise-icehouse. I do not have any knowledge whether that now will work on your precise-havana system.

Revision history for this message
Malleshi C N (malleshicn) said :
#5

Hi manfred dome more details:

I have installed Ceilometer on Ubuntu12.04 on Havana setup.

My Question is whenever my CPU load > 30 , I am not getting any alarm. Below is the details

+---------------------------+------------------------------------------------------------------+
| Property | Value |
+---------------------------+------------------------------------------------------------------+
| alarm_actions | [u'http://x.x.x.x:5000'] |
| user_id | admin |
| name | cpuutlization |
| enabled | True |
| rule | {u'meter_name': u'cpu', u'evaluation_periods': 1, u'period': 60, |
| | u'statistic': u'avg', u'threshold': 30.0, u'query': [], |
| | u'comparison_operator': u'gt'} |
| alarm_id | 5e9085ef-e0e5-4e8a-afdb-7987ebe47943 |
| state | alarm |
| insufficient_data_actions | [] |
| repeat_actions | False |
| ok_actions | [] |
| project_id | 536518d5b38d4f3e9dcab26403d4d6e8 |
| type | threshold |
| description | Threshholdvalue |
+---------------------------+------------------------------------------------------------------+
root@Tcontroller:/home/oss# ceilometer alarm-list
+------------------+------------------+-------+---------+------------+--------------------------------------+---------+----------------------------------+
| Name | Description | State | Enabled | Continuous | Alarm ID | User ID | Project ID |
+------------------+------------------+-------+---------+------------+--------------------------------------+---------+----------------------------------+
| cpuutlization | Threshholdvalue | alarm | True | False | 5e9085ef-e0e5-4e8a-afdb-7987ebe47943 | admin | 536518d5b38d4f3e9dcab26403d4d6e8 |
| memory_over_load | Threshhold_value | alarm | True | False | 6133d8de-670d-4c64-996b-930c9c843a2c | admin | 536518d5b38d4f3e9dcab26403d4d6e8 |
+------------------+------------------+-------+---------+------------+--------------------------------------+---------+----------------------------------+
root@Tcontroller:/home/oss#

1. I tried with ‘log://”
ceilometer alarm-threshold-create --name cpuutlization --project-id 536518d5b38d4f3e9dcab26403d4d6e8 --user-id admin --description Threshholdvalue --state alarm --enabled True --alarm-action 'log://' --meter-name cpu --period 60 --evaluation-periods 1 --statistic avg --comparison-operator 'gt' --threshold 30

alarm got created but when I load got increased , I couldnot see any log under /var/log/ceilometer . I have only below log files.

root@controller:/var/log/ceilometer# ls
ceilometer-agent-central.log ceilometer-api.log ceilometer-collector.log
root@controller:/var/log/ceilometer#

2. ceilometer alarm-threshold-create --name cpuutlization --project-id 536518d5b38d4f3e9dcab26403d4d6e8 --user-id admin --description Threshholdvalue --state alarm --enabled True --alarm-action 'http://x.x.x.x:5000/v2.0' --meter-name cpu --period 60 --evaluation-periods 1 --statistic avg --comparison-operator 'gt' --threshold 30
or
1. ceilometer alarm-threshold-create --name cpuutlization --project-id 536518d5b38d4f3e9dcab26403d4d6e8 --user-id admin --description Threshholdvalue --state alarm --enabled True --alarm-action 'http://x.x.x.x:5000' --meter-name cpu --period 60 --evaluation-periods 1 --statistic avg --comparison-operator 'gt' --threshold 30

I tried with both,

I couldn’t see anything on 'http://x.x.x.x:5000’ . how I will come to know alarm triggered…?

Package details:

root@Tcontroller:/home/oss# dpkg --list | grep -i ceilometer
ii ceilometer-agent-central 2013.2-0ubuntu1~cloud0 ceilometer central agent
ii ceilometer-api 2013.2-0ubuntu1~cloud0 ceilometer api service
ii ceilometer-collector 2013.2-0ubuntu1~cloud0 ceilometer collector service
ii ceilometer-common 2013.2-0ubuntu1~cloud0 ceilometer common files
ii python-ceilometer 2013.2-0ubuntu1~cloud0 ceilometer python libraries
ii python-ceilometerclient 1.0.5-0ubuntu1~cloud0 Client library for Openstack ceilometer server.
root@Tcontroller:/home/oss# dpkg --list | grep ^C
root@Tcontroller:/home/oss# which ceilometer^C
root@Tcontroller:/home/oss# which ceilometer-alarm-notifier
/usr/bin/ceilometer-alarm-notifier
root@Tcontroller:/home/oss# dpkg -S /usr/bin/ceilometer-alarm-notifier
ceilometer-common: /usr/bin/ceilometer-alarm-notifier
root@Tcontroller:/home/oss# dpkg -l | grep ceilometer-common
ii ceilometer-common 2013.2-0ubuntu1~cloud0 ceilometer common files
root@Tcontroller:/home/oss# dpkg -L ceilometer-common
/.
/usr
/usr/bin
/usr/bin/ceilometer-dbsync
/usr/bin/ceilometer-alarm-notifier
/usr/bin/ceilometer-expirer
/usr/bin/ceilometer-alarm-evaluator
/usr/share
/usr/share/doc
/usr/share/doc/ceilometer
/usr/share/doc/ceilometer/show_data.py
/usr/share/doc/ceilometer-common
/usr/share/doc/ceilometer-common/copyright
/var
/var/lib
/var/lib/ceilometer
/var/log
/var/log/ceilometer
/etc
/etc/ceilometer
/etc/ceilometer/sources.json
/etc/ceilometer/pipeline.yaml
/etc/ceilometer/ceilometer.conf
/etc/ceilometer/policy.json
/usr/share/doc/ceilometer-common/changelog.Debian.gz
root@Tcontroller:/home/oss#
root@Tcontroller:/home/oss# dpkg -L ceilometer-agent-central
/.
/usr
/usr/bin
/usr/bin/ceilometer-agent-central
/usr/share
/usr/share/doc
/usr/share/doc/ceilometer-agent-central
/usr/share/doc/ceilometer-agent-central/copyright
/etc
/etc/init
/etc/init/ceilometer-agent-central.conf
/etc/init.d
/usr/share/doc/ceilometer-agent-central/changelog.Debian.gz
/etc/init.d/ceilometer-agent-central

Waiting for your further assistance..

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

I would not expect that you get reasonable answers on these questions on Ubuntu launchpad answers.
Most probably you better contact the ceilometer developers, maybe https://ask.openstack.org/en/questions/scope:all/sort:activity-desc/tags:ceilometer/ can serve as a starting point.

Revision history for this message
Bruce Martins (bmartins) said :
#7

Hi Malleshi,

I noticed the same thing and created a bug about this some time ago, it seems the package does not create the upstart services as it should, typically Openstack would say this is the problem of the packager owner in this case ubuntu.

You have to create the upstart services manually.

this might not be the proper way to do it, but it works

go to

/etc/init

create the missing conf files so

vim ceilometer-alarm-evaluator.conf

copy and past the below between the "========"

==================================================
description "ceilometer-alarm-evaluator"
author "Bruce Martins"

start on runlevel [2345]
stop on runlelvel [!2345]

chdir /var/run

pre-start script
        mkdir -p /var/run/ceilometer
        chown ceilometer:ceilometer /var/run/ceilometer

        mkdir -p /var/lock/ceilometer
        chown ceilometer:ceilometer /var/lock/ceilometer
end script

exec start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-alarm-evaluator

==============================================================================

save and then create the second file

vim ceilometer-alarm-notifier.conf

copy and past the below between the "========"

===============================================================================
description "ceilometer-alarm-evaluator"
author "Bruce Martins <email address hidden>"

start on runlevel [2345]
stop on runlelvel [!2345]

chdir /var/run

pre-start script
        mkdir -p /var/run/ceilometer
        chown ceilometer:ceilometer /var/run/ceilometer

        mkdir -p /var/lock/ceilometer
        chown ceilometer:ceilometer /var/lock/ceilometer
end script

exec start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-alarm-notifier

============================================================================

save and exit

change the the init.d directiory

# cd /etc/init.d

create the symbolic links
# ln -s /lib/init/upstart-job ceilometer-alarm-notifier
# ln -s /lib/init/upstart-job ceilometer-alarm-evaluator

then start the services
# service ceilometer-alarm-notifier start
# service ceilometer-alarm-evaluator start

Revision history for this message
Malleshi C N (malleshicn) said :
#8

Hello bruce,

Thanks for the assistance , Now I am able to see the ceilometer-alarm-notifier and ceilometer-alarm-evaluator services.
bUt I am not able to see alarm notification in my log , Below is the details

root@Tcontroller:/var/log/ceilometer# ceilometer alarm-threshold-create --name cpuutlization --project-id 536518d5b38d4f3e9dcab26403d4d6e8 --user-id admin --description Threshholdvalue --state alarm --enabled True --alarm-action 'log://' --meter-name cpu_util --period 60 --evaluation-periods 1 --statistic avg --comparison-operator 'gt' --threshold 30 --repeat-actions True
+---------------------------+-----------------------------------------------------------------------+
| Property | Value |
+---------------------------+-----------------------------------------------------------------------+
| alarm_actions | [u'log://'] |
| user_id | admin |
| name | cpuutlization |
| enabled | True |
| rule | {u'meter_name': u'cpu_util', u'evaluation_periods': 1, u'period': 60, |
| | u'statistic': u'avg', u'threshold': 30.0, u'query': [], |
| | u'comparison_operator': u'gt'} |
| alarm_id | 0027e9f1-be4e-4088-8c2e-7febf9923453 |
| state | alarm |
| insufficient_data_actions | [] |
| repeat_actions | True |
| ok_actions | [] |
| project_id | 536518d5b38d4f3e9dcab26403d4d6e8 |
| type | threshold |
| description | Threshholdvalue |
+---------------------------+-----------------------------------------------------------------------+

Logs:
root@controller:/var/log/ceilometer# ls
ceilometer-agent-central.log ceilometer-alarm-notifier.log ceilometer-collector.log
ceilometer-alarm-evaluator.log ceilometer-api.log

root@controller:/var/log/ceilometer# tail -f ceilometer-alarm-notifier.log ceilometer-alarm-evaluator.log

 ==> ceilometer-alarm-notifier.log <==

==> ceilometer-alarm-evaluator.log <==

Do I need to change any configurations ..? where this alarm notifications are getting logged ?

Regards,
Malleshi C N

Revision history for this message
Bruce Martins (bmartins) said :
#9

do you have your logging set to debug ?

Revision history for this message
Malleshi C N (malleshicn) said :
#10

hello Bruce,

I have found something from my log .

==> ceilometer-collector.log <==
2014-03-25 05:40:56.308 1047 ERROR stevedore.extension [-] error calling 'port': 'tenant_id'
2014-03-25 05:40:56.308 1047 ERROR stevedore.extension [-] 'tenant_id'
2014-03-25 05:40:56.308 1047 TRACE stevedore.extension Traceback (most recent call last):
2014-03-25 05:40:56.308 1047 TRACE stevedore.extension File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 145, in _invoke_one_plugin
2014-03-25 05:40:56.308 1047 TRACE stevedore.extension response_callback(func(e, *args, **kwds))
2014-03-25 05:40:56.308 1047 TRACE stevedore.extension File "/usr/lib/python2.7/dist-packages/ceilometer/collector/service.py", line 293, in _process_notification_for_ext
2014-03-25 05:40:56.308 1047 TRACE stevedore.extension p(list(ext.obj.to_samples(notification)))
2014-03-25 05:40:56.308 1047 TRACE stevedore.extension File "/usr/lib/python2.7/dist-packages/ceilometer/network/notifications.py", line 89, in process_notification
2014-03-25 05:40:56.308 1047 TRACE stevedore.extension project_id=message['payload']['tenant_id'],
2014-03-25 05:40:56.308 1047 TRACE stevedore.extension KeyError: 'tenant_id'
2014-03-25 05:40:56.308 1047 TRACE stevedore.extension

refer:
https://bugs.launchpad.net/ceilometer/+bug/1276761

I am not sure its a bug or I am doing something wrong ..?

Please let me know

Can you help with this problem?

Provide an answer of your own, or ask Malleshi C N for more information if necessary.

To post a message you must log in.