Browse code

Added ceilometer-agent-ipmi support

Enable devstack to start ceilometer-agent-ipmi.

Change-Id: Ia5f4c78760415a50f329fc2f1cf2f20be2e3c221
Closes-Bug: #1410614

Lianhao Lu authored on 2015/03/24 13:36:00
Showing 1 changed files
... ...
@@ -13,6 +13,26 @@
13 13
 #
14 14
 #   enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
15 15
 #
16
+# To enable Ceilometer to collect the IPMI based meters, further add to the
17
+# localrc section of local.conf:
18
+#
19
+#   enable_service ceilometer-aipmi
20
+#
21
+# NOTE: Currently, there are two ways to get the IPMI based meters in
22
+# OpenStack. One way is to configure Ironic conductor to report those meters
23
+# for the nodes managed by Ironic and to have Ceilometer notification
24
+# agent to collect them. Ironic by default does NOT enable that reporting
25
+# functionality. So in order to do so, users need to set the option of
26
+# conductor.send_sensor_data to true in the ironic.conf configuration file
27
+# for the Ironic conductor service, and also enable the
28
+# ceilometer-anotification service.
29
+#
30
+# The other way is to use Ceilometer ipmi agent only to get the IPMI based
31
+# meters. To avoid duplicated meters, users need to make sure to set the
32
+# option of conductor.send_sensor_data to false in the ironic.conf
33
+# configuration file if the node on which Ceilometer ipmi agent is running
34
+# is also managed by Ironic.
35
+#
16 36
 # Several variables set in the localrc section adjust common behaviors
17 37
 # of Ceilometer (see within for additional settings):
18 38
 #
... ...
@@ -231,6 +251,11 @@ function configure_ceilometer {
231 231
         iniset $CEILOMETER_CONF api pecan_debug "False"
232 232
         _config_ceilometer_apache_wsgi
233 233
     fi
234
+
235
+    if is_service_enabled ceilometer-aipmi; then
236
+        # Configure rootwrap for the ipmi agent
237
+        configure_rootwrap ceilometer $CEILOMETER_BIN_DIR/ceilometer-rootwrap $CEILOMETER_DIR/etc/ceilometer
238
+    fi
234 239
 }
235 240
 
236 241
 function configure_mongodb {
... ...
@@ -327,6 +352,7 @@ function start_ceilometer {
327 327
     run_process ceilometer-acentral "ceilometer-agent-central --config-file $CEILOMETER_CONF"
328 328
     run_process ceilometer-anotification "ceilometer-agent-notification --config-file $CEILOMETER_CONF"
329 329
     run_process ceilometer-collector "ceilometer-collector --config-file $CEILOMETER_CONF"
330
+    run_process ceilometer-aipmi "ceilometer-agent-ipmi --config-file $CEILOMETER_CONF"
330 331
 
331 332
     if [[ "$CEILOMETER_USE_MOD_WSGI" == "False" ]]; then
332 333
         run_process ceilometer-api "ceilometer-api -d -v --log-dir=$CEILOMETER_API_LOG_DIR --config-file $CEILOMETER_CONF"
... ...
@@ -366,7 +392,7 @@ function stop_ceilometer {
366 366
         restart_apache_server
367 367
     fi
368 368
     # Kill the ceilometer screen windows
369
-    for serv in ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector ceilometer-api ceilometer-alarm-notifier ceilometer-alarm-evaluator; do
369
+    for serv in ceilometer-acompute ceilometer-acentral ceilometer-aipmi ceilometer-anotification ceilometer-collector ceilometer-api ceilometer-alarm-notifier ceilometer-alarm-evaluator; do
370 370
         stop_process $serv
371 371
     done
372 372
 }