summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild/barometer-install.sh26
-rwxr-xr-xci/clean.sh20
-rwxr-xr-xcontrib/simple_deploy.sh2
3 files changed, 14 insertions, 34 deletions
diff --git a/build/barometer-install.sh b/build/barometer-install.sh
index de47baff..9e5dfc73 100755
--- a/build/barometer-install.sh
+++ b/build/barometer-install.sh
@@ -15,11 +15,11 @@
# limitations under the License.
# Get and install packages needed for Barometer service.
-# These are: collectd rpm's and dependencies, collectd-ceilometer-plugin,
+# These are: collectd rpm's and dependencies, collectd-openstack-plugins,
# puppet-barometer module.
# Versions/branches
-COLLECTD_CEILOMETER_PLUGIN_BRANCH="stable/ocata"
+COLLECTD_OPENSTACK_PLUGINS_BRANCH="stable/ocata"
ARCH="6.el7.centos.x86_64.rpm"
# don't fail because of missing certificate
@@ -27,7 +27,7 @@ GETFLAG="--no-check-certificate"
# Locations of repos
ARTIFACTS_BAROM="artifacts.opnfv.org/barometer"
-COLLECTD_CEILOMETER_REPO="https://github.com/openstack/collectd-ceilometer-plugin"
+COLLECTD_OPENSTACK_REPO="https://github.com/openstack/collectd-ceilometer-plugin"
PUPPET_BAROMETER_REPO="https://github.com/johnhinman/puppet-barometer"
# upload barometer packages tar, extract, and install
@@ -76,12 +76,12 @@ function barometer_pkgs {
cp collectd.tar.gz ${BUILD_DIR}
popd > /dev/null
- # get collectd-ceilometer-plugin and tar it
- rm -rf collectd-ceilometer-plugin
- git clone https://github.com/openstack/collectd-ceilometer-plugin
- pushd collectd-ceilometer-plugin
- git checkout -b $COLLECTD_CEILOMETER_PLUGIN_BRANCH
- git archive --format=tar.gz HEAD > ${BUILD_DIR}/collectd-ceilometer-plugin.tar.gz
+ # get collectd-openstack-plugins and tar it
+ rm -rf collectd-openstack-plugins
+ git clone $COLLECTD_OPENSTACK_REPO collectd-openstack-plugins
+ pushd collectd-openstack-plugins
+ git checkout -b $COLLECTD_OPENSTACK_PLUGINS_BRANCH
+ git archive --format=tar.gz HEAD > ${BUILD_DIR}/collectd-openstack-plugins.tar.gz
popd > /dev/null
# get the barometer puppet module and tar it
@@ -103,7 +103,7 @@ function barometer_pkgs {
# install dependencies
LIBGUESTFS_BACKEND=direct virt-customize \
--upload ${BUILD_DIR}/collectd.tar.gz:/opt/ \
- --upload ${BUILD_DIR}/collectd-ceilometer-plugin.tar.gz:/opt/ \
+ --upload ${BUILD_DIR}/collectd-openstack-plugins.tar.gz:/opt/ \
--upload ${BUILD_DIR}/puppet-barometer.tar.gz:/etc/puppet/modules/ \
--run-command 'tar xfz /opt/collectd.tar.gz -C /opt' \
--install libstatgrab,log4cplus,rrdtool,rrdtool-devel \
@@ -133,12 +133,12 @@ function barometer_pkgs {
/opt/collectd-virt-${SUFFIX}" \
-a $OVERCLOUD_IMAGE
- # install collectd-ceilometer plugin
+ # install collectd-openstack-plugins
# install puppet-barometer module
# make directories for config files and mibs
LIBGUESTFS_BACKEND=direct virt-customize \
- --run-command 'mkdir /opt/stack/collectd-ceilometer' \
- --run-command "tar xfz /opt/collectd-ceilometer-plugin.tar.gz -C /opt/stack/collectd-ceilometer" \
+ --run-command 'mkdir /opt/stack/collectd-openstack' \
+ --run-command "tar xfz /opt/collectd-openstack-plugins.tar.gz -C /opt/stack/collectd-openstack" \
--run-command "cd /etc/puppet/modules/ && mkdir barometer && \
tar xzf puppet-barometer.tar.gz -C barometer" \
--run-command 'mkdir /usr/share/mibs/' \
diff --git a/ci/clean.sh b/ci/clean.sh
deleted file mode 100755
index c2b987c0..00000000
--- a/ci/clean.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env bash
-##############################################################################
-# Copyright (c) 2015 Tim Rozet (Red Hat), Dan Radez (Red Hat) and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-#Clean script to uninstall provisioning server for Apex
-#author: Dan Radez (dradez@redhat.com)
-#author: Tim Rozet (trozet@redhat.com)
-set -e
-yum -y install python34 python34-devel libvirt-devel python34-pip python-tox ansible
-mkdir -p ~/tmp
-mv -f .build ~/tmp/
-sudo pip3 install --upgrade --force-reinstall .
-mv -f ~/tmp/.build .
-opnfv-clean $@
diff --git a/contrib/simple_deploy.sh b/contrib/simple_deploy.sh
index d6d07f38..8da92727 100755
--- a/contrib/simple_deploy.sh
+++ b/contrib/simple_deploy.sh
@@ -3,9 +3,9 @@ set -e
apex_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../
export PYTHONPATH=$apex_home/apex:$PYTHONPATH
$apex_home/ci/dev_dep_check.sh || true
-$apex_home/ci/clean.sh
pip3 install -r $apex_home/requirements.txt
pushd $apex_home/apex
+python3 clean.py
echo "All further output will be piped to $PWD/nohup.out"
(nohup python3 deploy.py -v -n ../config/network/network_settings.yaml -d ../config/deploy/os-nosdn-nofeature-noha.yaml --deploy-dir ../build --lib-dir ../lib --image-dir ../.build &)
[ -f nohup.out ] || sleep 3