Create blazar-devstack-dsvm job for stable/pike

The blazar-devstack-dsvm job was moved to in-repo configuration during
the Queens cycle. This patch creates it for the stable/pike branch as it
is being removed from openstack-infra/project-config. The python35
variant is not added as stable/pike doesn't support Python 3.

Change-Id: I2c5421a9e969bfe3129e0ab415226546397d79a8
This commit is contained in:
Pierre Riteau 2018-09-17 19:06:39 +01:00
parent d90513c759
commit c87ed2c768
3 changed files with 96 additions and 1 deletions

View File

@ -1,3 +1,25 @@
- job:
name: blazar-devstack-dsvm
parent: legacy-dsvm-base
irrelevant-files:
- ^.*\.rst$
- ^blazar/tests/.*$
- ^doc/.*$
- ^releasenotes/.*$
- ^test-requirements.txt$
- ^tools/.*$
- ^tox.ini$
run: playbooks/legacy/blazar-devstack-dsvm/run.yaml
post-run: playbooks/legacy/blazar-devstack-dsvm/post.yaml
timeout: 4200
required-projects:
- openstack-dev/devstack
- openstack-infra/devstack-gate
- openstack/blazar
- openstack/blazar-nova
- openstack/python-blazarclient
- openstack/blazar-tempest-plugin
- project:
templates:
- openstack-python-jobs
@ -7,6 +29,7 @@
- release-notes-jobs
check:
jobs:
- blazar-devstack-dsvm
- openstack-tox-pylint:
voting: false
- openstack-tox-py35:
@ -15,4 +38,5 @@
queue: blazar
jobs:
- openstack-tox-py35:
voting: false
voting: false
- blazar-devstack-dsvm

View File

@ -0,0 +1,15 @@
- hosts: primary
tasks:
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
synchronize:
src: '{{ ansible_user_dir }}/workspace/'
dest: '{{ zuul.executor.log_root }}'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/logs/**
- --include=*/
- --exclude=*
- --prune-empty-dirs

View File

@ -0,0 +1,56 @@
- hosts: all
name: Autoconverted job legacy-blazar-devstack-dsvm from old job gate-blazar-devstack-dsvm
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -e
set -x
cat > clonemap.yaml << EOF
clonemap:
- name: openstack-infra/devstack-gate
dest: devstack-gate
EOF
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
git://git.openstack.org \
openstack-infra/devstack-gate
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
cat << 'EOF' >>"/tmp/dg-local.conf"
[[local|localrc]]
enable_plugin blazar git://git.openstack.org/openstack/blazar
# Enable Tempest plugin
TEMPEST_PLUGINS='/opt/stack/new/blazar-tempest-plugin'
EOF
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export ENABLED_SERVICES=blazar,blazar-a,blazar-m,tempest
export PROJECTS="openstack/blazar $PROJECTS"
export PROJECTS="openstack/blazar-nova $PROJECTS"
export PROJECTS="openstack/python-blazarclient $PROJECTS"
export PROJECTS="openstack/blazar-tempest-plugin $PROJECTS"
export DEVSTACK_GATE_TEMPEST_REGEX='blazar_tempest_plugin\.tests\.(?!api)'
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'