name: autorelease-generate-release-patches
builders:
- shell: !include-raw:
- - ../global-jjb/shell/lftools-install.sh
- prepare-release.sh
- builder:
forbidden-files: ''
builders:
+ - lf-infra-pre-build
- autorelease-checkout-gerrit-patch
- autorelease-compare-projects
- jacoco-nojava-workaround
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2015, 2017 The Linux Foundation and others.
jobs:
- '{project-name}-distribution-check-{stream}'
- '{project-name}-maven-javadoc-jobs'
+ - '{project-name}-rtd-jobs':
+ build-node: centos7-builder-2c-2g
+ project-pattern: controller
+ rtd-build-url: https://readthedocs.org/api/v2/webhook/odl-controller/48288/
+ rtd-token: b8440116c823a80c0fb0479eb7448a9196e6932f
- odl-maven-jobs
stream: neon
jobs:
- '{project-name}-distribution-check-{stream}'
- '{project-name}-maven-javadoc-jobs'
+ - '{project-name}-rtd-jobs':
+ build-node: centos7-builder-2c-2g
+ project-pattern: controller
+ rtd-build-url: https://readthedocs.org/api/v2/webhook/odl-controller/48288/
+ rtd-token: b8440116c823a80c0fb0479eb7448a9196e6932f
- odl-maven-jobs
stream: fluorine
-Subproject commit edeb841d4bdfe240fa88b52a8d78caeffbab50f6
+Subproject commit c61d85ac2a8d2aa6bacfa4719c5ec89e3c5de88c
mv /tmp/changes.txt ${WORKSPACE}/archives
mv ${WORKSPACE}/rabbit.txt ${WORKSPACE}/archives
+ mv ${WORKSPACE}/haproxy.cfg ${WORKSPACE}/archives
sleep 5
# FIXME: Do not create .tar and gzip before copying.
} # create_compute_node_local_conf()
function configure_haproxy_for_neutron_requests() {
- MGRIP=$1
+ local -r haproxy_ip=$1
# shellcheck disable=SC2206
- ODL_IPS=(${2//,/ })
+ local -r odl_ips=(${2//,/ })
cat > ${WORKSPACE}/install_ha_proxy.sh<< EOF
sudo systemctl stop firewalld
sudo yum -y install policycoreutils-python haproxy
EOF
-cat > ${WORKSPACE}/haproxy.cfg << EOF
+ cat > ${WORKSPACE}/haproxy.cfg << EOF
global
daemon
group haproxy
timeout check 10s
listen opendaylight
- bind ${MGRIP}:8080
+ bind ${haproxy_ip}:8181 transparent
+ mode http
+ http-request set-header X-Forwarded-Proto https if { ssl_fc }
+ http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
+ option httpchk GET /diagstatus
+ option httplog
balance source
+EOF
-listen opendaylight_rest
- bind ${MGRIP}:8181
- balance source
+ odlindex=1
+ for odlip in ${odl_ips[*]}; do
+ echo " server opendaylight-rest-${odlindex} ${odlip}:8181 check fall 5 inter 2000 rise 2" >> ${WORKSPACE}/haproxy.cfg
+ odlindex=$((odlindex+1))
+ done
-listen opendaylight_websocket
- bind ${MGRIP}:8185
- balance source
+ cat >> ${WORKSPACE}/haproxy.cfg << EOF
+listen opendaylight_ws
+ bind ${haproxy_ip}:8185 transparent
+ mode http
+ timeout connect 5s
+ timeout client 25s
+ timeout server 25s
+ timeout tunnel 3600s
+ balance source
EOF
odlindex=1
- for odlip in ${ODL_IPS[*]}; do
- sed -i "/listen opendaylight$/a server controller-${odlindex} ${odlip}:8080 check fall 5 inter 2000 rise 2" ${WORKSPACE}/haproxy.cfg
- sed -i "/listen opendaylight_rest$/a server controller-rest-${odlindex} ${odlip}:8181 check fall 5 inter 2000 rise 2" ${WORKSPACE}/haproxy.cfg
- sed -i "/listen opendaylight_websocket$/a server controller-websocket-${odlindex} ${odlip}:8185 check fall 5 inter 2000 rise 2" ${WORKSPACE}/haproxy.cfg
+ for odlip in ${odl_ips[*]}; do
+ echo " server opendaylight-ws-${odlindex} ${odlip}:8185 check fall 5 inter 2000 rise 2" >> ${WORKSPACE}/haproxy.cfg
odlindex=$((odlindex+1))
done
-
echo "Dump haproxy.cfg"
cat ${WORKSPACE}/haproxy.cfg
true
EOF
- scp ${WORKSPACE}/install_ha_proxy.sh ${MGRIP}:/tmp
- ${SSH} ${MGRIP} "sudo bash /tmp/install_ha_proxy.sh"
- scp ${WORKSPACE}/haproxy.cfg ${MGRIP}:/tmp
- scp ${WORKSPACE}/deploy_ha_proxy.sh ${MGRIP}:/tmp
- ${SSH} ${MGRIP} "sudo bash /tmp/deploy_ha_proxy.sh"
+ scp ${WORKSPACE}/install_ha_proxy.sh ${haproxy_ip}:/tmp
+ ${SSH} ${haproxy_ip} "sudo bash /tmp/install_ha_proxy.sh"
+ scp ${WORKSPACE}/haproxy.cfg ${haproxy_ip}:/tmp
+ scp ${WORKSPACE}/deploy_ha_proxy.sh ${haproxy_ip}:/tmp
+ ${SSH} ${haproxy_ip} "sudo bash /tmp/deploy_ha_proxy.sh"
} # configure_haproxy_for_neutron_requests()
# Following three functions are debugging helpers when debugging devstack changes.
echo "git checkout ${DEVSTACK_HASH}"
git checkout ${DEVSTACK_HASH}
fi
+wget https://raw.githubusercontent.com/shague/odl_tools/master/fix-logging.patch.txt -O /tmp/fix-logging.patch.txt
+patch --verbose -p1 -i /tmp/fix-logging.patch.txt
git --no-pager log --pretty=format:'%h %<(13)%ar%<(13)%cr %<(20,trunc)%an%d %s%b' -n20
echo
refspec: '$PATCHREFSPEC'
branch: 'master'
+ triggers:
+ # we need this for not SR projects
+ - integration-csit-trigger:
+ jobs: '{trigger-jobs}'
+
wrappers:
- opendaylight-infra-wrappers:
build-timeout: '{build-timeout}'
openstack_system2_image: '{openstack_system_image_queens}'
- project:
- name: netvirt-csit-1cmb-0ctl-0cmp-openstack-integration-fluorine
+ name: netvirt-csit-1cmb-0ctl-0cmp-openstack-integration
jobs:
- inttest-csit-openstack
project: 'netvirt'
- stream: 'fluorine'
- branch: 'master'
testplan: '{project}-{topology}-openstack.txt'
odl-ml2-driver-version: 'v2'
enable-openstack-services: 'n-cpu,placement-api,tempest'
os-ctl-cnt: 0
os-cmp-cnt: 0
+ stream:
+ - neon:
+ branch: 'master'
+ - fluorine:
+ branch: 'stable/fluorine'
+ - oxygen:
+ branch: 'stable/oxygen'
+
topology:
- 1node:
openstack_system2_count: 0
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
# by the cleanup old images job.
echo "---> Check image protection"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-
declare -a yaml_images
readarray -t yaml_images <<< "$(grep -r _system_image: --include \*.yaml \
| awk -F": " -e '{print $3}' | sed "s:'::;s:'$::;/^$/d" | sort -u)"
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 - 2018 The Linux Foundation and others.
# Removes openstack images older than 30 days in the cloud
echo "---> Cleanup old images"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
lftools openstack --os-cloud vex image cleanup --days=30
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 - 2018 The Linux Foundation and others.
# Fetch server list before fetching active minions to minimize race condition
# where we might be trying to delete servers while jobs are trying to start
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-
# We purposely need word splitting here to create the OS_SERVERS array.
# shellcheck disable=SC2207
mapfile -t OS_SERVERS < <(openstack server list -f value -c "Name" | grep -E 'prd|snd')
server remove --minutes 15 "$server"
fi
done
-
-deactivate
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 - 2018 The Linux Foundation and others.
##############################################################################
echo "---> Cleanup stale nodes"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-
# Todo: As a safe check we could obtain the list of active jobs from Jenkins and
# compute the checksum from $JOB_NAME to check if any active nodes exist and
# skip deleting those nodes. This step may not be required since there is already
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
# list of Jenkins instances to check for active builds.
echo "---> Cleanup stale stacks"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-
stack_in_jenkins() {
# Usage: check_stack_in_jenkins STACK_NAME JENKINS_URL [JENKINS_URL...]
# Returns: 0 If stack is in Jenkins and 1 if stack is not in Jenkins.
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2018 The Linux Foundation and others.
##############################################################################
# Scans OpenStack for orphaned volumes
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
mapfile -t os_volumes < <(openstack volume list -f value -c ID --status Available)
echo "---> Orphaned volumes"
lftools openstack --os-cloud vex volume remove --minutes 15 "$volume"
done
fi
-
-deactivate
- timed: '0,30 * * * *'
builders:
- - odl-openstack-install
+ - lf-infra-pre-build
# Servers
- odl-openstack-cleanup-stale-stacks
- odl-openstack-cleanup-stale-nodes
- gerrit-maven-sonar:
mvn-params: >
-Dodl.jacoco.aggregateFile=$WORKSPACE/target/jacoco.exec
- -Dsonar.jacoco.reportPaths=$WORKSPACE/target/jacoco.exec
+ -Dsonar.jacoco.reportPath=$WORKSPACE/target/jacoco.exec
project: 'yangtools'
project-name: 'yangtools'