Move grenade neutron-lib job to py3 and in python-neutronclient repo
'legacy-grenade-dsvm-neutron-libs' grenade neutron-lib jobs is present in opensatck-zuul-jobs repo running on python 2. This needs to run on py3 from Ussuri onwards and py2 for stable/branch. python-neutronclient is the only repo which is using this job. py2 version has been kept in opensatck-zuul-jobs and for ussuri onwwards this has been migrated to python-neutronclient repo with py3 version. Change-Id: I165f86e1d05c8830e0b75b5c2db369178a3df7e7
This commit is contained in:
parent
f46bf7eca0
commit
c430ed8950
28
.zuul.yaml
28
.zuul.yaml
@ -18,7 +18,7 @@
|
|||||||
- neutronclient-functional
|
- neutronclient-functional
|
||||||
experimental:
|
experimental:
|
||||||
jobs:
|
jobs:
|
||||||
- legacy-grenade-dsvm-neutron-libs:
|
- neutron-lib-grenade-dsvm:
|
||||||
irrelevant-files:
|
irrelevant-files:
|
||||||
- ^(test-|)requirements.txt$
|
- ^(test-|)requirements.txt$
|
||||||
- ^setup.cfg$
|
- ^setup.cfg$
|
||||||
@ -45,3 +45,29 @@
|
|||||||
LIBS_FROM_GIT: python-neutronclient
|
LIBS_FROM_GIT: python-neutronclient
|
||||||
devstack_plugins:
|
devstack_plugins:
|
||||||
neutron-vpnaas: https://opendev.org/openstack/neutron-vpnaas
|
neutron-vpnaas: https://opendev.org/openstack/neutron-vpnaas
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: neutron-lib-grenade-dsvm
|
||||||
|
# Old name: legacy-grenade-dsvm-neutron-libs
|
||||||
|
parent: legacy-dsvm-base
|
||||||
|
run: playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml
|
||||||
|
post-run: playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml
|
||||||
|
timeout: 10800
|
||||||
|
required-projects:
|
||||||
|
- openstack/grenade
|
||||||
|
- openstack/devstack-gate
|
||||||
|
- openstack/keystoneauth
|
||||||
|
- openstack/neutron
|
||||||
|
- openstack/neutron-lib
|
||||||
|
- openstack/os-client-config
|
||||||
|
- openstack/python-cinderclient
|
||||||
|
- openstack/python-glanceclient
|
||||||
|
- openstack/python-ironicclient
|
||||||
|
- openstack/python-keystoneclient
|
||||||
|
- openstack/python-neutronclient
|
||||||
|
- openstack/python-novaclient
|
||||||
|
# This is py3 version for ussuri onwards rest all branch needs to be py2
|
||||||
|
# version which is present in openstack-zuul-jobs.
|
||||||
|
# We need to take care of this branch variant and python version while
|
||||||
|
# migrating these jobs to zuulv3.
|
||||||
|
branches: ^(?!(stable/(ocata|pike|queens|rocky|stein|train))).*$
|
||||||
|
15
playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml
Normal file
15
playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml
Normal 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
|
52
playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml
Normal file
52
playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-grenade-dsvm-neutron-libs from old job gate-grenade-dsvm-neutron-libs-ubuntu-xenial-nv
|
||||||
|
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/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
https://opendev.org \
|
||||||
|
openstack/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
chdir: '{{ ansible_user_dir }}/workspace'
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PROJECTS="openstack/grenade $PROJECTS"
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT="os-client-config"
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT+=",keystoneauth"
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT+=",python-novaclient"
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT+=",python-keystoneclient"
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT+=",python-glanceclient"
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT+=",python-cinderclient"
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT+=",python-neutronclient"
|
||||||
|
export DEVSTACK_PROJECT_FROM_GIT+=",python-ironicclient"
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export DEVSTACK_GATE_TEMPEST=1
|
||||||
|
export DEVSTACK_GATE_GRENADE=pullup
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
|
export BRANCH_OVERRIDE=default
|
||||||
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||||
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||||
|
fi
|
||||||
|
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 }}'
|
Loading…
x
Reference in New Issue
Block a user