Browse Source

Merge "Add Ubuntu Bionic CephFS jobs"

Zuul 3 months ago
parent
commit
e96e46d0d8

+ 33
- 2
.zuul.yaml View File

@@ -24,9 +24,9 @@
24 24
             voting: false
25 25
         - manila-tempest-dsvm-scenario:
26 26
             voting: false
27
-        - manila-tempest-minimal-dsvm-cephfs-native-centos-7:
27
+        - manila-tempest-minimal-dsvm-cephfs-native:
28 28
             voting: false
29
-        - manila-tempest-minimal-dsvm-cephfs-nfs-centos-7:
29
+        - manila-tempest-minimal-dsvm-cephfs-nfs:
30 30
             voting: false
31 31
         - manila-tempest-minimal-dsvm-dummy
32 32
         - manila-tempest-minimal-dsvm-lvm
@@ -52,6 +52,8 @@
52 52
         - manila-tempest-dsvm-glusterfs-native
53 53
         - manila-tempest-dsvm-glusterfs-nfs-heketi
54 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 58
 - job:
57 59
     name: manila-grenade
@@ -290,6 +292,20 @@
290 292
       - openstack/python-manilaclient
291 293
       - openstack/tempest
292 294
 
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
+
293 309
 - job:
294 310
     name: manila-tempest-minimal-dsvm-cephfs-nfs-centos-7
295 311
     parent: manila-tempest-base
@@ -305,6 +321,21 @@
305 321
       - openstack/python-manilaclient
306 322
       - openstack/tempest
307 323
 
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
+
308 339
 - job:
309 340
     name: manila-tempest-minimal-dsvm-dummy
310 341
     parent: manila-tempest-base

+ 15
- 0
playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/post.yaml View File

@@ -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

+ 96
- 0
playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native/run.yaml View File

@@ -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 }}'

+ 15
- 0
playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/post.yaml View File

@@ -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

+ 96
- 0
playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs/run.yaml View File

@@ -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 }}'

Loading…
Cancel
Save