From fc1b7786eb68f8df254804590f2809c0e342a3ab Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Wed, 23 Oct 2013 06:46:43 +0000 Subject: [PATCH] cm-cpu-agent only support libvirt driver ceilometer-compute-agent only support libvirt driver Change-Id: I8b92ef10f52388ead11f8ce51c9ab119f953efae --- lib/ceilometer | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ceilometer b/lib/ceilometer index f95ed302ce..dcadb07899 100644 --- a/lib/ceilometer +++ b/lib/ceilometer @@ -137,7 +137,9 @@ function install_ceilometerclient() { # start_ceilometer() - Start running processes, including screen function start_ceilometer() { - screen_it ceilometer-acompute "cd ; sg $LIBVIRT_GROUP \"ceilometer-agent-compute --config-file $CEILOMETER_CONF\"" + if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then + screen_it ceilometer-acompute "cd ; sg $LIBVIRT_GROUP \"ceilometer-agent-compute --config-file $CEILOMETER_CONF\"" + fi screen_it ceilometer-acentral "cd ; ceilometer-agent-central --config-file $CEILOMETER_CONF" screen_it ceilometer-collector "cd ; ceilometer-collector --config-file $CEILOMETER_CONF" screen_it ceilometer-api "cd ; ceilometer-api -d -v --log-dir=$CEILOMETER_API_LOG_DIR --config-file $CEILOMETER_CONF"