publishers:
- osci-swift-upload-logs-with-console:
upload_source: 'logs'
+
+- job-template:
+ name: 'dsvm-tempest-xen-testing'
+ node: '{node}'
+
+ wrappers:
+ - timeout:
+ timeout: 185 # Timeout in *minutes*
+ fail: true # A job run that exceeds the timeout will cause a failure
+ - timestamps
+
+ builders:
+ - net-info
+ - devstack-checkout
+ - shell: |
+ #!/bin/bash -xe
+
+ function pre_test_hook {{
+ echo "Install thirdparty libraries"
+
+ # Install libvirt here to ensure it is
+ # not replaced devstack
+ sudo dpkg -i /opt/nodepool-scripts/*.deb
+ sudo apt-get install -y -f --fix-missing
+ # Testing extra conf if possible
+ if [[ -e $BASE/new/nova/contrib/xen/vif-bridge-nova-network ]]; then
+ echo "Will use vif-bridge-nova-network from nova.git/contrib/xen/ as vif-bridge"
+ sudo cp -v $BASE/new/nova/contrib/xen/vif-bridge-nova-network /etc/xen/scripts/
+ echo "Updating /etc/nova/nova.conf with xen_vif_bridge_script_path = vif-bridge-nova-network"
+ cat <<EOF >> $BASE/new/devstack/local.conf
+ [[post-config|\$NOVA_CONF]]
+ [libvirt]
+ xen_vif_bridge_script_path = vif-bridge-nova-network
+ EOF
+ cat $BASE/new/devstack/local.conf
+ fi
+ }}
+
+ function cleanup_host_hook {{
+ echo "Copying custom logs"
+
+ # Xen logs
+ if [ -d /var/log/xen ]; then
+ sudo cp -r /var/log/xen $BASE/logs/
+ fi
+ }}
+
+ export -f pre_test_hook
+ export -f cleanup_host_hook
+
+ if [ -z $ZUUL_PROJECT ]; then
+ export ZUUL_PROJECT=openstack-dev/sandbox
+ fi
+ if [ -z $ZUUL_BRANCH ]; then
+ export ZUUL_BRANCH=master
+ fi
+ export PYTHONUNBUFFERED=true
+ export DEVSTACK_GATE_TEMPEST=1
+ export DEVSTACK_GATE_VIRT_DRIVER=libvirt
+ export DEVSTACK_GATE_LIBVIRT_TYPE=xen
+ export DEVSTACK_GATE_TIMEOUT=180
+ export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\]|.*test_volume_boot_pattern|.*test_shelve_volume_backed_instance)(^tempest\.(api|scenario|thirdparty))'
+ export RE_EXEC=true
+ # Fix bogus ZUUL_URL, for git fetch of the project to test
+ export ZUUL_URL=`echo $ZUUL_URL | sed -e s/jenkins-libvirt/104.130.29.226/`
+ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
+ ./safe-devstack-vm-gate-wrap.sh
+ - link-logs # In macros.yaml from os-ext-testing