From d7878f2cba16a46077a0ca8f7bc6759d1ccfdc57 Mon Sep 17 00:00:00 2001 From: Tom Barron Date: Fri, 11 Jan 2019 08:19:31 -0500 Subject: [PATCH] Use shaman again for manila Builds for ubuntu bionic are working now. We need newer features not yet packaged for ubuntu bionic for python3 and ceph volume chmod support. Change-Id: I20fa99c6f6da7d4042b50020ab0e9f34e7ac2de6 --- devstack/lib/ceph | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) mode change 100644 => 100755 devstack/lib/ceph diff --git a/devstack/lib/ceph b/devstack/lib/ceph old mode 100644 new mode 100755 index 79e97c4..bd44104 --- a/devstack/lib/ceph +++ b/devstack/lib/ceph @@ -863,7 +863,7 @@ function install_ceph_remote { # - package_manager: apt or yum # - ceph_release: jewel, luminous, ... # - distro_type: centos, ubuntu -# - distro_release: 7, xenial +# - distro_release: 7, xenial, bionic # - repo_type: latest, stable (only latest is supported right now) function configure_repo_ceph { local package_manager="$1" @@ -891,7 +891,7 @@ function configure_repo_ceph { # - package_manager: apt or yum # - flavor: ceph_luminous, ceph_master, ... # - distro_type: centos, ubuntu -# - distro_release: 7, xenial +# - distro_release: 7, xenial, bionic # - repo_type: latest (only latest is supported right now) function configure_repo_nfsganesha { local package_manager="$1" @@ -914,20 +914,18 @@ function configure_repo_nfsganesha { } function setup_packages_for_manila_on_ubuntu { + # The 'apt' package manager needs the following package to access + # HTTPS enabled repositories such as the Ceph repos hosted by the + # shaman/chacra system. + install_package apt-transport-https + if [ $MANILA_CEPH_DRIVER == 'cephfsnfs' ]; then if ! [[ $os_CODENAME =~ (xenial|bionic) ]]; then die $LINENO "Need Ubuntu xenial or newer to setup Manila with CephFS NFS-Ganesha driver" fi + configure_repo_ceph "apt" "luminous" "ubuntu" "$os_CODENAME" + configure_repo_nfsganesha "apt" "ceph_luminous" "ubuntu" "$os_CODENAME" CEPH_PACKAGES="${CEPH_PACKAGES} ceph-mds libcephfs2 nfs-ganesha nfs-ganesha-ceph" - # bionic repos are all there already - if [[ $os_CODENAME =~ xenial ]]; then - # The 'apt' package manager needs the following package to access - # HTTPS enabled repositories such as the Ceph repos hosted by the - # shaman/chacra system. - install_package apt-transport-https - configure_repo_ceph "apt" "luminous" "ubuntu" "$os_CODENAME" - configure_repo_nfsganesha "apt" "ceph_luminous" "ubuntu" "$os_CODENAME" - fi if python3_enabled; then CEPH_PACKAGES="${CEPH_PACKAGES} python3-cephfs" fi @@ -937,13 +935,10 @@ function setup_packages_for_manila_on_ubuntu { fi if [[ $os_CODENAME =~ (xenial|trusty) ]]; then CEPH_PACKAGES="${CEPH_PACKAGES} ceph-mds libcephfs1" - # The 'apt' package manager needs the following package to access - # HTTPS enabled repositories such as the Ceph repos hosted by the - # shaman/chacra system. - install_package apt-transport-https configure_repo_ceph "apt" "jewel" "ubuntu" "$os_CODENAME" - else # bionic repos are already there in the distro + else CEPH_PACKAGES="${CEPH_PACKAGES} ceph-mds libcephfs2" + configure_repo_ceph "apt" "luminous" "ubuntu" "$os_CODENAME" fi if python3_enabled; then CEPH_PACKAGES="${CEPH_PACKAGES} python3-cephfs"