-#!/bin/bash
+#!/bin/bash -l
# Copy the whole script to /tmp/common-functions.sh and to remote nodes but
# only if this script itself is executing and not sourced. jenkins prepends this
echo "Copying common-functions.sh to /tmp"
cp "${0}" /tmp/common-functions.sh
- source /tmp/v/openstack/bin/activate
mapfile -t ips <<< "$(openstack stack show -f json -c outputs "$STACK_NAME" | jq -r '.outputs[] | select(.output_key | match("^vm_[0-9]+_ips$")) | .output_value | .[]')"
for ip in "${ips[@]}"; do
echo "Copying common-functions.sh to ${ip}:/tmp"
-#!/bin/bash
+#!/bin/bash -l
# Get the Controller and Tools VM slave addresses
set -x
OPENSTACK_SYSTEM=()
OPENSTACK_CONTROLLERS=()
-OPENSTACK_VENV="/tmp/v/openstack"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source $OPENSTACK_VENV/bin/activate
mapfile -t ADDR <<< "$(openstack stack show -f json -c outputs "$STACK_NAME" | jq -r '.outputs[] | select(.output_key | match("^vm_[0-9]+_ips$")) | .output_value | .[]')"
# The next two blocks of code will parse the list of vm IP's hostnames to determine which type of node
files: 'csit/suites/{project}/**'
builders:
+ - lf-infra-pre-build
- integration-infra-stack:
stack-template: '{stack-template}'
vm_0_count: '1'
build-timeout: '{build-timeout}'
builders:
+ - lf-infra-pre-build
- integration-infra-stack:
stack-template: '{stack-template}'
vm_0_count: '1'
files: 'csit/suites/{project}/**'
builders:
+ - lf-infra-pre-build
- integration-infra-stack:
stack-template: '{stack-template}'
vm_0_count: '3'
build-timeout: '{build-timeout}'
builders:
+ - lf-infra-pre-build
- integration-infra-stack:
stack-template: '{stack-template}'
vm_0_count: '3'
build-timeout: '{build-timeout}'
builders:
+ - lf-infra-pre-build
- integration-infra-stack:
stack-template: '{stack-template}'
vm_0_count: '3'
- timed: '{schedule}'
builders:
+ - lf-infra-pre-build
- integration-infra-stack-4-type:
stack-template: '{stack-template}'
vm_0_count: '{odl_system_count}'
- timed: '{schedule}'
builders:
+ - lf-infra-pre-build
- integration-infra-stack-3-type:
stack-template: '{stack-template}'
vm_0_count: '{odl_system_count}'
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
echo "----------> Copy ssh public keys to csit lab"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-
function copy-ssh-keys-to-slave() {
RETRIES=60
for j in $(seq 1 $RETRIES); do
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
-virtualenv "/tmp/v/openstack"
-# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
-source "/tmp/v/openstack/bin/activate"
-pip install --upgrade "pip<10.0.0" setuptools
-# hardcoding cmd2 version as the most recent version seems to be broken.
-# reference: https://pypi.org/project/cmd2/#history
-pip install --upgrade cmd2==0.8.5 python-openstackclient python-heatclient
-pip freeze
-
# TODO: Remove the if-statement once we have fully migrated to /opt/ciman
if [ -d "/opt/ciman/openstack-hot" ]; then
cd /opt/ciman/openstack-hot || exit 1
- UNSTABLE
build-steps:
- shell: |
- #!/bin/bash
+ #!/bin/bash -l
echo "Deleting $STACK_NAME"
- source "/tmp/v/openstack/bin/activate"
openstack stack delete --yes "$STACK_NAME"
mark-unstable-if-failed: false