summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2018-01-10 18:22:00 -0500
committerghanshyam <ghanshyammann@gmail.com>2018-01-30 03:50:42 +0000
commit862c6fb794f918bd22835a1d9c492cd97e1f5091 (patch)
treeb3e0fadb686e36d2854459ff155a430d18e8f60a /playbooks
parent91f7a999988b3f857d738d39984117e6c514cbec (diff)
downloadnova-862c6fb794f918bd22835a1d9c492cd97e1f5091.tar.gz
Add the nova-multiattach job
This change adds a new voting check/gate queue job for running volume multiattach compute API tests. This configures devstack to enable tempest for volume multiattach support and disables the Pike UCA since we need qemu<2.10 for libvirt to work with multiattach volumes. Depends on the following devstack patch to add the ENABLE_VOLUME_MULTIATTACH variable. The devstack patch depends on the tempest patch that adds the volume multiattach tests and the tempest patch depends on the series of nova changes that add volume multiattach support. Depends-On: I46b7eabf6a28f230666f6933a087f73cb4408348 Depends on the following nova patch to fix a bug when creating a server snapshot of a paused instance when not using the Pike UCA: Depends-On: If6c4dd6890ad6e2d00b186c6a9aa85f507b354e0 Depends on the tip of the series of Tempest tests which include additional tests for resize with a multiattach volume and swap volume with a multiattach volume. Depends-On: I751e9e4237e2997e102dd13c4f060deaea73d543 Part of blueprint multi-attach-volume Change-Id: I51adbbdf13711e463b4d25c2ffd4a3123cd65675
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/legacy/nova-multiattach/post.yaml15
-rw-r--r--playbooks/legacy/nova-multiattach/run.yaml58
2 files changed, 73 insertions, 0 deletions
diff --git a/playbooks/legacy/nova-multiattach/post.yaml b/playbooks/legacy/nova-multiattach/post.yaml
new file mode 100644
index 0000000000..e07f5510ae
--- /dev/null
+++ b/playbooks/legacy/nova-multiattach/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-multiattach/run.yaml b/playbooks/legacy/nova-multiattach/run.yaml
new file mode 100644
index 0000000000..66131722e3
--- /dev/null
+++ b/playbooks/legacy/nova-multiattach/run.yaml
@@ -0,0 +1,58 @@
+- hosts: all
+ name: nova-multiattach
+ tasks:
+
+ - name: Ensure 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
+ cat << 'EOF' >>"/tmp/dg-local.conf"
+ [[local|localrc]]
+ ENABLE_VOLUME_MULTIATTACH=True
+ ENABLE_UBUNTU_CLOUD_ARCHIVE=False
+
+ EOF
+ executable: /bin/bash
+ chdir: '{{ ansible_user_dir }}/workspace'
+ environment: '{{ zuul | zuul_legacy_vars }}'
+
+ - shell:
+ cmd: |
+ set -e
+ set -x
+ export PYTHONUNBUFFERED=true
+ # Yes we want to run Tempest.
+ export DEVSTACK_GATE_TEMPEST=1
+ # Only run compute API tests; note that this will need to
+ # be updated if multiattach scenario tests are ever added.
+ export DEVSTACK_GATE_TEMPEST_REGEX="api.compute"
+ 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 }}'