blob: 9046b9d3d9ecd6c2169011fb2b3da5683595c455 [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
John H. Tran93361642012-07-26 11:22:05 -070038CEILOMETER_DIR=$DEST/ceilometer
Yunhong, Jiange583d9b2013-01-09 09:33:07 +080039CEILOMETERCLIENT_DIR=$DEST/python-ceilometerclient
Dean Troyer6d04fd72012-12-21 11:03:37 -060040CEILOMETER_CONF_DIR=/etc/ceilometer
41CEILOMETER_CONF=$CEILOMETER_CONF_DIR/ceilometer.conf
42CEILOMETER_API_LOG_DIR=/var/log/ceilometer-api
Lianhao Lu8c548492013-01-09 10:41:54 +080043CEILOMETER_AUTH_CACHE_DIR=${CEILOMETER_AUTH_CACHE_DIR:-/var/cache/ceilometer}
Chris Dentae6fb182014-09-16 15:17:13 +010044CEILOMETER_WSGI_DIR=${CEILOMETER_WSGI_DIR:-/var/www/ceilometer}
Dean Troyer6d04fd72012-12-21 11:03:37 -060045
Monty Taylor9fbeedd2012-08-17 12:52:27 -040046# Support potential entry-points console scripts
Guangyu Suo9778b3c2013-07-17 15:22:21 +080047CEILOMETER_BIN_DIR=$(get_python_exec_prefix)
John H. Tran93361642012-07-26 11:22:05 -070048
Guangyu Suo9778b3c2013-07-17 15:22:21 +080049# Set up database backend
Julien Danjou69f74572013-08-27 11:43:53 +020050CEILOMETER_BACKEND=${CEILOMETER_BACKEND:-mysql}
Dean Troyercc6b4432013-04-08 15:38:03 -050051
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010052# Ceilometer connection info.
53CEILOMETER_SERVICE_PROTOCOL=http
54CEILOMETER_SERVICE_HOST=$SERVICE_HOST
55CEILOMETER_SERVICE_PORT=${CEILOMETER_SERVICE_PORT:-8777}
Chris Dentae6fb182014-09-16 15:17:13 +010056CEILOMETER_USE_MOD_WSGI=$(trueorfalse False $CEILOMETER_USE_MOD_WSGI)
Dean Troyer4237f592014-01-29 16:22:11 -060057
Boris Pavlovic46e1aba2014-07-01 14:15:52 +040058# To enable OSprofiler change value of this variable to "notifications,profiler"
59CEILOMETER_NOTIFICATION_TOPICS=${CEILOMETER_NOTIFICATION_TOPICS:-notifications}
60
Dean Troyer4237f592014-01-29 16:22:11 -060061# Tell Tempest this project is present
62TEMPEST_SERVICES+=,ceilometer
63
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010064
Dean Troyercc6b4432013-04-08 15:38:03 -050065# Functions
66# ---------
Dean Troyere4fa7212014-01-15 15:04:49 -060067
68# Test if any Ceilometer services are enabled
69# is_ceilometer_enabled
70function is_ceilometer_enabled {
71 [[ ,${ENABLED_SERVICES} =~ ,"ceilometer-" ]] && return 0
72 return 1
73}
74
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010075# create_ceilometer_accounts() - Set up common required ceilometer accounts
Chris Dent67bc8e82014-10-08 12:07:46 +010076#
Dean Troyer42a59c22014-03-03 14:31:29 -060077# Project User Roles
78# ------------------------------------------------------------------
79# SERVICE_TENANT_NAME ceilometer admin
80# SERVICE_TENANT_NAME ceilometer ResellerAdmin (if Swift is enabled)
Chris Dent67bc8e82014-10-08 12:07:46 +010081function create_ceilometer_accounts {
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010082
Dean Troyer16ef9762014-08-19 19:31:34 -050083 local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
84 local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010085
86 # Ceilometer
87 if [[ "$ENABLED_SERVICES" =~ "ceilometer-api" ]]; then
Dean Troyer16ef9762014-08-19 19:31:34 -050088 local ceilometer_user=$(get_or_create_user "ceilometer" \
89 "$SERVICE_PASSWORD" $service_tenant)
90 get_or_add_user_role $admin_role $ceilometer_user $service_tenant
Bartosz Górski0abde392014-02-28 14:15:19 +010091
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010092 if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
Dean Troyer16ef9762014-08-19 19:31:34 -050093 local ceilometer_service=$(get_or_create_service "ceilometer" \
Bartosz Górski0abde392014-02-28 14:15:19 +010094 "metering" "OpenStack Telemetry Service")
Dean Troyer16ef9762014-08-19 19:31:34 -050095 get_or_create_endpoint $ceilometer_service \
Bartosz Górski0abde392014-02-28 14:15:19 +010096 "$REGION_NAME" \
97 "$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/" \
98 "$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/" \
99 "$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/"
Dirk Muellerfa5ccff2014-01-09 13:27:35 +0100100 fi
Dean Troyer42a59c22014-03-03 14:31:29 -0600101 if is_service_enabled swift; then
102 # Ceilometer needs ResellerAdmin role to access swift account stats.
Bartosz Górski0abde392014-02-28 14:15:19 +0100103 get_or_add_user_role "ResellerAdmin" "ceilometer" $SERVICE_TENANT_NAME
Dean Troyer42a59c22014-03-03 14:31:29 -0600104 fi
Dirk Muellerfa5ccff2014-01-09 13:27:35 +0100105 fi
106}
107
Dean Troyercc6b4432013-04-08 15:38:03 -0500108
Chris Dentae6fb182014-09-16 15:17:13 +0100109# _cleanup_keystone_apache_wsgi() - Remove wsgi files, disable and remove apache vhost file
110function _cleanup_ceilometer_apache_wsgi {
111 sudo rm -f $CEILOMETER_WSGI_DIR/*
112 sudo rm -f $(apache_site_config_for ceilometer)
113}
114
John H. Tran93361642012-07-26 11:22:05 -0700115# cleanup_ceilometer() - Remove residual data files, anything left over from previous
116# runs that a clean run would need to clean up
Ian Wienandaee18c72014-02-21 15:35:08 +1100117function cleanup_ceilometer {
Ian Wienand936284b2014-03-11 09:35:55 +1100118 if [ "$CEILOMETER_BACKEND" != 'mysql' ] && [ "$CEILOMETER_BACKEND" != 'postgresql' ] ; then
119 mongo ceilometer --eval "db.dropDatabase();"
120 fi
Chris Dentae6fb182014-09-16 15:17:13 +0100121 if [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
122 _cleanup_ceilometer_apache_wsgi
123 fi
124}
125
126function _config_ceilometer_apache_wsgi {
127 sudo mkdir -p $CEILOMETER_WSGI_DIR
128
129 local ceilometer_apache_conf=$(apache_site_config_for ceilometer)
130 local apache_version=$(get_apache_version)
131
132 # copy proxy vhost and wsgi file
133 sudo cp $CEILOMETER_DIR/ceilometer/api/app.wsgi $CEILOMETER_WSGI_DIR/app
134
135 sudo cp $FILES/apache-ceilometer.template $ceilometer_apache_conf
136 sudo sed -e "
137 s|%PORT%|$CEILOMETER_SERVICE_PORT|g;
138 s|%APACHE_NAME%|$APACHE_NAME|g;
139 s|%WSGIAPP%|$CEILOMETER_WSGI_DIR/app|g;
140 s|%USER%|$STACK_USER|g
141 " -i $ceilometer_apache_conf
John H. Tran93361642012-07-26 11:22:05 -0700142}
143
144# configure_ceilometer() - Set config files, create data dirs, etc
Ian Wienandaee18c72014-02-21 15:35:08 +1100145function configure_ceilometer {
Doug Hellmannc5259b42012-09-22 10:52:31 -0400146 [ ! -d $CEILOMETER_CONF_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_CONF_DIR
Stephan Renatuse578eff2013-11-19 13:31:04 +0100147 sudo chown $STACK_USER $CEILOMETER_CONF_DIR
Surya Prabhakar31d31852012-09-17 20:25:41 +0530148
Doug Hellmannc5259b42012-09-22 10:52:31 -0400149 [ ! -d $CEILOMETER_API_LOG_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_API_LOG_DIR
Stephan Renatuse578eff2013-11-19 13:31:04 +0100150 sudo chown $STACK_USER $CEILOMETER_API_LOG_DIR
John H. Tran93361642012-07-26 11:22:05 -0700151
Eoghan Glynn8c11f562013-03-01 12:09:01 +0000152 iniset_rpc_backend ceilometer $CEILOMETER_CONF DEFAULT
Eoghan Glynnd36268a2013-02-22 21:59:52 +0000153
Boris Pavlovic46e1aba2014-07-01 14:15:52 +0400154 iniset $CEILOMETER_CONF DEFAULT notification_topics "$CEILOMETER_NOTIFICATION_TOPICS"
Julien Danjou4b3e4e52012-10-24 16:32:01 +0200155 iniset $CEILOMETER_CONF DEFAULT verbose True
Nadya Privalova423d7902014-03-06 15:14:59 +0400156 iniset $CEILOMETER_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"
Doug Hellmann53a5f422012-10-02 17:29:23 -0400157
Chris Dent8abd8592014-10-08 15:24:25 +0100158 if [[ -n "$CEILOMETER_COORDINATION_URL" ]]; then
159 iniset $CEILOMETER_CONF coordination backend_url $CEILOMETER_COORDINATION_URL
160 iniset $CEILOMETER_CONF compute workload_partitioning True
161 fi
162
Doug Hellmann4a2b1c62012-11-01 16:23:52 -0400163 # Install the policy file for the API server
164 cp $CEILOMETER_DIR/etc/ceilometer/policy.json $CEILOMETER_CONF_DIR
165 iniset $CEILOMETER_CONF DEFAULT policy_file $CEILOMETER_CONF_DIR/policy.json
166
ZhiQiang Fan95053cf2014-05-16 16:27:41 +0800167 cp $CEILOMETER_DIR/etc/ceilometer/pipeline.yaml $CEILOMETER_CONF_DIR
168 cp $CEILOMETER_DIR/etc/ceilometer/api_paste.ini $CEILOMETER_CONF_DIR
169 cp $CEILOMETER_DIR/etc/ceilometer/event_definitions.yaml $CEILOMETER_CONF_DIR
170
Mehdi Abaakouk8ceb7942013-10-23 09:26:25 +0200171 if [ "$CEILOMETER_PIPELINE_INTERVAL" ]; then
172 sed -i "s/interval:.*/interval: ${CEILOMETER_PIPELINE_INTERVAL}/" $CEILOMETER_CONF_DIR/pipeline.yaml
173 fi
174
Eoghan Glynn14246ac2012-11-14 16:23:04 +0000175 # the compute and central agents need these credentials in order to
ZhiQiang Fan1af4afb2014-04-16 14:52:12 +0800176 # call out to other services' public APIs
177 # the alarm evaluator needs these options to call ceilometer APIs
178 iniset $CEILOMETER_CONF service_credentials os_username ceilometer
179 iniset $CEILOMETER_CONF service_credentials os_password $SERVICE_PASSWORD
180 iniset $CEILOMETER_CONF service_credentials os_tenant_name $SERVICE_TENANT_NAME
Eoghan Glynn14246ac2012-11-14 16:23:04 +0000181
Brant Knudson05952372014-09-19 17:22:22 -0500182 configure_auth_token_middleware $CEILOMETER_CONF ceilometer $CEILOMETER_AUTH_CACHE_DIR
Doug Hellmann4a2b1c62012-11-01 16:23:52 -0400183
Thomas Maddox246d9bb2013-10-24 18:57:40 +0000184 if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
Chris Dentefdaafc2014-10-14 21:08:32 +0100185 iniset $CEILOMETER_CONF database connection $(database_connection_url ceilometer)
Dean Troyer05bd7b82014-09-16 17:25:33 -0500186 iniset $CEILOMETER_CONF DEFAULT collector_workers $API_WORKERS
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800187 else
188 iniset $CEILOMETER_CONF database connection mongodb://localhost:27017/ceilometer
189 configure_mongodb
190 cleanup_ceilometer
191 fi
Piyush Masrani846609b2014-03-14 19:21:48 +0530192
193 if [[ "$VIRT_DRIVER" = 'vsphere' ]]; then
194 iniset $CEILOMETER_CONF DEFAULT hypervisor_inspector vsphere
195 iniset $CEILOMETER_CONF vmware host_ip "$VMWAREAPI_IP"
196 iniset $CEILOMETER_CONF vmware host_username "$VMWAREAPI_USER"
197 iniset $CEILOMETER_CONF vmware host_password "$VMWAREAPI_PASSWORD"
198 fi
Chris Dentae6fb182014-09-16 15:17:13 +0100199
200 if [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
201 iniset $CEILOMETER_CONF api pecan_debug "False"
202 _config_ceilometer_apache_wsgi
203 fi
John H. Tran93361642012-07-26 11:22:05 -0700204}
205
Ian Wienandaee18c72014-02-21 15:35:08 +1100206function configure_mongodb {
Ian Wienand936284b2014-03-11 09:35:55 +1100207 # server package is the same on all
208 local packages=mongodb-server
209
Dean Troyercc6b4432013-04-08 15:38:03 -0500210 if is_fedora; then
Ian Wienand936284b2014-03-11 09:35:55 +1100211 # mongodb client + python bindings
212 packages="${packages} mongodb pymongo"
213 else
214 packages="${packages} python-pymongo"
215 fi
216
217 install_package ${packages}
218
219 if is_fedora; then
Eoghan Glynn285c75e2013-03-04 13:13:03 -0500220 # ensure smallfiles selected to minimize freespace requirements
221 sudo sed -i '/--smallfiles/!s/OPTIONS=\"/OPTIONS=\"--smallfiles /' /etc/sysconfig/mongod
222
223 restart_service mongod
224 fi
Ian Wienand936284b2014-03-11 09:35:55 +1100225
226 # give mongodb time to start-up
227 sleep 5
Eoghan Glynn285c75e2013-03-04 13:13:03 -0500228}
229
Lianhao Lu8c548492013-01-09 10:41:54 +0800230# init_ceilometer() - Initialize etc.
Ian Wienandaee18c72014-02-21 15:35:08 +1100231function init_ceilometer {
Lianhao Lu8c548492013-01-09 10:41:54 +0800232 # Create cache dir
233 sudo mkdir -p $CEILOMETER_AUTH_CACHE_DIR
Attila Fazekas91b8d132013-01-06 22:40:09 +0100234 sudo chown $STACK_USER $CEILOMETER_AUTH_CACHE_DIR
Lianhao Lu8c548492013-01-09 10:41:54 +0800235 rm -f $CEILOMETER_AUTH_CACHE_DIR/*
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800236
Sean Daguec921a952014-02-28 21:09:33 -0500237 if is_service_enabled mysql postgresql; then
238 if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
239 recreate_database ceilometer utf8
240 $CEILOMETER_BIN_DIR/ceilometer-dbsync
241 fi
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800242 fi
Lianhao Lu8c548492013-01-09 10:41:54 +0800243}
244
John H. Tran93361642012-07-26 11:22:05 -0700245# install_ceilometer() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100246function install_ceilometer {
John H. Tran93361642012-07-26 11:22:05 -0700247 git_clone $CEILOMETER_REPO $CEILOMETER_DIR $CEILOMETER_BRANCH
Joe Gordon13344bd2014-07-22 14:26:05 -0700248 setup_develop $CEILOMETER_DIR
249
Chris Dent8abd8592014-10-08 15:24:25 +0100250 if echo $CEILOMETER_COORDINATION_URL | grep -q '^memcached:'; then
251 install_package memcached
252 fi
John H. Tran93361642012-07-26 11:22:05 -0700253}
254
Yunhong, Jiange583d9b2013-01-09 09:33:07 +0800255# install_ceilometerclient() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100256function install_ceilometerclient {
Yunhong, Jiange583d9b2013-01-09 09:33:07 +0800257 git_clone $CEILOMETERCLIENT_REPO $CEILOMETERCLIENT_DIR $CEILOMETERCLIENT_BRANCH
Joe Gordon13344bd2014-07-22 14:26:05 -0700258 setup_develop $CEILOMETERCLIENT_DIR
259 sudo install -D -m 0644 -o $STACK_USER {$CEILOMETERCLIENT_DIR/tools/,/etc/bash_completion.d/}ceilometer.bash_completion
Yunhong, Jiange583d9b2013-01-09 09:33:07 +0800260}
261
John H. Tran93361642012-07-26 11:22:05 -0700262# start_ceilometer() - Start running processes, including screen
Ian Wienandaee18c72014-02-21 15:35:08 +1100263function start_ceilometer {
Chris Dent2f27a0e2014-09-09 13:46:02 +0100264 run_process ceilometer-acentral "ceilometer-agent-central --config-file $CEILOMETER_CONF"
265 run_process ceilometer-anotification "ceilometer-agent-notification --config-file $CEILOMETER_CONF"
266 run_process ceilometer-collector "ceilometer-collector --config-file $CEILOMETER_CONF"
Chris Dentae6fb182014-09-16 15:17:13 +0100267
268 if [[ "$CEILOMETER_USE_MOD_WSGI" == "False" ]]; then
269 run_process ceilometer-api "ceilometer-api -d -v --log-dir=$CEILOMETER_API_LOG_DIR --config-file $CEILOMETER_CONF"
270 else
271 enable_apache_site ceilometer
272 restart_apache_server
273 tail_log ceilometer /var/log/$APACHE_NAME/ceilometer.log
274 tail_log ceilometer-api /var/log/$APACHE_NAME/ceilometer_access.log
275 fi
276
Chris Dent4922bfa2014-08-12 14:27:58 +0100277
278 # Start the compute agent last to allow time for the collector to
279 # fully wake up and connect to the message bus. See bug #1355809
Mehdi Abaakoukfc1b7782013-10-23 06:46:43 +0000280 if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then
gordon chungbdeea692014-09-17 14:54:21 -0400281 run_process ceilometer-acompute "ceilometer-agent-compute --config-file $CEILOMETER_CONF" $LIBVIRT_GROUP
Mehdi Abaakoukfc1b7782013-10-23 06:46:43 +0000282 fi
Piyush Masrani846609b2014-03-14 19:21:48 +0530283 if [[ "$VIRT_DRIVER" = 'vsphere' ]]; then
Chris Dent2f27a0e2014-09-09 13:46:02 +0100284 run_process ceilometer-acompute "ceilometer-agent-compute --config-file $CEILOMETER_CONF"
Piyush Masrani846609b2014-03-14 19:21:48 +0530285 fi
Mehdi Abaakouk1ed64cb2013-10-23 10:37:05 +0200286
Sean Dague7083b822014-02-28 20:16:20 -0500287 # only die on API if it was actually intended to be turned on
Sean Dagueb9a70352014-03-04 15:02:04 -0500288 if is_service_enabled ceilometer-api; then
Sean Dague7083b822014-02-28 20:16:20 -0500289 echo "Waiting for ceilometer-api to start..."
290 if ! timeout $SERVICE_TIMEOUT sh -c "while ! curl --noproxy '*' -s http://localhost:8777/v2/ >/dev/null; do sleep 1; done"; then
291 die $LINENO "ceilometer-api did not start"
292 fi
Mehdi Abaakouk1ed64cb2013-10-23 10:37:05 +0200293 fi
294
Chris Dent2f27a0e2014-09-09 13:46:02 +0100295 run_process ceilometer-alarm-notifier "ceilometer-alarm-notifier --config-file $CEILOMETER_CONF"
296 run_process ceilometer-alarm-evaluator "ceilometer-alarm-evaluator --config-file $CEILOMETER_CONF"
John H. Tran93361642012-07-26 11:22:05 -0700297}
Dean Troyer7903b792012-09-13 17:16:12 -0500298
Dean Troyer699a29f2012-09-10 14:10:27 -0500299# stop_ceilometer() - Stop running processes
Ian Wienandaee18c72014-02-21 15:35:08 +1100300function stop_ceilometer {
Chris Dentae6fb182014-09-16 15:17:13 +0100301 if [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
302 disable_apache_site ceilometer
303 restart_apache_server
304 fi
Dean Troyer699a29f2012-09-10 14:10:27 -0500305 # Kill the ceilometer screen windows
Gordon Chung1c402282013-11-26 13:30:11 -0500306 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 +0100307 stop_process $serv
Dean Troyer699a29f2012-09-10 14:10:27 -0500308 done
309}
310
Dean Troyercc6b4432013-04-08 15:38:03 -0500311
Dean Troyer7903b792012-09-13 17:16:12 -0500312# Restore xtrace
313$XTRACE
Sean Dague584d90e2013-03-29 14:34:53 -0400314
Adam Spiers6a5aa7c2013-10-24 11:27:02 +0100315# Tell emacs to use shell-script-mode
316## Local variables:
317## mode: shell-script
318## End: