-Subproject commit 24a51c7182b868b57317f820dd8222f55274bc4d
+Subproject commit 343c22493055e0aa72968dc722c20a26bbbee725
-IMAGE_NAME=ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366
+IMAGE_NAME=ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190416-121328.240
HARDWARE_ID=odl-standard-1
--- /dev/null
+---
+- project:
+ name: alt-datastores-sodium
+ jobs:
+ - '{project-name}-distribution-check-{stream}'
+ - '{project-name}-rtd-jobs':
+ build-node: centos7-builder-2c-2g
+ project-pattern: alt-datastores
+ rtd-build-url: https://readthedocs.org/api/v2/webhook/opendaylight-alt-datastores/82146/
+ rtd-token: ea1d83487d47ead46fa99256fad3213ec30c8c43
+ - odl-maven-jobs
+
+ stream: sodium
+ project: 'alt-datastores'
+ project-name: 'alt-datastores'
+ branch: 'master'
+ mvn-settings: 'alt-datastores-settings'
+ mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m'
+ dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
+ email-upstream: '[alt-datastores] [odlparent] [yangtools] [controller]'
+ build-node: centos7-docker-2c-8g
+
+ # Used by the release job
+ staging-profile-id: daa2b00117ed6
+
+- project:
+ name: alt-datastores-neon
+ jobs:
+ - '{project-name}-distribution-check-{stream}'
+ - '{project-name}-rtd-jobs':
+ build-node: centos7-builder-2c-2g
+ project-pattern: alt-datastores
+ rtd-build-url: https://readthedocs.org/api/v2/webhook/opendaylight-alt-datastores/82146/
+ rtd-token: ea1d83487d47ead46fa99256fad3213ec30c8c43
+ - odl-maven-jobs
+
+ stream: neon
+ project: 'alt-datastores'
+ project-name: 'alt-datastores'
+ branch: 'stable/neon'
+ mvn-settings: 'alt-datastores-settings'
+ mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m'
+ dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
+ email-upstream: '[alt-datastores] [odlparent] [yangtools] [controller]'
+ build-node: centos7-docker-2c-8g
+
+ # Used by the release job
+ staging-profile-id: daa2b00117ed6
+
+- project:
+ name: alt-datastores-sonar
+ jobs:
+ - gerrit-maven-sonar:
+ mvn-params: >
+ -Dodl.jacoco.aggregateFile=$WORKSPACE/target/jacoco.exec
+ -Dsonar.jacoco.reportPath=$WORKSPACE/target/jacoco.exec
+
+ project: 'alt-datastores'
+ project-name: 'alt-datastores'
+ branch: 'master'
+ mvn-settings: 'alt-datastores-settings'
+ mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m'
+
+- project:
+ name: alt-datastores-view
+ views:
+ - project-view
+ project-name: alt-datastores
ovsdb-csit-3node-upstream-clustering-only-neon,
sfc-csit-3node-docker-full-deploy-all-neon,
sfc-csit-3node-rest-basic-all-neon,
-telemetry-csit-1node-basic-all-neon,
yangtools-csit-1node-system-only-neon,
ovsdb-csit-3node-upstream-clustering-only-sodium,
sfc-csit-3node-docker-full-deploy-all-sodium,
sfc-csit-3node-rest-basic-all-sodium,
-telemetry-csit-1node-basic-all-sodium,
yangtools-csit-1node-system-only-sodium,
-CONTROLLERMEM="3072m"
-ACTUALFEATURES="odl-integration-all"
-
if [[ ! -z "${CONTROLLERFEATURES}" ]]; then
ACTUALFEATURES="odl-integration-all,${CONTROLLERFEATURES}"
+else
+ ACTUALFEATURES="odl-integration-all"
+fi
+
+if [[ "${JOB_NAME}" == *"distribution-sanity"* ]]; then
+ CONTROLLERMEM="4096m"
+else
+ CONTROLLERMEM="3072m"
fi
echo "Kill any controller running"
# This job works for both managed & self-managed distro.
project-type: freestyle
- node: centos7-builder-4c-4g
+ node: centos7-builder-2c-8g
concurrent: false
properties:
odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190416-121328.240'
#####################
# Job configuration #
odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190416-121328.240'
#####################
# Job configuration #
odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190416-121328.240'
#####################
# Job Configuration #
odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190416-121328.240'
#####################
# Job configuration #
openstack_system2_image: 'ZZCI - CentOS 7 - devstack - 20180911-204116.460'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190416-121328.240'
#####################
# Job configuration #
openstack_system2_image: 'ZZCI - CentOS 7 - devstack - 20180911-204116.460'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190416-121328.240'
#####################
# Job configuration #
project-name: integration-test
jobs:
- 'integration-patch-test-{stream}'
- - 'integration-multipatch-test-{stream}'
+ - 'inttest-multipatch'
- 'integration-merge-dashboard'
- '{project-name}-rtd-jobs':
build-node: centos7-builder-2c-2g
- sodium:
branch: 'master'
csit-blacklist: >
- alto bier capwap centinel didm dluxapps groupbasedpolicy iotdm jsonrpc lacp
- l2switch messaging4transport nemo netide nic ocpplugin of-config p4plugin packetcable
- sdninterfaceapp sxp tsdr unimgr usc usecplugin vtn gate longevity sanity tdd tempest wip
- aaa-csit-1node-keystone-all
+ alto bier didm dluxapps groupbasedpolicy jsonrpc l2switch nemo
+ of-config p4plugin packetcable sxp telemetry tsdr unimgr usc
+ gate longevity sanity tdd tempest wip
netvirt-csit-1node-1cmb-0ctl-0cmp-openstack-pike
netvirt-csit-1node-1cmb-0ctl-0cmp-openstack-queens-upstream-stateful-itm-direct
netvirt-csit-3node-1cmb
- neon:
branch: 'stable/neon'
csit-blacklist: >
- alto bier capwap centinel didm dluxapps groupbasedpolicy iotdm jsonrpc lacp
- l2switch messaging4transport nemo netide nic ocpplugin of-config p4plugin packetcable
- sdninterfaceapp sxp tsdr unimgr usc usecplugin vtn gate longevity sanity tdd tempest wip
- aaa-csit-1node-keystone-all
+ alto bier didm dluxapps groupbasedpolicy jsonrpc l2switch nemo
+ of-config p4plugin packetcable sxp telemetry tsdr unimgr usc
+ gate longevity sanity tdd tempest wip
netvirt-csit-1node-1cmb-0ctl-0cmp-openstack-pike
netvirt-csit-1node-1cmb-0ctl-0cmp-openstack-queens-upstream-stateful-itm-direct
netvirt-csit-3node-1cmb
- fluorine:
branch: 'stable/fluorine'
csit-blacklist: >
- alto bier capwap centinel didm dluxapps groupbasedpolicy iotdm jsonrpc lacp
- l2switch messaging4transport nemo netide nic ocpplugin of-config p4plugin packetcable
- sdninterfaceapp sxp tsdr unimgr usc usecplugin vtn gate longevity sanity tdd tempest wip
- aaa-csit-1node-keystone-all
+ alto bier didm dluxapps groupbasedpolicy jsonrpc l2switch nemo
+ of-config p4plugin packetcable sxp telemetry tsdr unimgr usc
+ gate longevity sanity tdd tempest wip
netvirt-csit-1node-1cmb-0ctl-0cmp-openstack-pike
netvirt-csit-1node-1cmb-0ctl-0cmp-openstack-queens-upstream-stateful-itm-direct
netvirt-csit-3node-1cmb
- job-template:
- name: 'integration-multipatch-test-{stream}'
+ name: '{prefix}integration-multipatch-test-{stream}'
# Goal: Build one or more patches and run all available system test on a distribution containing the change.
# Operation: This job template checks out and builds in order each patch provided in job parameters, finally
# it creates a distribution containing all patches and triggers the distribution test job which includes most
# (if not all) available CSIT jobs.
+ id: inttest-multipatch
project-type: freestyle
node: centos7-builder-8c-8g
concurrent: true
build-days-to-keep: '{build-days-to-keep}'
parameters:
- - patches-to-build-parameter:
- patches_to_build: '$PATCHES_TO_BUILD'
- - build-order-parameter:
- build-order: '{build-order}'
- - build-fast-parameter:
- build-fast: 'false'
- - run-test-parameter:
- run-test: 'false'
+ - string:
+ name: PATCHES_TO_BUILD
+ default: '$PATCHES_TO_BUILD'
+ description: |
+ Ordered list of patches to build in the format of project=changeset (checkout) or
+ project:changeset (cherry-pick) for example: genius=32/53632/9,netvirt:59/50259/47.
+ - string:
+ name: BUILD_ORDER
+ default: '{build-order}'
+ description: 'Build order for multipatch test when topic is used'
+ - string:
+ name: BUILD_FAST
+ default: 'true'
+ description: 'Set true to build fast -Pq'
+ - string:
+ name: BUILD_NORMAL
+ default: ''
+ description: 'List of projects to build normal (no -Pq) when BUILD_FAST=true'
+ - string:
+ name: RUN_TEST
+ default: 'false'
+ description: 'Set true to run test after build'
- integration-distribution-branch:
branch: '{branch}'
- integration-distribution-stream:
fi
PATCHES_TO_BUILD=${PATCHES_TO_BUILD#*:}
fi
-if ${BUILD_FAST}; then
- fast_option="-Pq"
-else
- fast_option=""
-fi
# check if topic exists:
# if topic=binding-rpc, then checkout first patch in binding-rpc topic (if it exists)
# if topic:binding-rpc, then cherry-pick first patch in binding-rpc topic (if it exists)
# Second phase: build everything
for PROJECT_SHORTNAME in "${PROJECTS[@]}"; do
+ # Set Fast build if project is not in BUILD_NORMAL and BUILD_FAST is true
+ if [[ "${BUILD_NORMAL}" != *"${PROJECT_SHORTNAME}"* ]] && ${BUILD_FAST}; then
+ fast_option="-Pq"
+ else
+ fast_option=""
+ fi
pushd "${PROJECT_SHORTNAME}"
# Build project
"$MVN" clean install \
name: lf-infra-lftools
jobs:
- '{project-name}-rtd-jobs'
- - gerrit-release-announce
+ - gerrit-release-announce:
+ build-node: centos7-builder-2c-1g
- gerrit-tox-verify
project-name: lf-infra-lftools
openstack_system_flavor: odl-highcpu-8
openstack_system2_flavor: odl-highcpu-4
tools_system_count: 2
- tools_system_image: ZZCI - Ubuntu 16.04 - mininet-ovs-26 - 20181029-223513.438
+ tools_system_image: ZZCI - Ubuntu 16.04 - mininet-ovs-26 - 20190416-121444.608
os-cmb-cnt: 0
os-ctl-cnt: 1
os-cmp-cnt: 2
openstack_system_flavor: odl-highcpu-8
openstack_system2_flavor: odl-highcpu-4
tools_system_count: 2
- tools_system_image: ZZCI - Ubuntu 16.04 - mininet-ovs-26 - 20181029-223513.438
+ tools_system_image: ZZCI - Ubuntu 16.04 - mininet-ovs-26 - 20190416-121444.608
os-cmb-cnt: 0
os-ctl-cnt: 1
os-cmp-cnt: 2
# Job for Test Driven Development with it's own testplan to run new/non-passing suites. scheduled manually.
- gate-tdd-wip:
testplan: '{project}-{topology}-tdd-wip-openstack.txt'
- schedule: ''
+ schedule: '{schedule-weekly}'
tools_system_count: 3
- tempest-stateful:
test-suites: 'openstack/tempest/tempest.robot'
# Job images
tools_system_count: 2
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: 'odl-openflowplugin-flow-services-rest'
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: 'odl-openflowplugin-flow-services-rest,odl-openflowplugin-drop-test'
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: 'odl-openflowplugin-flow-services-rest,odl-openflowplugin-app-bulk-o-matic'
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: >
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: >
scope: 'all'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: >
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: >
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: >
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: 'odl-openflowplugin-flow-services-rest'
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: >
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: >
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: >
scope: 'only'
# Job images
- tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20181001-220228.326'
+ tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-28 - 20190415-091034.881'
# Features to install
install-features: >
views:
- project-view
project-name: 'openflowplugin'
-
-- project:
- name: openflowplugin-fluorine-view
- views:
- - common-view
- view-name: 'openflowplugin-flourine'
- view-regex: '^openflowplugin-.*-fluorine'
rtd-token: e9fa62bd60a39c22de631791309ccacc37a9929e
- gerrit-jenkins-cfg-merge:
jenkins-silos: releng sandbox
+ - gerrit-jenkins-cfg-verify:
+ jenkins-silos: releng sandbox
- gerrit-jenkins-sandbox-cleanup
- gerrit-jjb-deploy-job
- gerrit-jjb-merge:
further details.
https://docs.openstack.org/developer/python-openstackclient/
-- parameter:
- name: patches-to-build-parameter
- parameters:
- - string:
- name: PATCHES_TO_BUILD
- default: ''
- description: |
- Ordered list of patches to build in the format of project=changeset (checkout) or
- project:changeset (cherry-pick) for example: genius=32/53632/9,netvirt:59/50259/47.
- A topic is also allowed, for example: topic=binding-tlc-rpc
-
-- parameter:
- name: build-order-parameter
- parameters:
- - string:
- name: BUILD_ORDER
- default: '{build-order}'
- description: 'Build order for multipatch test when topic is used'
-
-- parameter:
- name: build-fast-parameter
- parameters:
- - string:
- name: BUILD_FAST
- default: '{build-fast}'
- description: 'Set true to build fast -Pq'
-
-- parameter:
- name: run-test-parameter
- parameters:
- - string:
- name: RUN_TEST
- default: '{run-test}'
- description: 'Set true to run test after build'
-
- parameter:
name: distribution-branch-to-build-parameter
parameters:
+++ /dev/null
-#!/bin/bash -x
-
-# vim: sw=4 ts=4 sts=4 et tw=72 :
-
-# force any errors to cause the script and job to end in failure
-set -xeu -o pipefail
-
-# Ensure that necessary variables are set to enable noninteractive mode in
-# commands.
-export DEBIAN_FRONTEND=noninteractive
-
-# To handle the prompt style that is expected all over the environment
-# with how use use robotframework we need to make sure that it is
-# consistent for any of the users that are created during dynamic spin
-# ups
-echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
-
-echo '---> Install OpenVSwitch 2.5.0'
-apt-get update -m
-apt-get install openvswitch-switch openvswitch-vtep
-
-# Temporary workaround required to bring up OVS
-# post-install without which OVS daemon exits.
-service openvswitch-switch restart
-# Verify the OVS service status
-service openvswitch-switch status
-
-echo '---> Installing mininet'
-apt-get install mininet
-
-echo '---> Installing build pre-requisites'
-apt-get install build-essential snmp libsnmp-dev snmpd libpcap-dev \
-autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config
-
-git clone https://github.com/intracom-telecom-sdn/mtcbench.git
-mtcbench/deploy/docker/provision.sh
-# TODO: remove workaround for build issue with mtcbench
-# when mtcbench dependency build correctly
-# https://github.com/intracom-telecom-sdn/mtcbench/issues/10
-mtcbench/build_mtcbench.sh || true
-cd mtcbench/oflops/cbench
-make
-cp cbench /usr/local/bin/
-
-echo '---> Installing exabgp'
-apt-get install exabgp
-
-# Install vlan for vlan based tests in VTN suites
-apt-get install vlan
-
-# Install netaddr package which is needed by some custom mininet topologies
-apt-get install python-netaddr
--- /dev/null
+---
+- import_playbook: ../common-packer/provision/baseline.yaml
+
+- hosts: all
+ become_user: root
+ become_method: sudo
+
+ pre_tasks:
+ - include_role: name=lfit.system-update
+
+ tasks:
+ - name: 'Install OpenVSwitch {{ovs_version}}'
+ block:
+ - name: 'Install dependencies required for OpenVSwitch {{ovs_version}}'
+ apt: 'name={{item}} state=present'
+ with_items:
+ - dh-autoreconf
+ - debhelper
+ - autoconf
+ - automake
+ - libssl-dev
+ - pkg-config
+ - bzip2
+ - openssl
+ - python-all
+ - procps
+ - python-qt4
+ - python-zopeinterface
+ - python-twisted-conch
+ become: true
+ - name: 'Install OpenVSwitch {{ovs_version}}'
+ apt: 'name={{item}} state=present'
+ with_items:
+ - openvswitch-switch
+ - openvswitch-vtep
+ become: true
+ - name: Enable openvswitch-switch service
+ systemd:
+ name: openvswitch-switch
+ enabled: true
+ masked: false
+ become: true
+ - name: Enable openvswitch-vtep service
+ systemd:
+ name: openvswitch-vtep
+ enabled: true
+ masked: false
+ become: true
+
+ - name: Install Mininet
+ apt: name=mininet state=present
+ become: true
+
+ - name: Install exabgp
+ apt: name=exabgp state=present
+ become: true
+
+ - name: Install vlan for vlan based tests in VTN suites
+ apt: name=vlan state=present
+ become: true
+
+ - name: Install python-netaddr for custom mininet topologies
+ apt: name=python-netaddr state=present
+ become: true
+
+ post_tasks:
+ - name: System Reseal
+ script: ../common-packer/provision/system-reseal.sh
+ become: true
+++ /dev/null
-#!/bin/bash -x
-
-# vim: sw=4 ts=4 sts=4 et tw=72 :
-
-# force any errors to cause the script and job to end in failure
-set -xeu -o pipefail
-
-# Ensure that necessary variables are set to enable noninteractive mode in
-# commands.
-export DEBIAN_FRONTEND=noninteractive
-
-# To handle the prompt style that is expected all over the environment
-# with how use use robotframework we need to make sure that it is
-# consistent for any of the users that are created during dynamic spin
-# ups
-echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
-
-echo '---> Install OpenVSwitch 2.6.1'
-apt-get update -m
-apt-get install dh-autoreconf debhelper autoconf automake libssl-dev pkg-config bzip2 openssl python-all procps python-qt4 python-zopeinterface python-twisted-conch
-mkdir /root/ovs
-cd /root
-pwd
-wget http://openvswitch.org/releases/openvswitch-2.6.1.tar.gz
-tar -xzvf openvswitch-2.6.1.tar.gz -C /root/ovs --strip-components=1
-cd /root/ovs
-DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
-cd /root
-dpkg -i openvswitch-common_2.6.1-1_amd64.deb openvswitch-switch_2.6.1-1_amd64.deb python-openvswitch_2.6.1-1_all.deb openvswitch-vtep_2.6.1-1_amd64.deb
-systemctl unmask openvswitch-switch
-service openvswitch-switch start
-service openvswitch-vtep start
-echo '---> Waiting 15 secs for services to start'
-sleep 15
-ovs-vsctl --version
-ovs-vsctl show
-# We want to see the entire ps output not just the pid
-# shellcheck disable=SC2009
-ps -elf | grep ovs
-# shellcheck disable=SC2009
-ps -elf | grep vtep
-echo '---> Finished installing OpenVSwitch 2.6.1'
-
-echo '---> Installing mininet'
-apt-get install mininet
-
-echo '---> Installing build pre-requisites'
-apt-get install build-essential snmp libsnmp-dev snmpd libpcap-dev \
-autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config
-
-git clone https://github.com/intracom-telecom-sdn/mtcbench.git
-mtcbench/deploy/docker/provision.sh
-# TODO: remove workaround for build issue with mtcbench
-# when mtcbench dependency build correctly
-# https://github.com/intracom-telecom-sdn/mtcbench/issues/10
-mtcbench/build_mtcbench.sh || true
-cd mtcbench/oflops/cbench
-make
-cp cbench /usr/local/bin/
-
-echo '---> Installing exabgp'
-apt-get install exabgp
-
-# Install vlan for vlan based tests in VTN suites
-apt-get install vlan
-
-# Install netaddr package which is needed by some custom mininet topologies
-apt-get install python-netaddr
--- /dev/null
+---
+- import_playbook: ../common-packer/provision/baseline.yaml
+
+- hosts: all
+ become_user: root
+ become_method: sudo
+ vars:
+ ovs_version: 2.6.1
+ ovs_checksum: sha256:307b20aba6a179bf13e5da9ac242933c31349073762473a9d4782619c8c1cf0c
+
+ pre_tasks:
+ - include_role: name=lfit.system-update
+
+ tasks:
+ - name: 'Install OpenVSwitch {{ovs_version}}'
+ block:
+ - name: 'Install dependencies required for OpenVSwitch {{ovs_version}}'
+ apt: 'name={{item}} state=present'
+ with_items:
+ - dh-autoreconf
+ - debhelper
+ - autoconf
+ - automake
+ - libssl-dev
+ - pkg-config
+ - bzip2
+ - openssl
+ - python-all
+ - procps
+ - python-qt4
+ - python-zopeinterface
+ - python-twisted-conch
+ become: true
+ - name: Create OVS root
+ file:
+ path: /tmp/ovs
+ state: directory
+ mode: 0755
+ - name: 'Fetch OpenVSwitch {{ovs_version}} to /tmp'
+ get_url:
+ url: 'http://openvswitch.org/releases/openvswitch-2.6.1.tar.gz'
+ dest: '/tmp/openvswitch-2.6.1.tar.gz'
+ checksum: '{{ovs_checksum}}'
+ - name: 'Unarchive OpenVSwitch {{ovs_version}}'
+ unarchive:
+ src: '/tmp/openvswitch-{{ovs_version}}.tar.gz'
+ dest: /tmp/ovs
+ remote_src: true
+ - name: 'Build OpenVSwitch {{ovs_version}}'
+ shell: DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
+ args:
+ chdir: '/tmp/ovs/openvswitch-{{ovs_version}}'
+ - name: 'Install OpenVSwitch {{ovs_version}}'
+ apt: 'deb={{item}}'
+ with_items:
+ - /tmp/ovs/openvswitch-common_2.6.1-1_amd64.deb
+ - /tmp/ovs/openvswitch-switch_2.6.1-1_amd64.deb
+ - /tmp/ovs/python-openvswitch_2.6.1-1_all.deb
+ - /tmp/ovs/openvswitch-vtep_2.6.1-1_amd64.deb
+ become: true
+ - name: Enable openvswitch-switch service
+ systemd:
+ name: openvswitch-switch
+ enabled: true
+ masked: false
+ become: true
+ - name: Enable openvswitch-vtep service
+ systemd:
+ name: openvswitch-vtep
+ enabled: true
+ masked: false
+ become: true
+
+ - name: Install Mininet
+ apt: name=mininet state=present
+ become: true
+
+ - name: Install exabgp
+ apt: name=exabgp state=present
+ become: true
+
+ - name: Install vlan for vlan based tests in VTN suites
+ apt: name=vlan state=present
+ become: true
+
+ - name: Install python-netaddr for custom mininet topologies
+ apt: name=python-netaddr state=present
+ become: true
+
+ post_tasks:
+ - name: System Reseal
+ script: ../common-packer/provision/system-reseal.sh
+ become: true
{
"variables": {
+ "ansible_roles_path": ".galaxy",
"base_image": null,
"distro": null,
"cloud_network": null,
},
"builders": [
{
- "type": "openstack",
- "region": "ca-ymq-1",
- "availability_zone": "ca-ymq-2",
- "ssh_username": "{{user `ssh_user`}}",
- "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
+ "name": "vexxhost",
"image_name": "ZZCI - {{user `distro`}} - mininet-ovs-25 - {{isotime \"20060102-150405.000\"}}",
"instance_name": "{{user `distro`}}-mininet-ovs-25-{{uuid}}",
"source_image_name": "{{user `base_image`}}",
- "flavor": "v1-standard-1",
+ "type": "openstack",
+ "region": "ca-ymq-1",
+ "availability_zone": "ca-ymq-2",
"networks": [
"{{user `cloud_network`}}"
],
"user_data_file": "{{user `cloud_user_data`}}",
+ "ssh_username": "{{user `ssh_user`}}",
+ "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
+ "flavor": "v1-standard-1",
"metadata": {
"ci_managed": "yes"
}
{
"type": "shell",
"scripts": [
- "provision/baseline.sh",
- "provision/mininet-ovs-2.5.sh",
- "provision/system_reseal_local_env.sh",
- "provision/system_reseal.sh"
+ "common-packer/provision/install-python.sh"
],
"execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
+ },
+ {
+ "type": "shell-local",
+ "command": "./common-packer/ansible-galaxy.sh {{user `ansible_roles_path`}}"
+ },
+ {
+ "type": "ansible",
+ "playbook_file": "provision/mininet-ovs-2.5.yaml",
+ "ansible_env_vars": [
+ "ANSIBLE_NOCOWS=1",
+ "ANSIBLE_PIPELINING=True",
+ "ANSIBLE_ROLES_PATH={{user `ansible_roles_path`}}",
+ "ANSIBLE_CALLBACK_WHITELIST=profile_tasks",
+ "ANSIBLE_STDOUT_CALLBACK=debug"
+ ]
}
]
}
{
"variables": {
+ "ansible_roles_path": ".galaxy",
"base_image": null,
"distro": null,
"cloud_network": null,
},
"builders": [
{
- "type": "openstack",
- "region": "ca-ymq-1",
- "availability_zone": "ca-ymq-2",
- "ssh_username": "{{user `ssh_user`}}",
- "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
+ "name": "vexxhost",
"image_name": "ZZCI - {{user `distro`}} - mininet-ovs-26 - {{isotime \"20060102-150405.000\"}}",
"instance_name": "{{user `distro`}}-mininet-ovs-26-{{uuid}}",
"source_image_name": "{{user `base_image`}}",
- "flavor": "v1-standard-1",
+ "type": "openstack",
+ "region": "ca-ymq-1",
+ "availability_zone": "ca-ymq-2",
"networks": [
"{{user `cloud_network`}}"
],
"user_data_file": "{{user `cloud_user_data`}}",
+ "ssh_username": "{{user `ssh_user`}}",
+ "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
+ "flavor": "v1-standard-1",
"metadata": {
"ci_managed": "yes"
}
{
"type": "shell",
"scripts": [
- "provision/baseline.sh",
- "provision/mininet-ovs-2.6.sh",
- "provision/system_reseal_local_env.sh",
- "provision/system_reseal.sh"
+ "common-packer/provision/install-python.sh"
],
"execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
+ },
+ {
+ "type": "shell-local",
+ "command": "./common-packer/ansible-galaxy.sh {{user `ansible_roles_path`}}"
+ },
+ {
+ "type": "ansible",
+ "playbook_file": "provision/mininet-ovs-2.6.yaml",
+ "ansible_env_vars": [
+ "ANSIBLE_NOCOWS=1",
+ "ANSIBLE_PIPELINING=True",
+ "ANSIBLE_ROLES_PATH={{user `ansible_roles_path`}}",
+ "ANSIBLE_CALLBACK_WHITELIST=profile_tasks",
+ "ANSIBLE_STDOUT_CALLBACK=yaml"
+ ]
}
]
}