From 84068e1526761de7fab1ddd946c3f6f2bdaf7b6a Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Mon, 15 Jan 2018 13:24:59 -0500 Subject: [PATCH] Allow all versions of Fedora This assumes that nobody is using this plugin on outdated versions of Fedora. Also don't recommend an outdated Fedora. Change-Id: I858b78ee1a02e98a5bf4545ee315328e3fab0010 --- devstack/lib/ceph | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/devstack/lib/ceph b/devstack/lib/ceph index 73405fe..9dc805c 100644 --- a/devstack/lib/ceph +++ b/devstack/lib/ceph @@ -264,10 +264,15 @@ function _undefine_virsh_secret { # check_os_support_ceph() - Check if the OS provides a decent version of Ceph function check_os_support_ceph { - if [[ ! ${DISTRO} =~ (trusty|xenial|jessie|sid|f24|f25|rhel7) ]]; then + if [[ ! ${DISTRO} =~ f[0-9][0-9] ]]; then + # Assume all versions of Fedora are fine as of 2018. + return + fi + + if [[ ! ${DISTRO} =~ (trusty|xenial|jessie|sid|rhel7) ]]; then echo "WARNING: your distro $DISTRO does not provide \ (at least) the Firefly release. \ - Please use Ubuntu Trusty or Fedora 24 (and higher)" + Please use Ubuntu Trusty or Fedora 27 (and higher)" if [[ "$FORCE_CEPH_INSTALL" != "yes" ]]; then die $LINENO "If you wish to install Ceph on this distribution \ anyway run with FORCE_CEPH_INSTALL=yes, \