Migrate tempest-dsvm-multinode-live-migration job in-tree
This defines the nova-live-migration job, based on the tempest-dsvm-multinode-live-migration job from openstack-zuul-jobs. The branch override parts of the job definition are removed since the job will be defined per-branch now. Change-Id: Idea86d6bb648b1e6fef8813dbe569724ce81a750
This commit is contained in:
parent
9273b08202
commit
7d8246244d
36
.zuul.yaml
36
.zuul.yaml
|
@ -26,6 +26,34 @@
|
||||||
- ^tools/.*$
|
- ^tools/.*$
|
||||||
- ^tox.ini$
|
- ^tox.ini$
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: nova-dsvm-multinode-base
|
||||||
|
parent: legacy-dsvm-base-multinode
|
||||||
|
description: |
|
||||||
|
Base job for multinode nova devstack/tempest jobs.
|
||||||
|
Will setup firewall rules on all the nodes allowing them to talk to
|
||||||
|
each other.
|
||||||
|
timeout: 10800
|
||||||
|
required-projects:
|
||||||
|
- openstack-infra/devstack-gate
|
||||||
|
- openstack/nova
|
||||||
|
- openstack/tempest
|
||||||
|
irrelevant-files:
|
||||||
|
- ^(placement-)?api-.*$
|
||||||
|
- ^(test-|)requirements.txt$
|
||||||
|
- ^.*\.rst$
|
||||||
|
- ^.git.*$
|
||||||
|
- ^doc/.*$
|
||||||
|
- ^nova/hacking/.*$
|
||||||
|
- ^nova/locale/.*$
|
||||||
|
- ^nova/tests/.*$
|
||||||
|
- ^releasenotes/.*$
|
||||||
|
- ^setup.cfg$
|
||||||
|
- ^tests-py3.txt$
|
||||||
|
- ^tools/.*$
|
||||||
|
- ^tox.ini$
|
||||||
|
nodeset: legacy-ubuntu-xenial-2-node
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: nova-tox-functional
|
name: nova-tox-functional
|
||||||
parent: openstack-tox
|
parent: openstack-tox
|
||||||
|
@ -76,6 +104,12 @@
|
||||||
run: playbooks/legacy/nova-cells-v1/run.yaml
|
run: playbooks/legacy/nova-cells-v1/run.yaml
|
||||||
post-run: playbooks/legacy/nova-cells-v1/post.yaml
|
post-run: playbooks/legacy/nova-cells-v1/post.yaml
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: nova-live-migration
|
||||||
|
parent: nova-dsvm-multinode-base
|
||||||
|
run: playbooks/legacy/nova-live-migration/run.yaml
|
||||||
|
post-run: playbooks/legacy/nova-live-migration/post.yaml
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: nova-lvm
|
name: nova-lvm
|
||||||
parent: nova-dsvm-base
|
parent: nova-dsvm-base
|
||||||
|
@ -119,6 +153,7 @@
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- nova-cells-v1
|
- nova-cells-v1
|
||||||
|
- nova-live-migration
|
||||||
- nova-multiattach
|
- nova-multiattach
|
||||||
- nova-next
|
- nova-next
|
||||||
- nova-tox-functional
|
- nova-tox-functional
|
||||||
|
@ -126,6 +161,7 @@
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- nova-cells-v1
|
- nova-cells-v1
|
||||||
|
- nova-live-migration
|
||||||
- nova-multiattach
|
- nova-multiattach
|
||||||
- nova-next
|
- nova-next
|
||||||
- nova-tox-functional
|
- nova-tox-functional
|
||||||
|
|
|
@ -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,43 @@
|
||||||
|
- hosts: primary
|
||||||
|
name: nova-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 PYTHONUNBUFFERED=true
|
||||||
|
export DEVSTACK_GATE_CONFIGDRIVE=0
|
||||||
|
export DEVSTACK_GATE_TEMPEST=1
|
||||||
|
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
|
||||||
|
export DEVSTACK_GATE_TOPOLOGY="multinode"
|
||||||
|
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