Browse code

Make devstack run on focal (Ubuntu LTS 20.04)

- Add a nodeset and a platform job
- Drop uwsgi-py2 pkg that no longer exists
- Blacklist tests that are currently failing

Change-Id: Ib4416dc2f5e003fd770f5240a8f78213c56af8e6

Dr. Jens Harbott authored on 2020/02/13 18:38:35
Showing 3 changed files
... ...
@@ -9,6 +9,16 @@
9 9
           - controller
10 10
 
11 11
 - nodeset:
12
+    name: openstack-single-node-focal
13
+    nodes:
14
+      - name: controller
15
+        label: ubuntu-focal
16
+    groups:
17
+      - name: tempest
18
+        nodes:
19
+          - controller
20
+
21
+- nodeset:
12 22
     name: openstack-single-node-bionic
13 23
     nodes:
14 24
       - name: controller
... ...
@@ -512,6 +522,14 @@
512 512
     parent: tempest-full-py3
513 513
     description: openSUSE 15.x platform test
514 514
     nodeset: devstack-single-node-opensuse-15
515
+
516
+- job:
517
+    name: devstack-platform-focal
518
+    parent: tempest-full-py3
519
+    description: Ubuntu Focal Fossa platform test
520
+    nodeset: openstack-single-node-focal
521
+    vars:
522
+      tempest_black_regex: "(tempest.api.compute.volumes.test_attach_volume.AttachVolumeMultiAttachTest.test_resize_server_with_multiattached_volume|tempest.api.compute.servers.test_server_rescue_negative.ServerRescueNegativeTestJSON|tempest.api.compute.servers.test_server_rescue.ServerStableDeviceRescueTest.test_stable_device_rescue_disk_virtio_with_volume_attached)"
515 523
     voting: false
516 524
 
517 525
 - job:
... ...
@@ -605,6 +623,7 @@
605 605
         - devstack-platform-opensuse-15
606 606
         - devstack-platform-fedora-latest
607 607
         - devstack-platform-centos-8
608
+        - devstack-platform-focal
608 609
         - devstack-multinode
609 610
         - devstack-unit-tests
610 611
         - openstack-tox-bashate
... ...
@@ -96,10 +96,11 @@ function install_apache_uwsgi {
96 96
     fi
97 97
 
98 98
     if is_ubuntu; then
99
-        install_package uwsgi \
100
-                        uwsgi-plugin-python \
101
-                        uwsgi-plugin-python3 \
102
-                        libapache2-mod-proxy-uwsgi
99
+        local pkg_list="uwsgi uwsgi-plugin-python3 libapache2-mod-proxy-uwsgi"
100
+        if "$DISTRO" == 'bionic'; then
101
+            pkg_list="${pkg_list} uwsgi-plugin-python"
102
+        fi
103
+        install_package ${pkg_list}
103 104
     elif is_fedora; then
104 105
         # Note httpd comes with mod_proxy_uwsgi and it is loaded by
105 106
         # default; the mod_proxy_uwsgi package actually conflicts now.
... ...
@@ -221,7 +221,7 @@ write_devstack_version
221 221
 
222 222
 # Warn users who aren't on an explicitly supported distro, but allow them to
223 223
 # override check and attempt installation with ``FORCE=yes ./stack``
224
-if [[ ! ${DISTRO} =~ (bionic|stretch|jessie|f30|f31|opensuse-15.0|opensuse-15.1|opensuse-tumbleweed|rhel8) ]]; then
224
+if [[ ! ${DISTRO} =~ (bionic|focal|stretch|jessie|f30|f31|opensuse-15.0|opensuse-15.1|opensuse-tumbleweed|rhel8) ]]; then
225 225
     echo "WARNING: this script has not been tested on $DISTRO"
226 226
     if [[ "$FORCE" != "yes" ]]; then
227 227
         die $LINENO "If you wish to run this script anyway run with FORCE=yes"