Move legacy-grenade-dsvm-neutron-multinode-live-migration in-tree
This moves the legacy-grenade-dsvm-neutron-multinode-live-migration job from openstack-zuul-jobs in-tree. Nova is the only project that runs this job and this allows nova to directly manage it. The job will still use the same irrelevant-files list and is still non-voting for the time being and only runs in the check queue. It has been renamed to "nova-grenade-live-migration". This change is meant to be backported to rocky, queens and pike to allow us to drop legacy-grenade-dsvm-neutron-multinode-live-migration from openstack-zuul-jobs where the job is branchless but restricted to pike+ branches. A follow up master-only (stein) change will make the job voting and gate per the plan in the mailing list [1]. [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-February/003341.html Change-Id: Ie9b61775dbb92b10237688eaddaca606c1c73a23 (cherry picked from commit53208b0496
) (cherry picked from commit7b9a133bb6
)
This commit is contained in:
parent
5d5e7be8cb
commit
76418a32cb
50
.zuul.yaml
50
.zuul.yaml
|
@ -154,6 +154,36 @@
|
|||
devstack_localrc:
|
||||
TEMPEST_COMPUTE_TYPE: compute_legacy
|
||||
|
||||
- job:
|
||||
name: nova-grenade-live-migration
|
||||
parent: nova-dsvm-multinode-base
|
||||
description: |
|
||||
Multi-node grenade job which runs nova/tests/live_migration/hooks tests.
|
||||
In other words, this tests live migration with mixed-version compute
|
||||
services which is important for things like rolling upgrade support.
|
||||
The former name for this job was
|
||||
"legacy-grenade-dsvm-neutron-multinode-live-migration".
|
||||
run: playbooks/legacy/nova-grenade-live-migration/run.yaml
|
||||
post-run: playbooks/legacy/nova-grenade-live-migration/post.yaml
|
||||
irrelevant-files:
|
||||
- ^(placement-)?api-.*$
|
||||
- ^(test-|)requirements.txt$
|
||||
- ^.*\.rst$
|
||||
- ^.git.*$
|
||||
- ^api-.*$
|
||||
- ^doc/.*$
|
||||
- ^nova/hacking/.*$
|
||||
- ^nova/locale/.*$
|
||||
- ^nova/tests/.*\.py$
|
||||
- ^nova/tests/functional/.*$
|
||||
- ^nova/tests/unit/.*$
|
||||
- ^releasenotes/.*$
|
||||
- ^setup.cfg$
|
||||
- ^tests-py3.txt$
|
||||
- ^tools/.*$
|
||||
- ^tox.ini$
|
||||
voting: false
|
||||
|
||||
- project:
|
||||
# Please try to keep the list of job names sorted alphabetically.
|
||||
templates:
|
||||
|
@ -188,6 +218,7 @@
|
|||
- ^tools/.*$
|
||||
- ^tox.ini$
|
||||
- nova-cells-v1
|
||||
- nova-grenade-live-migration
|
||||
- nova-live-migration
|
||||
- nova-multiattach
|
||||
- nova-next
|
||||
|
@ -223,25 +254,6 @@
|
|||
- ^tests-py3.txt$
|
||||
- ^tools/.*$
|
||||
- ^tox.ini$
|
||||
- legacy-grenade-dsvm-neutron-multinode-live-migration:
|
||||
voting: false
|
||||
irrelevant-files:
|
||||
- ^(placement-)?api-.*$
|
||||
- ^(test-|)requirements.txt$
|
||||
- ^.*\.rst$
|
||||
- ^.git.*$
|
||||
- ^api-.*$
|
||||
- ^doc/.*$
|
||||
- ^nova/hacking/.*$
|
||||
- ^nova/locale/.*$
|
||||
- ^nova/tests/.*\.py$
|
||||
- ^nova/tests/functional/.*$
|
||||
- ^nova/tests/unit/.*$
|
||||
- ^releasenotes/.*$
|
||||
- ^setup.cfg$
|
||||
- ^tests-py3.txt$
|
||||
- ^tools/.*$
|
||||
- ^tox.ini$
|
||||
- devstack-plugin-ceph-tempest:
|
||||
voting: false
|
||||
irrelevant-files:
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1,58 @@
|
|||
- hosts: primary
|
||||
name: nova-grenade-live-migration
|
||||
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
|
||||
export PROJECTS="openstack-dev/grenade $PROJECTS"
|
||||
export PYTHONUNBUFFERED=true
|
||||
export DEVSTACK_GATE_CONFIGDRIVE=0
|
||||
export DEVSTACK_GATE_NEUTRON=1
|
||||
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
|
||||
export DEVSTACK_GATE_GRENADE=pullup
|
||||
# By default grenade runs only smoke tests so we need to set
|
||||
# RUN_SMOKE to False in order to run live migration tests using
|
||||
# grenade
|
||||
export DEVSTACK_LOCAL_CONFIG="RUN_SMOKE=False"
|
||||
# LIVE_MIGRATE_BACK_AND_FORTH will tell Tempest to run a live
|
||||
# migration of the same instance to one compute node and then back
|
||||
# to the other, which is mostly only interesting for grenade since
|
||||
# we have mixed level computes.
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"LIVE_MIGRATE_BACK_AND_FORTH=True"
|
||||
export BRANCH_OVERRIDE=default
|
||||
export DEVSTACK_GATE_TOPOLOGY="multinode"
|
||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
fi
|
||||
function post_test_hook {
|
||||
/opt/stack/new/nova/nova/tests/live_migration/hooks/run_tests.sh
|
||||
}
|
||||
export -f post_test_hook
|
||||
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…
Reference in New Issue