Browse code

Merge "Drop support for "kvmibm" distro"

Zuul authored on 2017/11/15 09:05:24
Showing 3 changed files
... ...
@@ -386,8 +386,6 @@ function GetDistro {
386 386
         DISTRO="rhel${os_RELEASE::1}"
387 387
     elif [[ "$os_VENDOR" =~ (XenServer) ]]; then
388 388
         DISTRO="xs${os_RELEASE%.*}"
389
-    elif [[ "$os_VENDOR" =~ (kvmibm) ]]; then
390
-        DISTRO="${os_VENDOR}${os_RELEASE::1}"
391 389
     else
392 390
         # We can't make a good choice here.  Setting a sensible DISTRO
393 391
         # is part of the problem, but not the major issue -- we really
... ...
@@ -441,7 +439,7 @@ function is_fedora {
441 441
     [ "$os_VENDOR" = "Fedora" ] || [ "$os_VENDOR" = "Red Hat" ] || \
442 442
         [ "$os_VENDOR" = "RedHatEnterpriseServer" ] || \
443 443
         [ "$os_VENDOR" = "CentOS" ] || [ "$os_VENDOR" = "OracleServer" ] || \
444
-        [ "$os_VENDOR" = "Virtuozzo" ] || [ "$os_VENDOR" = "kvmibm" ]
444
+        [ "$os_VENDOR" = "Virtuozzo" ]
445 445
 }
446 446
 
447 447
 
... ...
@@ -72,11 +72,6 @@ function install_libvirt {
72 72
         pip_install_gr libvirt-python
73 73
         #pip_install_gr <there-si-no-guestfs-in-pypi>
74 74
     elif is_fedora || is_suse; then
75
-        # On "KVM for IBM z Systems", kvm does not have its own package
76
-        if [[ ! ${DISTRO} =~ "kvmibm1" ]]; then
77
-            install_package qemu-kvm
78
-        fi
79
-
80 75
         install_package libvirt libvirt-devel
81 76
         pip_uninstall libvirt-python
82 77
         pip_install_gr libvirt-python
... ...
@@ -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} =~ (xenial|yakkety|zesty|stretch|jessie|f24|f25|f26|opensuse-42.2|opensuse-42.3|rhel7|kvmibm1) ]]; then
224
+if [[ ! ${DISTRO} =~ (xenial|yakkety|zesty|stretch|jessie|f24|f25|f26|opensuse-42.2|opensuse-42.3|rhel7) ]]; 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"