summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-05-10 04:39:52 +0000
committerGerrit Code Review <review@openstack.org>2018-05-10 04:39:52 +0000
commita0ff84e0bade30e972c6c0692c379b7cfdcc3027 (patch)
tree0a4b28ae0a5691b6846b65c2a9f630dfb3940e37
parent46e87ce6ebcd5ed564debe5b9520369ffc6c575a (diff)
parent7d8246244db56420e8c3512f991604ffda9bcc12 (diff)
downloadnova-a0ff84e0bade30e972c6c0692c379b7cfdcc3027.tar.gz
Merge "Migrate tempest-dsvm-multinode-live-migration job in-tree"
-rw-r--r--.zuul.yaml36
-rw-r--r--playbooks/legacy/nova-live-migration/post.yaml15
-rw-r--r--playbooks/legacy/nova-live-migration/run.yaml43
3 files changed, 94 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 5c7f3bffd7..ac6ecf7e2c 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -27,6 +27,34 @@
- ^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:
name: nova-tox-functional
parent: openstack-tox
description: |
@@ -77,6 +105,12 @@
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:
name: nova-lvm
parent: nova-dsvm-base
description: |
@@ -115,6 +149,7 @@
check:
jobs:
- nova-cells-v1
+ - nova-live-migration
- nova-multiattach
- nova-next
- nova-tox-functional
@@ -122,6 +157,7 @@
gate:
jobs:
- nova-cells-v1
+ - nova-live-migration
- nova-multiattach
- nova-next
- nova-tox-functional
diff --git a/playbooks/legacy/nova-live-migration/post.yaml b/playbooks/legacy/nova-live-migration/post.yaml
new file mode 100644
index 0000000000..e07f5510ae
--- /dev/null
+++ b/playbooks/legacy/nova-live-migration/post.yaml
@@ -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
diff --git a/playbooks/legacy/nova-live-migration/run.yaml b/playbooks/legacy/nova-live-migration/run.yaml
new file mode 100644
index 0000000000..16307d8e06
--- /dev/null
+++ b/playbooks/legacy/nova-live-migration/run.yaml
@@ -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 }}'