diff options
author | melanie witt <melwittt@gmail.com> | 2018-03-23 21:40:59 +0000 |
---|---|---|
committer | melanie witt <melwittt@gmail.com> | 2018-05-07 22:39:44 +0000 |
commit | 7d8246244db56420e8c3512f991604ffda9bcc12 (patch) | |
tree | c8378a1dd8b0c53017ee1b9f7b6a4d6b7a13baa7 /playbooks | |
parent | 9273b082026080122d104762ec04591c69f75a44 (diff) | |
download | nova-7d8246244db56420e8c3512f991604ffda9bcc12.tar.gz |
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
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/legacy/nova-live-migration/post.yaml | 15 | ||||
-rw-r--r-- | playbooks/legacy/nova-live-migration/run.yaml | 43 |
2 files changed, 58 insertions, 0 deletions
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 }}' |