yum clean all
yum install -y -q python-netaddr
-## TODO: Remove this, temporary until we can rebuild and deploy Robot
-## successfully with packer. JQ is needed by our Heat deployment scripts.
-yum install -y -q jq
-
## Install docker-py
yum install -y -q python-docker-py
NEXUS_STAGING_PROFILE=${ODLNEXUS_STAGING_PROFILE:-425e43800fea70}
NEXUS_STAGING_SERVER_ID=${ODLNEXUS_STAGING_SERVER_ID:-"opendaylight.staging"}
-rsync -avz --exclude 'maven-metadata*' \
+rsync -avz --remove-source-files \
+ --exclude 'maven-metadata*' \
--exclude '_remote.repositories' \
--exclude 'resolver-status.properties' \
"stage/org/opendaylight" m2repo/org/
scope: 'all'
# Features to install
- install-features: 'odl-restconf,odl-bgpcep-data-change-counter,odl-bgpcep-bgp-all,odl-bgpcep-bgp,odl-netconf-topology'
+ install-features: 'odl-restconf,odl-bgpcep-data-change-counter,odl-bgpcep-bgp,odl-netconf-topology'
# Robot custom options:
robot-options: '-v USE_NETCONF_CONNECTOR:False -v CHECK_PERIOD_PREFIX_COUNT_SINGLE:10 -v REPETITIONS_CHANGE_COUNT_SINGLE:3 -v CHECK_PERIOD_PREFIX_COUNT_MANY:10 -v TEST_DURATION_MULTIPLIER_PREFIX_COUNT_MANY:8.0 -v REPETITIONS_CHANGE_COUNT_MANY:10 -v MULTIPLICITY_CHANGE_COUNT_MANY:600 -v TEST_DURATION_MULTIPLIER_CHANGE_COUNT_MANY:8.0 '
scope: 'all'
# Features to install
- install-features: 'odl-restconf,odl-bgpcep-bgp-all,odl-bgpcep-bgp,odl-bgpcep-data-change-counter,odl-netconf-topology'
+ install-features: 'odl-restconf,odl-bgpcep-bgp,odl-bgpcep-data-change-counter,odl-netconf-topology'
# Robot custom options
# Increase the TEST_DURATION_MULTIPLIER if the test runs in slower test environment or more complex scenario is chosen
- boron:
branch: 'stable/boron'
jre: 'openjdk8'
+ install-features: 'odl-restconf,odl-bgpcep-bgp-all,odl-bgpcep-bgp,odl-netconf-clustered-topology'
- beryllium:
branch: 'stable/beryllium'
jre: 'openjdk7'
+ install-features: 'odl-restconf,odl-bgpcep-bgp-all,odl-bgpcep-bgp,odl-netconf-clustered-topology'
install:
- only:
scope: 'all'
# Features to install
- install-features: 'odl-restconf,odl-bgpcep-bgp-all,odl-bgpcep-bgp,odl-netconf-clustered-topology'
+ install-features: 'odl-restconf,odl-bgpcep-bgp,odl-netconf-clustered-topology'
# Robot custom options:
robot-options: '-v USE_NETCONF_CONNECTOR:False'
- boron:
branch: 'stable/boron'
jre: 'openjdk8'
+ install-features: 'odl-restconf,odl-bgpcep-pcep-all,odl-bgpcep-pcep'
- beryllium:
branch: 'stable/beryllium'
jre: 'openjdk7'
+ install-features: 'odl-restconf,odl-bgpcep-pcep-all,odl-bgpcep-pcep'
install:
- only:
scope: 'all'
# Features to install
- install-features: 'odl-restconf,odl-bgpcep-pcep-all,odl-bgpcep-pcep'
+ install-features: 'odl-restconf,odl-bgpcep-pcep'
# Readiness check timeout is lowered from the suite's high default value.
# The other options are workarounds for Sandbox not being as performant
# Features to install
# *-all is for Beryllium and Boron, without -all is for Boron and Carbon.
- install-features: 'odl-restconf,odl-bgpcep-pcep-all,odl-bgpcep-bgp-all,odl-bgpcep-bgp,odl-bgpcep-pcep,odl-bgpcep-bmp,odl-jolokia'
+ install-features: 'odl-restconf,odl-bgpcep-pcep,odl-bgpcep-bgp,odl-bgpcep-bmp,odl-jolokia'
# Robot custom options
robot-options: '-v USE_NETCONF_CONNECTOR:False'
--- /dev/null
+#!/bin/bash
+if [ $GERRIT_BRANCH == "master" ]; then
+ RTD_BUILD_VERSION=latest
+else
+ RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}}
+fi
+curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/{rtdproject}
pattern: docs/**/*.rst
builders:
- - shell: |
- curl -X POST https://readthedocs.org/build/{rtdproject}
+ - shell: !include-raw: docs-post-rtd.sh
publishers:
- email-notification:
# Mininet configuration
tools_system_count: 2
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.3 - 20161110-2310
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.3 - 20170117-0004
# Features to install
install-features: 'odl-genius-ui'
# 3 Ubuntu VMs in JCloud configuration
tools_system_count: 3
- tools_system_image: Ubuntu 14.04 - gbp - 20161031-0916
+ tools_system_image: Ubuntu 14.04 - gbp - 20170117-0042
# Features to install
install-features: 'odl-groupbasedpolicy-ofoverlay,odl-groupbasedpolicy-ui,odl-restconf-all'
# 6 Ubuntu VMs in JCloud configuration
tools_system_count: 6
- tools_system_image: Ubuntu 14.04 - gbp - 20161031-0916
+ tools_system_image: Ubuntu 14.04 - gbp - 20170117-0042
# Features to install
install-features: 'odl-groupbasedpolicy-ofoverlay,
vtn-csit-1node-coordinator-only-{stream}
# tools system image
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Template: integration-csit-verify-1node-library
# Goal: Verify changes in csit folder not covered by projects suite verify jobs (e.g. libraries or variables)
- all:
scope: 'all'
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.3 - 20161110-2310
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.3 - 20170117-0004
# Features to install
install-features: 'odl-lacp-ui'
# Job images
odl_system_flavor: '8 GB General Purpose v1'
- tools_system_image: 'Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804'
+ tools_system_image: 'Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004'
# Features to install
install-features: 'odl-openflowplugin-flow-services-ui,odl-openflowplugin-app-bulk-o-matic,odl-jolokia,decanter-collector-jmx,decanter-appender-elasticsearch'
# Job images
odl_system_flavor: 8 GB General Purpose v1
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Features to install
install-features: 'odl-openflowplugin-flow-services-ui,odl-openflowplugin-app-bulk-o-matic,odl-jolokia,decanter-collector-jmx,decanter-appender-elasticsearch'
robot-options: '-v ODL_OF_PLUGIN:lithium'
# mininet image
- tools_system_image: 'Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804'
+ tools_system_image: 'Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004'
# Trigger jobs (upstream dependencies)
trigger-jobs: 'yangtools-distribution-{stream},controller-distribution-{stream},openflowjava-distribution-{stream},openflowplugin-distribution-{stream}'
robot-options: '-v flow_update_time:30s'
# mininet image
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Trigger jobs (upstream dependencies)
trigger-jobs: 'yangtools-distribution-{stream},controller-distribution-{stream},openflowjava-distribution-{stream},openflowplugin-distribution-{stream}'
robot-options: ''
# mininet image
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Trigger jobs (upstream dependencies)
trigger-jobs: 'yangtools-distribution-{stream},controller-distribution-{stream},openflowjava-distribution-{stream},openflowplugin-distribution-{stream}'
robot-options: ''
# mininet image
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Trigger jobs (upstream dependencies)
trigger-jobs: 'yangtools-distribution-{stream},controller-distribution-{stream},openflowjava-distribution-{stream},openflowplugin-distribution-{stream}'
robot-options: ''
# mininet image
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Trigger jobs (daily)
schedule: 'H H * * *'
robot-options: '-v TEST_LENGTH:23h'
# mininet image
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Trigger jobs (daily)
schedule: 'H H * * *'
# Job images
odl_system_flavor: 8 GB General Purpose v1
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Features to install
install-features: 'odl-openflowplugin-flow-services-ui,odl-jolokia,decanter-collector-jmx,decanter-appender-elasticsearch'
# Job images
odl_system_flavor: '8 GB General Purpose v1'
- tools_system_image: 'Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804'
+ tools_system_image: 'Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004'
# Features to install
install-features: 'odl-openflowplugin-flow-services-ui,odl-jolokia,decanter-collector-jmx,decanter-appender-elasticsearch'
robot-options: ''
# mininet image
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Trigger jobs (daily)
schedule: 'H H * * *'
stack-template: csit-2-instance-type.yaml
docker_system_count: 1
docker_system_flavor: 4 GB General Purpose v1
- docker_system_image: CentOS 7 - docker - 20161031-0802
+ docker_system_image: CentOS 7 - docker - 20170120-1434
odl_system_count: 1
odl_system_flavor: 4 GB General Purpose v1
- odl_system_image: CentOS 7 - java-builder - 20161031-0802
+ odl_system_image: CentOS 7 - java-builder - 20170117-0004
openstack_system_count: 1
openstack_system_flavor: 8 GB General Purpose v1
- openstack_system_image: CentOS 7 - devstack - 20161031-0802
+ openstack_system_image: CentOS 7 - devstack - 20170120-1710
tools_system_count: 1
tools_system_flavor: 2 GB General Purpose v1
- tools_system_image: Ubuntu 14.04 - mininet - 20161031-0803
+ tools_system_image: Ubuntu 14.04 - mininet - 20170117-0003
# Robot
robot-options: ''
- 'builder-merge'
- 'builder-weekly'
- 'builder-check-poms'
- - 'builder-verify-packer-{platforms}-{templates}'
+ - 'builder-verify-packer'
- 'builder-merge-packer-{platforms}-{templates}'
platforms:
maven-version: 'mvn33'
- job-template:
- name: 'builder-verify-packer-{platforms}-{templates}'
+ name: 'builder-verify-packer'
project-type: freestyle
node: centos7-java-builder-2c-8g
concurrent: true
variable: 'CLOUDENV'
- shell: |
cd packer
- export PACKER_LOG="yes" && \
- export PACKER_LOG_PATH="packer-validate.log" && \
- packer.io validate -var-file=$CLOUDENV \
- -var-file=../packer/vars/{platform}.json \
- ../packer/templates/{template}.json
+ varfiles="../packer/vars/*"
+ templates="../packer/templates/*"
+ provision="../packer/provision/*.sh"
+ for v in $varfiles; do
+ [[ "${{v##*/}}" =~ ^(cloud-env.*)$ ]] && continue
+ for t in $templates; do
+ export PACKER_LOG="yes" && \
+ export PACKER_LOG_PATH="packer-validate-${{v##*/}}-${{t##*/}}.log" && \
+ packer.io validate -var-file=$CLOUDENV \
+ -var-file=$v $t
+ if [ $? -ne 0 ]; then
+ break
+ fi
+ done
+ done
+ for p in $provision; do
+ /bin/bash -n $p > provision-validate-${{p##*/}}.log 2>&1
+ done
- builder:
name: packer-build
robot-options: ''
# mininet image
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Trigger jobs (upstream dependencies)
trigger-jobs: 'ovsdb-distribution-{stream},unimgr-distribution-{stream},netvirt-distribution-{stream},genius-distribution-{stream}'
# Robot custom options
robot-options: ''
- tools_system_image: 'Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804'
+ tools_system_image: 'Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004'
# Trigger jobs (upstream dependencies)
trigger-jobs: 'openflowjava-distribution-{stream},openflowplugin-distribution-{stream},vtn-distribution-{stream}'
- carbon:
branch: 'master'
jre: 'openjdk8'
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
- boron:
branch: 'stable/boron'
jre: 'openjdk8'
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
- beryllium:
branch: 'stable/beryllium'
jre: 'openjdk7'
- beryllium:
branch: 'stable/beryllium'
jre: 'openjdk7'
- tools_system_image: Ubuntu 14.04 - mininet - 20161031-0803
+ tools_system_image: Ubuntu 14.04 - mininet - 20170117-0003
install:
- only:
# Robot custom options
robot-options: ''
- tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20161031-0804
+ tools_system_image: Ubuntu 14.04 - mininet-ovs-2.5 - 20170117-0004
# Trigger jobs (upstream dependencies)
trigger-jobs: 'openflowjava-distribution-{stream},openflowplugin-distribution-{stream},vtn-distribution-{stream}'
;;
esac
+ # Needed to parse OpenStack commands used by opendaylight-infra stack commands
+ # to initialize Heat template based systems.
+ yum install -y jq
+
# install haveged to avoid low entropy rejecting ssh connections
yum install -y haveged
systemctl enable haveged.service
update-alternatives --set java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
update-alternatives --set javac /usr/lib/jvm/java-7-openjdk-amd64/bin/javac
+ # Needed to parse OpenStack commands used by opendaylight-infra stack commands
+ # to initialize Heat template based systems.
+ apt-get install jq
+
# install haveged to avoid low entropy rejecting ssh connections
apt-get install haveged
update-rc.d haveged defaults
+
+ # disable unattended upgrades & daily updates
+ echo '---> Disabling automatic daily upgrades'
+ sed -ine 's/"1"/"0"/g' /etc/apt/apt.conf.d/10periodic
+ echo 'APT::Periodic::Unattended-Upgrade "0";' >> /etc/apt/apt.conf.d/10periodic
}
all_systems() {
# inside project jobs using a virtualenv setup.
yum install -y python-{devel,setuptools,virtualenv} @development
-# Needed to parse OpenStack commands used by opendaylight-infra stack commands
-# to initialize Heat template based systems.
-yum install -y jq
-
# Install dependencies for robotframework and robotframework-sshlibrary
# installed elsewhere
yum install -y yum-utils unzip sshuttle nc libffi-devel openssl-devel