From 9f1f729d6053b2f9fd92e3ff28aa6df3ec6678fe Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Tue, 17 Oct 2017 09:43:46 -0400 Subject: [PATCH] Conditionally install python3 packages We should only attempt to install the python3 packages if we're running in a python3 environment. Change-Id: Ic5e3046917a51d884091b449a433259c049ac016 Closes-Bug: #1724249 --- devstack/lib/ceph | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devstack/lib/ceph b/devstack/lib/ceph index 9da2c0b..73405fe 100644 --- a/devstack/lib/ceph +++ b/devstack/lib/ceph @@ -831,7 +831,10 @@ function install_ceph_remote { function install_ceph { if is_ubuntu; then - CEPH_PACKAGES="ceph libnss3-tools python3-rados python3-rbd" + CEPH_PACKAGES="ceph libnss3-tools" + if python3_enabled; then + CEPH_PACKAGES="$CEPH_PACKAGES python3-rados python3-rbd" + fi install_package software-properties-common if is_ceph_enabled_for_service manila; then