From de8d223fc394361790c053dff71f88458122c8f8 Mon Sep 17 00:00:00 2001 From: Pushkar Umaranikar Date: Thu, 7 Jul 2016 20:42:22 +0000 Subject: [PATCH] lxd installation with devstack on ubuntu 14.04 lxd installation with devstack on ubuntu 14.04 requires ubuntu-lxc PPA. We can also install it using trusty-backports. otherwise devstack installation throws error saying unable to locate package lxd. This change is about adding ubuntu-lxc PPA before we start installing lxd. It also includes uninstalling default reuqests and urllib3 python packages in Ubuntu 14.04 which causes version conflicts in devstack installtion. Change-Id: I254d48db09b6bce6befdd94cd4ccd7b95bdf029b --- devstack/nova-lxd-functions.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devstack/nova-lxd-functions.sh b/devstack/nova-lxd-functions.sh index 7f31325f..2911ce69 100644 --- a/devstack/nova-lxd-functions.sh +++ b/devstack/nova-lxd-functions.sh @@ -12,6 +12,9 @@ function install_pylxd { # Install the latest pylxd from git echo_summary "Installing pylxd" git_clone_by_name pylxd + if [ "$DISTRO" == "trusty" ]; then + uninstall_package python-requests python-urllib3 + fi setup_dev_lib "pylxd" echo_summary "Pylxd install complete" } @@ -24,11 +27,14 @@ function cleanup_pylxd { function install_lxd { echo_summary "Checing LXD installation" if is_ubuntu; then + if [ "$DISTRO" == "trusty" ]; then + sudo add-apt-repository -y ppa:ubuntu-lxc/lxd-stable + fi if ! ( is_package_installed lxd ); then install_package lxd fi - add_user_to_group $STACK_USER $LXD_GROUP + add_user_to_group $STACK_USER $LXD_GROUP fi echo_summary "Installing LXD" }