summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <ltoscano@redhat.com>2020-02-25 23:11:09 +0100
committerLuigi Toscano <ltoscano@redhat.com>2020-05-01 00:23:25 +0200
commit6c1e52cefcf93700fc13c124b45a5fa991261486 (patch)
tree37955d1d20a4056c2c2d383f0ef15d39c0bca01a
parent595b8adc4415abb0b6a67c9910890942b82a9e94 (diff)
downloadcinder-6c1e52cefcf93700fc13c124b45a5fa991261486.tar.gz
Native Zuul v3 cinder-grenade jobs
Specialize the grenade-multinode job and test the variations on upgrade where a few services are available on the subnode only (c-bak only, c-bak+c-vol, c-bak+c-sch+c-vol). Also, use grenade instead of grenade-py3. The former is now used (after Iea355514ec7cc2a52ed5e88c356bcb1cdeadd639) in integrated-gate-storage instead of the latter, which means that we need to change it in order to apply the value of irrelevant-files. Depends-On: https://review.opendev.org/548936 Change-Id: I3eac1afcbb69e25e9b2a916910caf3291aa7c1fe
-rw-r--r--.zuul.yaml119
-rw-r--r--playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml15
-rw-r--r--playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml53
-rw-r--r--playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml15
-rw-r--r--playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml53
-rw-r--r--playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml15
-rw-r--r--playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml54
7 files changed, 71 insertions, 253 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index b974bae9d..a3fd71446 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -48,7 +48,7 @@
- ^tox.ini$
- cinder-tempest-plugin-lvm-lio-barbican:
irrelevant-files: *functional-irrelevant-files
- - cinder-grenade-dsvm-mn-sub-volbak:
+ - cinder-grenade-mn-sub-volbak:
irrelevant-files: *gate-irrelevant-files
- cinder-tempest-lvm-multibackend:
voting: false
@@ -60,19 +60,19 @@
irrelevant-files: *gate-irrelevant-files
- tempest-integrated-storage:
irrelevant-files: *gate-irrelevant-files
- - grenade-py3:
+ - grenade:
irrelevant-files: *gate-irrelevant-files
- tempest-ipv6-only:
irrelevant-files: *gate-irrelevant-files
gate:
jobs:
- - cinder-grenade-dsvm-mn-sub-volbak:
+ - cinder-grenade-mn-sub-volbak:
irrelevant-files: *gate-irrelevant-files
- cinder-plugin-ceph-tempest:
irrelevant-files: *gate-irrelevant-files
- tempest-integrated-storage:
irrelevant-files: *gate-irrelevant-files
- - grenade-py3:
+ - grenade:
irrelevant-files: *gate-irrelevant-files
- tempest-ipv6-only:
irrelevant-files: *gate-irrelevant-files
@@ -82,9 +82,9 @@
irrelevant-files: *gate-irrelevant-files
- legacy-tempest-dsvm-multibackend-matrix:
irrelevant-files: *gate-irrelevant-files
- - cinder-grenade-dsvm-mn-sub-volschbak:
+ - cinder-grenade-mn-sub-volschbak:
irrelevant-files: *gate-irrelevant-files
- - cinder-grenade-dsvm-mn-sub-bak:
+ - cinder-grenade-mn-sub-bak:
irrelevant-files: *gate-irrelevant-files
- devstack-plugin-ceph-tempest-py3:
irrelevant-files: *gate-irrelevant-files
@@ -139,55 +139,78 @@
volume_revert: True
- job:
- name: cinder-grenade-dsvm-mn-sub-bak
- parent: legacy-dsvm-base-multinode
- # Old name: legacy-grenade-dsvm-cinder-mn-sub-bak
- # This is py3 version for ussuri onwards rest all branch needs to be py2
- # version which is present in openstack-zuul-jobs.
- # We need to take care of this branch variant and python version while
- # migrating these jobs to zuulv3.
- branches: ^(?!(driverfixes|stable/(ocata|pike|queens|rocky|stein|train))).*$
- run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml
- post-run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml
- timeout: 10800
+ name: cinder-grenade-mn-sub-bak
+ parent: grenade-multinode
+ description: |
+ Cinder grenade multinode job where cinder-backup only runs
+ on the subnode.
+ It tests the new c-api, c-sch, c-vol (on the controller node)
+ with the old c-bak (on the subnode).
+ Former names for this job were:
+ * cinder-grenade-dsvm-mn-sub-bak
+ * legacy-grenade-dsvm-cinder-mn-sub-bak
required-projects:
- - openstack/grenade
- - openstack/devstack-gate
- - openstack/cinder
+ - opendev.org/openstack/grenade
+ - opendev.org/openstack/cinder
+ vars:
+ devstack_services:
+ c-bak: false
+ c-vol: true
+ group-vars:
+ subnode:
+ devstack_services:
+ c-bak: true
+ c-vol: false
- job:
- name: cinder-grenade-dsvm-mn-sub-volbak
- parent: legacy-dsvm-base-multinode
- # Old name: legacy-grenade-dsvm-cinder-mn-sub-volbak
- # This is py3 version for ussuri onwards rest all branch needs to be py2
- # version which is present in openstack-zuul-jobs.
- # We need to take care of this branch variant and python version while
- # migrating these jobs to zuulv3.
- branches: ^(?!(driverfixes|stable/(ocata|pike|queens|rocky|stein|train))).*$
- run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml
- post-run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml
- timeout: 10800
+ name: cinder-grenade-mn-sub-volbak
+ parent: grenade-multinode
+ description: |
+ Cinder grenade multinode job where cinder-backup and cinder-volume
+ only run on the subnode.
+ It tests the new c-api, c-sch (on the controller node)
+ with the old c-bak, c-vol (on the subnode).
+ Former names for this job were:
+ * cinder-grenade-dsvm-mn-sub-volbak
+ * legacy-grenade-dsvm-cinder-mn-sub-volbak
required-projects:
- - openstack/grenade
- - openstack/devstack-gate
- - openstack/cinder
+ - opendev.org/openstack/grenade
+ - opendev.org/openstack/cinder
+ vars:
+ devstack_services:
+ c-bak: false
+ c-vol: false
+ group-vars:
+ subnode:
+ devstack_services:
+ c-bak: true
+ c-vol: true
- job:
- name: cinder-grenade-dsvm-mn-sub-volschbak
- parent: legacy-dsvm-base-multinode
- # Old name: legacy-grenade-dsvm-cinder-mn-sub-volschbak
- # This is py3 version for ussuri onwards rest all branch needs to be py2
- # version which is present in openstack-zuul-jobs.
- # We need to take care of this branch variant and python version while
- # migrating these jobs to zuulv3.
- branches: ^(?!(driverfixes|stable/(ocata|pike|queens|rocky|stein|train))).*$
- run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml
- post-run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml
- timeout: 10800
+ name: cinder-grenade-mn-sub-volschbak
+ parent: grenade-multinode
+ description: |
+ Cinder grenade multinode job where cinder-backup, cinder-volume
+ and cinder-scheduler only run on the subnode.
+ It tests the new c-api (on the controller node)
+ with the old c-bak, c-sch, c-vol (on the subnode).
+ Former names for this job were:
+ * cinder-grenade-dsvm-mn-sub-volschbak
+ * legacy-grenade-dsvm-cinder-mn-sub-volschbak
required-projects:
- - openstack/grenade
- - openstack/devstack-gate
- - openstack/cinder
+ - opendev.org/openstack/grenade
+ - opendev.org/openstack/cinder
+ vars:
+ devstack_services:
+ c-bak: false
+ c-sch: false
+ c-vol: false
+ group-vars:
+ subnode:
+ devstack_services:
+ c-bak: true
+ c-sch: true
+ c-vol: true
- job:
name: cinder-tempest-lvm-multibackend
diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml
deleted file mode 100644
index e07f5510a..000000000
--- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-- 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/grenade-dsvm-cinder-mn-sub-bak/run.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml
deleted file mode 100644
index f8ba33b1b..000000000
--- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-- hosts: primary
- name: Autoconverted job legacy-grenade-dsvm-cinder-mn-sub-bak from old job gate-grenade-dsvm-cinder-mn-sub-bak-ubuntu-xenial-nv
- 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/devstack-gate
- dest: devstack-gate
- EOF
- /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
- https://opendev.org \
- openstack/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_GRENADE=pullup
- export DEVSTACK_GATE_USE_PYTHON3=True
- export PROJECTS="openstack/grenade $PROJECTS"
- export BRANCH_OVERRIDE=default
- if [ "$BRANCH_OVERRIDE" != "default" ] ; then
- export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
- fi
- export DEVSTACK_GATE_TOPOLOGY="multinode"
- export SERVICES=bak
- if [ "$SERVICES" == "bak" ] ; then
- export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_BAK=1
- elif [ "$SERVICES" == "volschbak" ] ; then
- export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_VOLSCHBAK=1
- else
- export DEVSTACK_GATE_CINDER_MN_GRENADE=1
- 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 }}'
diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml
deleted file mode 100644
index e07f5510a..000000000
--- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-- 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/grenade-dsvm-cinder-mn-sub-volbak/run.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml
deleted file mode 100644
index b06abba60..000000000
--- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-- hosts: primary
- name: Autoconverted job legacy-grenade-dsvm-cinder-mn-sub-volbak from old job gate-grenade-dsvm-cinder-mn-sub-volbak-ubuntu-xenial
- 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/devstack-gate
- dest: devstack-gate
- EOF
- /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
- https://opendev.org \
- openstack/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_GRENADE=pullup
- export DEVSTACK_GATE_USE_PYTHON3=True
- export PROJECTS="openstack/grenade $PROJECTS"
- export BRANCH_OVERRIDE=default
- if [ "$BRANCH_OVERRIDE" != "default" ] ; then
- export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
- fi
- export DEVSTACK_GATE_TOPOLOGY="multinode"
- export SERVICES=volbak
- if [ "$SERVICES" == "bak" ] ; then
- export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_BAK=1
- elif [ "$SERVICES" == "volschbak" ] ; then
- export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_VOLSCHBAK=1
- else
- export DEVSTACK_GATE_CINDER_MN_GRENADE=1
- 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 }}'
diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml
deleted file mode 100644
index e07f5510a..000000000
--- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-- 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/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml
deleted file mode 100644
index 476fef85f..000000000
--- a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml
+++ /dev/null
@@ -1,54 +0,0 @@
-- hosts: primary
- name: Autoconverted job legacy-grenade-dsvm-cinder-mn-sub-volschbak from old job
- gate-grenade-dsvm-cinder-mn-sub-volschbak-ubuntu-xenial-nv
- 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/devstack-gate
- dest: devstack-gate
- EOF
- /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
- https://opendev.org \
- openstack/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_GRENADE=pullup
- export DEVSTACK_GATE_USE_PYTHON3=True
- export PROJECTS="openstack/grenade $PROJECTS"
- export BRANCH_OVERRIDE=default
- if [ "$BRANCH_OVERRIDE" != "default" ] ; then
- export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
- fi
- export DEVSTACK_GATE_TOPOLOGY="multinode"
- export SERVICES=volschbak
- if [ "$SERVICES" == "bak" ] ; then
- export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_BAK=1
- elif [ "$SERVICES" == "volschbak" ] ; then
- export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_VOLSCHBAK=1
- else
- export DEVSTACK_GATE_CINDER_MN_GRENADE=1
- 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 }}'