diff --git a/lib/ceilometer b/lib/ceilometer index 020875375e..568a544b15 100644 --- a/lib/ceilometer +++ b/lib/ceilometer @@ -48,10 +48,10 @@ function cleanup_ceilometer() { function configure_ceilometer() { setup_develop $CEILOMETER_DIR - [ -d $CEILOMETER_CONF_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_CONF_DIR + [ ! -d $CEILOMETER_CONF_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_CONF_DIR sudo chown $USER $CEILOMETER_CONF_DIR - [ ! -d $CEILOMETER_API_LOG_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_API_LOG_DIR + [ ! -d $CEILOMETER_API_LOG_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_API_LOG_DIR sudo chown $USER $CEILOMETER_API_LOG_DIR # ceilometer confs are copy of /etc/nova/nova.conf which must exist first diff --git a/stack.sh b/stack.sh index 545c07143d..e0df6ec144 100755 --- a/stack.sh +++ b/stack.sh @@ -2222,8 +2222,9 @@ if is_service_enabled cinder; then start_cinder fi if is_service_enabled ceilometer; then - echo_summary "Starting Ceilometer" + echo_summary "Configuring Ceilometer" configure_ceilometer + echo_summary "Starting Ceilometer" start_ceilometer fi screen_it horizon "cd $HORIZON_DIR && sudo tail -f /var/log/$APACHE_NAME/horizon_error.log"