3cb2ad2b68
Gnocchi/ceiloemter and aodh need to be configured and enabled before collectd starts, so that the collectd-ceiloemter-plugin does not hit errors trying to submit metric/raise alarms using the services. Change-Id: If7b4a42f27c7b004a6f60b9b9792a1a5ca670b0f
61 lines
2.4 KiB
YAML
61 lines
2.4 KiB
YAML
- job-template:
|
|
name: '{pipeline}-dsvm-collectd-ceilometer-plugin-{install_type}-{node}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 130
|
|
- timestamps
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
builders:
|
|
- print-template-name:
|
|
template-name: '{template-name}'
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- local_conf:
|
|
conf: |
|
|
[[local|localrc]]
|
|
enable_plugin aodh git://git.openstack.org/openstack/aodh
|
|
enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer
|
|
enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi
|
|
enable_plugin collectd-ceilometer-plugin git://git.openstack.org/openstack/collectd-ceilometer-plugin
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
export PYTHONUNBUFFERED=true
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
# We need to add those projects into repository, they are not available by default
|
|
# and we are using all of them in our plugin
|
|
export PROJECTS="openstack/aodh $PROJECTS"
|
|
export PROJECTS="openstack/ceilometer $PROJECTS"
|
|
export PROJECTS="openstack/gnocchi $PROJECTS"
|
|
export PROJECTS="openstack/collectd-ceilometer-plugin $PROJECTS"
|
|
# Keep localrc to be able to set some vars in pre_test_hook
|
|
export KEEP_LOCALRC=1
|
|
|
|
function pre_test_hook {{
|
|
if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_{install_type}.sh ] ; then
|
|
. $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_{install_type}.sh
|
|
fi
|
|
}}
|
|
export -f pre_test_hook
|
|
|
|
function post_test_hook {{
|
|
if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_{install_type}.sh ] ; then
|
|
. $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_{install_type}.sh
|
|
fi
|
|
}}
|
|
export -f post_test_hook
|
|
|
|
export DEVSTACK_GATE_SETTINGS=/opt/stack/new/collectd-ceilometer-plugin/devstack/gate/devstackgaterc
|
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
./safe-devstack-vm-gate-wrap.sh
|