blob: b1ff8b415703e8bdbe6874d98eecfaac2d13bab7 [file] [log] [blame]
John H. Tran93361642012-07-26 11:22:05 -07001# lib/ceilometer
Dean Troyer6d04fd72012-12-21 11:03:37 -06002# Install and start **Ceilometer** service
3
Eoghan Glynn8d137032013-07-30 14:14:55 +00004# To enable a minimal set of Ceilometer services, add the following to localrc:
Adam Spierscb961592013-10-05 12:11:07 +01005#
Gordon Chung1c402282013-11-26 13:30:11 -05006# enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector ceilometer-api
Eoghan Glynn8d137032013-07-30 14:14:55 +00007#
8# To ensure Ceilometer alarming services are enabled also, further add to the localrc:
Adam Spierscb961592013-10-05 12:11:07 +01009#
Eoghan Glynn19eed742013-09-20 21:11:25 +000010# enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
Surya Prabhakar31d31852012-09-17 20:25:41 +053011
John H. Tran93361642012-07-26 11:22:05 -070012# Dependencies:
Adam Spiers6a5aa7c2013-10-24 11:27:02 +010013#
John H. Tran93361642012-07-26 11:22:05 -070014# - functions
Doug Hellmann4a2b1c62012-11-01 16:23:52 -040015# - OS_AUTH_URL for auth in api
Eoghan Glynnad80ead2012-09-27 09:36:33 +010016# - DEST set to the destination directory
Doug Hellmann4a2b1c62012-11-01 16:23:52 -040017# - SERVICE_PASSWORD, SERVICE_TENANT_NAME for auth in api
Attila Fazekas91b8d132013-01-06 22:40:09 +010018# - STACK_USER service user
John H. Tran93361642012-07-26 11:22:05 -070019
20# stack.sh
21# ---------
Adam Spiers6a5aa7c2013-10-24 11:27:02 +010022# - install_ceilometer
23# - configure_ceilometer
24# - init_ceilometer
25# - start_ceilometer
26# - stop_ceilometer
27# - cleanup_ceilometer
John H. Tran93361642012-07-26 11:22:05 -070028
Dean Troyer7903b792012-09-13 17:16:12 -050029# Save trace setting
30XTRACE=$(set +o | grep xtrace)
31set +o xtrace
John H. Tran93361642012-07-26 11:22:05 -070032
33
34# Defaults
35# --------
36
Dean Troyer6d04fd72012-12-21 11:03:37 -060037# Set up default directories
Sean Dague5cb19062014-11-01 01:37:45 +010038GITDIR["ceilometerclient"]=$DEST/python-ceilometerclient
39
John H. Tran93361642012-07-26 11:22:05 -070040CEILOMETER_DIR=$DEST/ceilometer
Dean Troyer6d04fd72012-12-21 11:03:37 -060041CEILOMETER_CONF_DIR=/etc/ceilometer
42CEILOMETER_CONF=$CEILOMETER_CONF_DIR/ceilometer.conf
43CEILOMETER_API_LOG_DIR=/var/log/ceilometer-api
Lianhao Lu8c548492013-01-09 10:41:54 +080044CEILOMETER_AUTH_CACHE_DIR=${CEILOMETER_AUTH_CACHE_DIR:-/var/cache/ceilometer}
Chris Dentae6fb182014-09-16 15:17:13 +010045CEILOMETER_WSGI_DIR=${CEILOMETER_WSGI_DIR:-/var/www/ceilometer}
Dean Troyer6d04fd72012-12-21 11:03:37 -060046
Monty Taylor9fbeedd2012-08-17 12:52:27 -040047# Support potential entry-points console scripts
Guangyu Suo9778b3c2013-07-17 15:22:21 +080048CEILOMETER_BIN_DIR=$(get_python_exec_prefix)
John H. Tran93361642012-07-26 11:22:05 -070049
Guangyu Suo9778b3c2013-07-17 15:22:21 +080050# Set up database backend
Julien Danjou69f74572013-08-27 11:43:53 +020051CEILOMETER_BACKEND=${CEILOMETER_BACKEND:-mysql}
Dean Troyercc6b4432013-04-08 15:38:03 -050052
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010053# Ceilometer connection info.
54CEILOMETER_SERVICE_PROTOCOL=http
55CEILOMETER_SERVICE_HOST=$SERVICE_HOST
56CEILOMETER_SERVICE_PORT=${CEILOMETER_SERVICE_PORT:-8777}
Chris Dentae6fb182014-09-16 15:17:13 +010057CEILOMETER_USE_MOD_WSGI=$(trueorfalse False $CEILOMETER_USE_MOD_WSGI)
Dean Troyer4237f592014-01-29 16:22:11 -060058
Boris Pavlovic46e1aba2014-07-01 14:15:52 +040059# To enable OSprofiler change value of this variable to "notifications,profiler"
60CEILOMETER_NOTIFICATION_TOPICS=${CEILOMETER_NOTIFICATION_TOPICS:-notifications}
61
Dean Troyer4237f592014-01-29 16:22:11 -060062# Tell Tempest this project is present
63TEMPEST_SERVICES+=,ceilometer
64
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010065
Dean Troyercc6b4432013-04-08 15:38:03 -050066# Functions
67# ---------
Dean Troyere4fa7212014-01-15 15:04:49 -060068
69# Test if any Ceilometer services are enabled
70# is_ceilometer_enabled
71function is_ceilometer_enabled {
72 [[ ,${ENABLED_SERVICES} =~ ,"ceilometer-" ]] && return 0
73 return 1
74}
75
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010076# create_ceilometer_accounts() - Set up common required ceilometer accounts
Chris Dent67bc8e82014-10-08 12:07:46 +010077#
Dean Troyer42a59c22014-03-03 14:31:29 -060078# Project User Roles
79# ------------------------------------------------------------------
80# SERVICE_TENANT_NAME ceilometer admin
81# SERVICE_TENANT_NAME ceilometer ResellerAdmin (if Swift is enabled)
Chris Dent67bc8e82014-10-08 12:07:46 +010082function create_ceilometer_accounts {
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010083
Dean Troyer16ef9762014-08-19 19:31:34 -050084 local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
85 local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010086
87 # Ceilometer
88 if [[ "$ENABLED_SERVICES" =~ "ceilometer-api" ]]; then
Dean Troyer16ef9762014-08-19 19:31:34 -050089 local ceilometer_user=$(get_or_create_user "ceilometer" \
90 "$SERVICE_PASSWORD" $service_tenant)
91 get_or_add_user_role $admin_role $ceilometer_user $service_tenant
Bartosz Górski0abde392014-02-28 14:15:19 +010092
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010093 if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
Dean Troyer16ef9762014-08-19 19:31:34 -050094 local ceilometer_service=$(get_or_create_service "ceilometer" \
Bartosz Górski0abde392014-02-28 14:15:19 +010095 "metering" "OpenStack Telemetry Service")
Dean Troyer16ef9762014-08-19 19:31:34 -050096 get_or_create_endpoint $ceilometer_service \
Bartosz Górski0abde392014-02-28 14:15:19 +010097 "$REGION_NAME" \
98 "$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/" \
99 "$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/" \
100 "$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/"
Dirk Muellerfa5ccff2014-01-09 13:27:35 +0100101 fi
Dean Troyer42a59c22014-03-03 14:31:29 -0600102 if is_service_enabled swift; then
103 # Ceilometer needs ResellerAdmin role to access swift account stats.
Bartosz Górski0abde392014-02-28 14:15:19 +0100104 get_or_add_user_role "ResellerAdmin" "ceilometer" $SERVICE_TENANT_NAME
Dean Troyer42a59c22014-03-03 14:31:29 -0600105 fi
Dirk Muellerfa5ccff2014-01-09 13:27:35 +0100106 fi
107}
108
Dean Troyercc6b4432013-04-08 15:38:03 -0500109
Chris Dentae6fb182014-09-16 15:17:13 +0100110# _cleanup_keystone_apache_wsgi() - Remove wsgi files, disable and remove apache vhost file
111function _cleanup_ceilometer_apache_wsgi {
112 sudo rm -f $CEILOMETER_WSGI_DIR/*
113 sudo rm -f $(apache_site_config_for ceilometer)
114}
115
John H. Tran93361642012-07-26 11:22:05 -0700116# cleanup_ceilometer() - Remove residual data files, anything left over from previous
117# runs that a clean run would need to clean up
Ian Wienandaee18c72014-02-21 15:35:08 +1100118function cleanup_ceilometer {
Ian Wienand936284b2014-03-11 09:35:55 +1100119 if [ "$CEILOMETER_BACKEND" != 'mysql' ] && [ "$CEILOMETER_BACKEND" != 'postgresql' ] ; then
120 mongo ceilometer --eval "db.dropDatabase();"
121 fi
Chris Dentae6fb182014-09-16 15:17:13 +0100122 if [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
123 _cleanup_ceilometer_apache_wsgi
124 fi
125}
126
127function _config_ceilometer_apache_wsgi {
128 sudo mkdir -p $CEILOMETER_WSGI_DIR
129
130 local ceilometer_apache_conf=$(apache_site_config_for ceilometer)
131 local apache_version=$(get_apache_version)
132
133 # copy proxy vhost and wsgi file
134 sudo cp $CEILOMETER_DIR/ceilometer/api/app.wsgi $CEILOMETER_WSGI_DIR/app
135
136 sudo cp $FILES/apache-ceilometer.template $ceilometer_apache_conf
137 sudo sed -e "
138 s|%PORT%|$CEILOMETER_SERVICE_PORT|g;
139 s|%APACHE_NAME%|$APACHE_NAME|g;
140 s|%WSGIAPP%|$CEILOMETER_WSGI_DIR/app|g;
141 s|%USER%|$STACK_USER|g
142 " -i $ceilometer_apache_conf
John H. Tran93361642012-07-26 11:22:05 -0700143}
144
145# configure_ceilometer() - Set config files, create data dirs, etc
Ian Wienandaee18c72014-02-21 15:35:08 +1100146function configure_ceilometer {
Doug Hellmannc5259b42012-09-22 10:52:31 -0400147 [ ! -d $CEILOMETER_CONF_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_CONF_DIR
Stephan Renatuse578eff2013-11-19 13:31:04 +0100148 sudo chown $STACK_USER $CEILOMETER_CONF_DIR
Surya Prabhakar31d31852012-09-17 20:25:41 +0530149
Doug Hellmannc5259b42012-09-22 10:52:31 -0400150 [ ! -d $CEILOMETER_API_LOG_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_API_LOG_DIR
Stephan Renatuse578eff2013-11-19 13:31:04 +0100151 sudo chown $STACK_USER $CEILOMETER_API_LOG_DIR
John H. Tran93361642012-07-26 11:22:05 -0700152
Eoghan Glynn8c11f562013-03-01 12:09:01 +0000153 iniset_rpc_backend ceilometer $CEILOMETER_CONF DEFAULT
Eoghan Glynnd36268a2013-02-22 21:59:52 +0000154
Boris Pavlovic46e1aba2014-07-01 14:15:52 +0400155 iniset $CEILOMETER_CONF DEFAULT notification_topics "$CEILOMETER_NOTIFICATION_TOPICS"
Julien Danjou4b3e4e52012-10-24 16:32:01 +0200156 iniset $CEILOMETER_CONF DEFAULT verbose True
Nadya Privalova423d7902014-03-06 15:14:59 +0400157 iniset $CEILOMETER_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"
Doug Hellmann53a5f422012-10-02 17:29:23 -0400158
Chris Dent8abd8592014-10-08 15:24:25 +0100159 if [[ -n "$CEILOMETER_COORDINATION_URL" ]]; then
160 iniset $CEILOMETER_CONF coordination backend_url $CEILOMETER_COORDINATION_URL
161 iniset $CEILOMETER_CONF compute workload_partitioning True
162 fi
163
Doug Hellmann4a2b1c62012-11-01 16:23:52 -0400164 # Install the policy file for the API server
165 cp $CEILOMETER_DIR/etc/ceilometer/policy.json $CEILOMETER_CONF_DIR
166 iniset $CEILOMETER_CONF DEFAULT policy_file $CEILOMETER_CONF_DIR/policy.json
167
ZhiQiang Fan95053cf2014-05-16 16:27:41 +0800168 cp $CEILOMETER_DIR/etc/ceilometer/pipeline.yaml $CEILOMETER_CONF_DIR
169 cp $CEILOMETER_DIR/etc/ceilometer/api_paste.ini $CEILOMETER_CONF_DIR
170 cp $CEILOMETER_DIR/etc/ceilometer/event_definitions.yaml $CEILOMETER_CONF_DIR
171
Mehdi Abaakouk8ceb7942013-10-23 09:26:25 +0200172 if [ "$CEILOMETER_PIPELINE_INTERVAL" ]; then
173 sed -i "s/interval:.*/interval: ${CEILOMETER_PIPELINE_INTERVAL}/" $CEILOMETER_CONF_DIR/pipeline.yaml
174 fi
175
Eoghan Glynn14246ac2012-11-14 16:23:04 +0000176 # the compute and central agents need these credentials in order to
ZhiQiang Fan1af4afb2014-04-16 14:52:12 +0800177 # call out to other services' public APIs
178 # the alarm evaluator needs these options to call ceilometer APIs
179 iniset $CEILOMETER_CONF service_credentials os_username ceilometer
180 iniset $CEILOMETER_CONF service_credentials os_password $SERVICE_PASSWORD
181 iniset $CEILOMETER_CONF service_credentials os_tenant_name $SERVICE_TENANT_NAME
Eoghan Glynn14246ac2012-11-14 16:23:04 +0000182
Brant Knudson05952372014-09-19 17:22:22 -0500183 configure_auth_token_middleware $CEILOMETER_CONF ceilometer $CEILOMETER_AUTH_CACHE_DIR
Doug Hellmann4a2b1c62012-11-01 16:23:52 -0400184
Thomas Maddox246d9bb2013-10-24 18:57:40 +0000185 if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
Chris Dentefdaafc2014-10-14 21:08:32 +0100186 iniset $CEILOMETER_CONF database connection $(database_connection_url ceilometer)
Dean Troyer05bd7b82014-09-16 17:25:33 -0500187 iniset $CEILOMETER_CONF DEFAULT collector_workers $API_WORKERS
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800188 else
189 iniset $CEILOMETER_CONF database connection mongodb://localhost:27017/ceilometer
190 configure_mongodb
191 cleanup_ceilometer
192 fi
Piyush Masrani846609b2014-03-14 19:21:48 +0530193
194 if [[ "$VIRT_DRIVER" = 'vsphere' ]]; then
195 iniset $CEILOMETER_CONF DEFAULT hypervisor_inspector vsphere
196 iniset $CEILOMETER_CONF vmware host_ip "$VMWAREAPI_IP"
197 iniset $CEILOMETER_CONF vmware host_username "$VMWAREAPI_USER"
198 iniset $CEILOMETER_CONF vmware host_password "$VMWAREAPI_PASSWORD"
199 fi
Chris Dentae6fb182014-09-16 15:17:13 +0100200
201 if [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
202 iniset $CEILOMETER_CONF api pecan_debug "False"
203 _config_ceilometer_apache_wsgi
204 fi
John H. Tran93361642012-07-26 11:22:05 -0700205}
206
Ian Wienandaee18c72014-02-21 15:35:08 +1100207function configure_mongodb {
Ian Wienand936284b2014-03-11 09:35:55 +1100208 # server package is the same on all
209 local packages=mongodb-server
210
Dean Troyercc6b4432013-04-08 15:38:03 -0500211 if is_fedora; then
Ian Wienand936284b2014-03-11 09:35:55 +1100212 # mongodb client + python bindings
213 packages="${packages} mongodb pymongo"
214 else
215 packages="${packages} python-pymongo"
216 fi
217
218 install_package ${packages}
219
220 if is_fedora; then
Eoghan Glynn285c75e2013-03-04 13:13:03 -0500221 # ensure smallfiles selected to minimize freespace requirements
222 sudo sed -i '/--smallfiles/!s/OPTIONS=\"/OPTIONS=\"--smallfiles /' /etc/sysconfig/mongod
223
224 restart_service mongod
225 fi
Ian Wienand936284b2014-03-11 09:35:55 +1100226
227 # give mongodb time to start-up
228 sleep 5
Eoghan Glynn285c75e2013-03-04 13:13:03 -0500229}
230
Lianhao Lu8c548492013-01-09 10:41:54 +0800231# init_ceilometer() - Initialize etc.
Ian Wienandaee18c72014-02-21 15:35:08 +1100232function init_ceilometer {
Lianhao Lu8c548492013-01-09 10:41:54 +0800233 # Create cache dir
234 sudo mkdir -p $CEILOMETER_AUTH_CACHE_DIR
Attila Fazekas91b8d132013-01-06 22:40:09 +0100235 sudo chown $STACK_USER $CEILOMETER_AUTH_CACHE_DIR
Lianhao Lu8c548492013-01-09 10:41:54 +0800236 rm -f $CEILOMETER_AUTH_CACHE_DIR/*
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800237
Sean Daguec921a952014-02-28 21:09:33 -0500238 if is_service_enabled mysql postgresql; then
239 if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
240 recreate_database ceilometer utf8
241 $CEILOMETER_BIN_DIR/ceilometer-dbsync
242 fi
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800243 fi
Lianhao Lu8c548492013-01-09 10:41:54 +0800244}
245
John H. Tran93361642012-07-26 11:22:05 -0700246# install_ceilometer() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100247function install_ceilometer {
John H. Tran93361642012-07-26 11:22:05 -0700248 git_clone $CEILOMETER_REPO $CEILOMETER_DIR $CEILOMETER_BRANCH
Joe Gordon13344bd2014-07-22 14:26:05 -0700249 setup_develop $CEILOMETER_DIR
250
Chris Dent8abd8592014-10-08 15:24:25 +0100251 if echo $CEILOMETER_COORDINATION_URL | grep -q '^memcached:'; then
252 install_package memcached
253 fi
John H. Tran93361642012-07-26 11:22:05 -0700254}
255
Yunhong, Jiange583d9b2013-01-09 09:33:07 +0800256# install_ceilometerclient() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100257function install_ceilometerclient {
Sean Dague5cb19062014-11-01 01:37:45 +0100258 if use_library_from_git "ceilometerclient"; then
259 git_clone_by_name "ceilometerclient"
260 setup_develop "ceilometerclient"
261 sudo install -D -m 0644 -o $STACK_USER {$CEILOMETERCLIENT_DIR/tools/,/etc/bash_completion.d/}ceilometer.bash_completion
262 fi
Yunhong, Jiange583d9b2013-01-09 09:33:07 +0800263}
264
John H. Tran93361642012-07-26 11:22:05 -0700265# start_ceilometer() - Start running processes, including screen
Ian Wienandaee18c72014-02-21 15:35:08 +1100266function start_ceilometer {
Chris Dent2f27a0e2014-09-09 13:46:02 +0100267 run_process ceilometer-acentral "ceilometer-agent-central --config-file $CEILOMETER_CONF"
268 run_process ceilometer-anotification "ceilometer-agent-notification --config-file $CEILOMETER_CONF"
269 run_process ceilometer-collector "ceilometer-collector --config-file $CEILOMETER_CONF"
Chris Dentae6fb182014-09-16 15:17:13 +0100270
271 if [[ "$CEILOMETER_USE_MOD_WSGI" == "False" ]]; then
272 run_process ceilometer-api "ceilometer-api -d -v --log-dir=$CEILOMETER_API_LOG_DIR --config-file $CEILOMETER_CONF"
273 else
274 enable_apache_site ceilometer
275 restart_apache_server
276 tail_log ceilometer /var/log/$APACHE_NAME/ceilometer.log
277 tail_log ceilometer-api /var/log/$APACHE_NAME/ceilometer_access.log
278 fi
279
Chris Dent4922bfa2014-08-12 14:27:58 +0100280
281 # Start the compute agent last to allow time for the collector to
282 # fully wake up and connect to the message bus. See bug #1355809
Mehdi Abaakoukfc1b7782013-10-23 06:46:43 +0000283 if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then
gordon chungbdeea692014-09-17 14:54:21 -0400284 run_process ceilometer-acompute "ceilometer-agent-compute --config-file $CEILOMETER_CONF" $LIBVIRT_GROUP
Mehdi Abaakoukfc1b7782013-10-23 06:46:43 +0000285 fi
Piyush Masrani846609b2014-03-14 19:21:48 +0530286 if [[ "$VIRT_DRIVER" = 'vsphere' ]]; then
Chris Dent2f27a0e2014-09-09 13:46:02 +0100287 run_process ceilometer-acompute "ceilometer-agent-compute --config-file $CEILOMETER_CONF"
Piyush Masrani846609b2014-03-14 19:21:48 +0530288 fi
Mehdi Abaakouk1ed64cb2013-10-23 10:37:05 +0200289
Sean Dague7083b822014-02-28 20:16:20 -0500290 # only die on API if it was actually intended to be turned on
Sean Dagueb9a70352014-03-04 15:02:04 -0500291 if is_service_enabled ceilometer-api; then
Sean Dague7083b822014-02-28 20:16:20 -0500292 echo "Waiting for ceilometer-api to start..."
293 if ! timeout $SERVICE_TIMEOUT sh -c "while ! curl --noproxy '*' -s http://localhost:8777/v2/ >/dev/null; do sleep 1; done"; then
294 die $LINENO "ceilometer-api did not start"
295 fi
Mehdi Abaakouk1ed64cb2013-10-23 10:37:05 +0200296 fi
297
Chris Dent2f27a0e2014-09-09 13:46:02 +0100298 run_process ceilometer-alarm-notifier "ceilometer-alarm-notifier --config-file $CEILOMETER_CONF"
299 run_process ceilometer-alarm-evaluator "ceilometer-alarm-evaluator --config-file $CEILOMETER_CONF"
John H. Tran93361642012-07-26 11:22:05 -0700300}
Dean Troyer7903b792012-09-13 17:16:12 -0500301
Dean Troyer699a29f2012-09-10 14:10:27 -0500302# stop_ceilometer() - Stop running processes
Ian Wienandaee18c72014-02-21 15:35:08 +1100303function stop_ceilometer {
Chris Dentae6fb182014-09-16 15:17:13 +0100304 if [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
305 disable_apache_site ceilometer
306 restart_apache_server
307 fi
Dean Troyer699a29f2012-09-10 14:10:27 -0500308 # Kill the ceilometer screen windows
Gordon Chung1c402282013-11-26 13:30:11 -0500309 for serv in ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector ceilometer-api ceilometer-alarm-notifier ceilometer-alarm-evaluator; do
Chris Dent2f27a0e2014-09-09 13:46:02 +0100310 stop_process $serv
Dean Troyer699a29f2012-09-10 14:10:27 -0500311 done
312}
313
Dean Troyercc6b4432013-04-08 15:38:03 -0500314
Dean Troyer7903b792012-09-13 17:16:12 -0500315# Restore xtrace
316$XTRACE
Sean Dague584d90e2013-03-29 14:34:53 -0400317
Adam Spiers6a5aa7c2013-10-24 11:27:02 +0100318# Tell emacs to use shell-script-mode
319## Local variables:
320## mode: shell-script
321## End: