diff --git a/lib/ceilometer b/lib/ceilometer index 76ab254d5f..c31fcb920c 100644 --- a/lib/ceilometer +++ b/lib/ceilometer @@ -29,6 +29,7 @@ set +o xtrace # Set up default directories CEILOMETER_DIR=$DEST/ceilometer +CEILOMETERCLIENT_DIR=$DEST/python-ceilometerclient CEILOMETER_CONF_DIR=/etc/ceilometer CEILOMETER_CONF=$CEILOMETER_CONF_DIR/ceilometer.conf CEILOMETER_API_LOG_DIR=/var/log/ceilometer-api @@ -46,6 +47,11 @@ function cleanup_ceilometer() { mongo ceilometer --eval "db.dropDatabase();" } +# configure_ceilometerclient() - Set config files, create data dirs, etc +function configure_ceilometerclient() { + setup_develop $CEILOMETERCLIENT_DIR +} + # configure_ceilometer() - Set config files, create data dirs, etc function configure_ceilometer() { setup_develop $CEILOMETER_DIR @@ -87,6 +93,11 @@ function install_ceilometer() { git_clone $CEILOMETER_REPO $CEILOMETER_DIR $CEILOMETER_BRANCH } +# install_ceilometerclient() - Collect source and prepare +function install_ceilometerclient() { + git_clone $CEILOMETERCLIENT_REPO $CEILOMETERCLIENT_DIR $CEILOMETERCLIENT_BRANCH +} + # start_ceilometer() - Start running processes, including screen function start_ceilometer() { screen_it ceilometer-acompute "cd $CEILOMETER_DIR && sg libvirtd \"$CEILOMETER_BIN_DIR/ceilometer-agent-compute --config-file $CEILOMETER_CONF\"" diff --git a/stack.sh b/stack.sh index 9f734b9ef9..247b860d84 100755 --- a/stack.sh +++ b/stack.sh @@ -773,6 +773,7 @@ if is_service_enabled cinder; then install_cinder fi if is_service_enabled ceilometer; then + install_ceilometerclient install_ceilometer fi if is_service_enabled tempest; then @@ -1218,6 +1219,7 @@ fi if is_service_enabled ceilometer; then echo_summary "Configuring Ceilometer" configure_ceilometer + configure_ceilometerclient echo_summary "Starting Ceilometer" start_ceilometer fi diff --git a/stackrc b/stackrc index 0e84db8050..4e03a2f461 100644 --- a/stackrc +++ b/stackrc @@ -33,6 +33,10 @@ GIT_BASE=https://github.com CEILOMETER_REPO=${GIT_BASE}/openstack/ceilometer.git CEILOMETER_BRANCH=master +# ceilometer client library +CEILOMETERCLIENT_REPO=${GIT_BASE}/openstack/python-ceilometerclient +CEILOMETERCLIENT_BRANCH=master + # volume service CINDER_REPO=${GIT_BASE}/openstack/cinder CINDER_BRANCH=master