manila: install Ceph for Ubuntu trusty or xenial
When setting up Manila with CephFS in Ubuntu machines, don't always install Ceph packages for xenial. Allow installation of Ceph packages for trusty in Ubuntu trusty machines. Change-Id: I70d26a3db2034331c8101795b432831718a15273
This commit is contained in:
2 changed files with 5 additions and 2 deletions
@@ -68,7 +68,7 @@ This plugin also gets used to configure Ceph as the storage backend for the upst
* Tempest test failures when using RGW as swift endpoint
* Tempest fails due to verify-tempest-config erroring out, when using RGW as swift endpoint
* Patch sent @ https://review.openstack.org/#/c/264179/
* Manila with CephFS - for Ubuntu, support only for trusty and xenial
# TODOs
@@ -800,12 +800,15 @@ function install_ceph {
install_package software-properties-common
if is_ceph_enabled_for_service manila; then
if ! [[ $os_CODENAME =~ (xenial|trusty) ]]; then
die $LINENO "Need Ubuntu trusty or xenial to setup Manila with CephFS"
fi
# 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
curl -L https://shaman.ceph.com/api/repos/ceph/jewel/latest/ubuntu/xenial/repo | \
curl -L https://shaman.ceph.com/api/repos/ceph/jewel/latest/ubuntu/$os_CODENAME/repo | \
sudo tee /etc/apt/sources.list.d/ceph.list
CEPH_PACKAGES="${CEPH_PACKAGES} ceph-mds libcephfs1"
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.