summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Barron <tpb@dyncloud.net>2018-12-11 07:56:34 -0500
committerTom Barron <tpb@dyncloud.net>2019-01-02 14:59:54 -0600
commit859d5ed80d26ea356af7d2d7545b273f212aa1e4 (patch)
treecc751d99abe1b6fa6473e83164427658f8e0282d
parentd144bf7593241ada3982faa9fdb60279e5d7309c (diff)
Add Ubuntu Bionic CephFS jobs
We need these for python3 support since the CentOS jobs will not run correctly under python3. Depends-on: https://review.openstack.org/#/c/627037/ Change-Id: I0e4baaaca5046f9c0ee32cf3de78133f743fd66d
Notes
Notes (review): Code-Review+2: Goutham Pacha Ravi <gouthampravi@gmail.com> Code-Review+2: Thomas Bechtold <tbechtold@suse.com> Workflow+1: Thomas Bechtold <tbechtold@suse.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 04 Jan 2019 14:48:15 +0000 Reviewed-on: https://review.openstack.org/624467 Project: openstack/manila Branch: refs/heads/master
-rw-r--r--.zuul.yaml35
-rw-r--r--playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/run.yaml96
-rw-r--r--playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/post.yaml15
-rw-r--r--playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/run.yaml96
5 files changed, 255 insertions, 2 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index be3a789..f055579 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -24,9 +24,9 @@
24 voting: false 24 voting: false
25 - manila-tempest-dsvm-scenario: 25 - manila-tempest-dsvm-scenario:
26 voting: false 26 voting: false
27 - manila-tempest-minimal-dsvm-cephfs-native-centos-7: 27 - manila-tempest-minimal-dsvm-cephfs-native:
28 voting: false 28 voting: false
29 - manila-tempest-minimal-dsvm-cephfs-nfs-centos-7: 29 - manila-tempest-minimal-dsvm-cephfs-nfs:
30 voting: false 30 voting: false
31 - manila-tempest-minimal-dsvm-dummy 31 - manila-tempest-minimal-dsvm-dummy
32 - manila-tempest-minimal-dsvm-lvm 32 - manila-tempest-minimal-dsvm-lvm
@@ -52,6 +52,8 @@
52 - manila-tempest-dsvm-glusterfs-native 52 - manila-tempest-dsvm-glusterfs-native
53 - manila-tempest-dsvm-glusterfs-nfs-heketi 53 - manila-tempest-dsvm-glusterfs-nfs-heketi
54 - manila-tempest-dsvm-glusterfs-native-heketi 54 - manila-tempest-dsvm-glusterfs-native-heketi
55 - manila-tempest-minimal-dsvm-cephfs-native-centos-7
56 - manila-tempest-minimal-dsvm-cephfs-nfs-centos-7
55 57
56- job: 58- job:
57 name: manila-grenade 59 name: manila-grenade
@@ -291,6 +293,20 @@
291 - openstack/tempest 293 - openstack/tempest
292 294
293- job: 295- job:
296 name: manila-tempest-minimal-dsvm-cephfs-native
297 parent: manila-tempest-base
298 run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/run.yaml
299 post-run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/post.yaml
300 timeout: 5400
301 required-projects:
302 - openstack-infra/devstack-gate
303 - openstack/devstack-plugin-ceph
304 - openstack/manila
305 - openstack/manila-tempest-plugin
306 - openstack/python-manilaclient
307 - openstack/tempest
308
309- job:
294 name: manila-tempest-minimal-dsvm-cephfs-nfs-centos-7 310 name: manila-tempest-minimal-dsvm-cephfs-nfs-centos-7
295 parent: manila-tempest-base 311 parent: manila-tempest-base
296 run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml 312 run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml
@@ -306,6 +322,21 @@
306 - openstack/tempest 322 - openstack/tempest
307 323
308- job: 324- job:
325 name: manila-tempest-minimal-dsvm-cephfs-nfs
326 parent: manila-tempest-base
327 run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/run.yaml
328 post-run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/post.yaml
329 timeout: 5400
330 required-projects:
331 - openstack-infra/devstack-gate
332 - openstack/devstack-plugin-ceph
333 - openstack/manila
334 - openstack/manila-tempest-plugin
335 - openstack/python-manilaclient
336 - openstack/tempest
337
338
339- job:
309 name: manila-tempest-minimal-dsvm-dummy 340 name: manila-tempest-minimal-dsvm-dummy
310 parent: manila-tempest-base 341 parent: manila-tempest-base
311 run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml 342 run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml
diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/post.yaml
new file mode 100644
index 0000000..e9b9d7f
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/post.yaml
@@ -0,0 +1,15 @@
1- hosts: controller
2 tasks:
3
4 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5 synchronize:
6 src: '{{ ansible_user_dir }}/workspace/'
7 dest: '{{ zuul.executor.log_root }}'
8 mode: pull
9 copy_links: true
10 verify_host: true
11 rsync_opts:
12 - --include=/logs/**
13 - --include=*/
14 - --exclude=*
15 - --prune-empty-dirs
diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/run.yaml
new file mode 100644
index 0000000..424c45f
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/run.yaml
@@ -0,0 +1,96 @@
1- hosts: all
2 name: legacy-manila-tempest-minimal-dsvm-cephfs-native-ubuntu-bionic
3 tasks:
4
5 - name: Ensure legacy workspace directory
6 file:
7 path: '{{ ansible_user_dir }}/workspace'
8 state: directory
9
10 - shell:
11 cmd: |
12 set -e
13 set -x
14 cat > clonemap.yaml << EOF
15 clonemap:
16 - name: openstack-infra/devstack-gate
17 dest: devstack-gate
18 EOF
19 /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
20 git://git.openstack.org \
21 openstack-infra/devstack-gate
22 executable: /bin/bash
23 chdir: '{{ ansible_user_dir }}/workspace'
24 environment: '{{ zuul | zuul_legacy_vars }}'
25
26 - shell:
27 cmd: |
28 set -e
29 set -x
30 cat << 'EOF' >>"/tmp/dg-local.conf"
31 [[local|localrc]]
32 enable_plugin manila git://git.openstack.org/openstack/manila
33
34 enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph
35
36 # Enable CephFS as the backend for Manila.
37 ENABLE_CEPH_MANILA=True
38
39 # Disable Ceph as the storage backend for Nova.
40 ENABLE_CEPH_NOVA=False
41
42 # Disable Ceph as the storage backend for Glance.
43 ENABLE_CEPH_GLANCE=False
44
45 # Disable Ceph as the storage backend for Cinder.
46 ENABLE_CEPH_CINDER=False
47
48 # Disable Ceph as the storage backend for Cinder backup.
49 ENABLE_CEPH_C_BAK=False
50
51 # Set native or NFS variant of ceph driver
52 MANILA_CEPH_DRIVER=cephfsnative
53
54 EOF
55 executable: /bin/bash
56 chdir: '{{ ansible_user_dir }}/workspace'
57 environment: '{{ zuul | zuul_legacy_vars }}'
58
59 - shell:
60 cmd: |
61 set -e
62 set -x
63 export PYTHONUNBUFFERED=true
64 export DEVSTACK_GATE_NEUTRON=1
65 export ENABLED_SERVICES=tempest
66 export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS"
67 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
68 export KEEP_LOCALRC=1
69 export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
70 OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
71 export OVERRIDE_ENABLED_SERVICES
72
73 function pre_test_hook {
74 # Configure Manila with a CephFS Native or NFS driver backend.
75 # Refer to job-template pre_test_hook for more details on the
76 # arguments.
77 source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \
78 false cephfsnative singlebackend
79 }
80 export -f pre_test_hook
81
82 function post_test_hook {
83 # Configure and run Tempest API tests on Manila with a
84 # CephFSNative driver backend.
85 # Refer to job-template post_test_hook for more details on the
86 # arguments.
87 source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \
88 singlebackend cephfsnative api
89 }
90 export -f post_test_hook
91
92 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
93 ./safe-devstack-vm-gate-wrap.sh
94 executable: /bin/bash
95 chdir: '{{ ansible_user_dir }}/workspace'
96 environment: '{{ zuul | zuul_legacy_vars }}'
diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/post.yaml
new file mode 100644
index 0000000..e9b9d7f
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/post.yaml
@@ -0,0 +1,15 @@
1- hosts: controller
2 tasks:
3
4 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5 synchronize:
6 src: '{{ ansible_user_dir }}/workspace/'
7 dest: '{{ zuul.executor.log_root }}'
8 mode: pull
9 copy_links: true
10 verify_host: true
11 rsync_opts:
12 - --include=/logs/**
13 - --include=*/
14 - --exclude=*
15 - --prune-empty-dirs
diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/run.yaml
new file mode 100644
index 0000000..4b77e59
--- /dev/null
+++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/run.yaml
@@ -0,0 +1,96 @@
1- hosts: all
2 name: legacy-manila-tempest-minimal-dsvm-cephfs-nfs-ubuntu-bionic
3 tasks:
4
5 - name: Ensure legacy workspace directory
6 file:
7 path: '{{ ansible_user_dir }}/workspace'
8 state: directory
9
10 - shell:
11 cmd: |
12 set -e
13 set -x
14 cat > clonemap.yaml << EOF
15 clonemap:
16 - name: openstack-infra/devstack-gate
17 dest: devstack-gate
18 EOF
19 /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
20 git://git.openstack.org \
21 openstack-infra/devstack-gate
22 executable: /bin/bash
23 chdir: '{{ ansible_user_dir }}/workspace'
24 environment: '{{ zuul | zuul_legacy_vars }}'
25
26 - shell:
27 cmd: |
28 set -e
29 set -x
30 cat << 'EOF' >>"/tmp/dg-local.conf"
31 [[local|localrc]]
32 enable_plugin manila git://git.openstack.org/openstack/manila
33
34 enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph
35
36 # Enable CephFS as the backend for Manila.
37 ENABLE_CEPH_MANILA=True
38
39 # Disable Ceph as the storage backend for Nova.
40 ENABLE_CEPH_NOVA=False
41
42 # Disable Ceph as the storage backend for Glance.
43 ENABLE_CEPH_GLANCE=False
44
45 # Disable Ceph as the storage backend for Cinder.
46 ENABLE_CEPH_CINDER=False
47
48 # Disable Ceph as the storage backend for Cinder backup.
49 ENABLE_CEPH_C_BAK=False
50
51 # Set native or NFS variant of ceph driver
52 MANILA_CEPH_DRIVER=cephfsnfs
53
54 EOF
55 executable: /bin/bash
56 chdir: '{{ ansible_user_dir }}/workspace'
57 environment: '{{ zuul | zuul_legacy_vars }}'
58
59 - shell:
60 cmd: |
61 set -e
62 set -x
63 export PYTHONUNBUFFERED=true
64 export DEVSTACK_GATE_NEUTRON=1
65 export ENABLED_SERVICES=tempest
66 export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS"
67 export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient"
68 export KEEP_LOCALRC=1
69 export PROJECTS="openstack/manila-tempest-plugin $PROJECTS"
70 OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest
71 export OVERRIDE_ENABLED_SERVICES
72
73 function pre_test_hook {
74 # Configure Manila with a CephFS Native or NFS driver backend.
75 # Refer to job-template pre_test_hook for more details on the
76 # arguments.
77 source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \
78 false cephfsnfs singlebackend
79 }
80 export -f pre_test_hook
81
82 function post_test_hook {
83 # Configure and run Tempest API tests on Manila with a
84 # CephFSNative driver backend.
85 # Refer to job-template post_test_hook for more details on the
86 # arguments.
87 source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \
88 singlebackend cephfsnfs api
89 }
90 export -f post_test_hook
91
92 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
93 ./safe-devstack-vm-gate-wrap.sh
94 executable: /bin/bash
95 chdir: '{{ ansible_user_dir }}/workspace'
96 environment: '{{ zuul | zuul_legacy_vars }}'