From d126b3f92e56e9c6bcaf7881ff8df19a93ec6f0a Mon Sep 17 00:00:00 2001 From: Markus Zoeller Date: Thu, 31 Mar 2016 11:49:21 +0200 Subject: [PATCH] fix "add-apt-repository: command not found" error For the "happy path" to makes things work, we use the Ubuntu Cloud Archives. This repository has to be added. The command to do that is not available on the gate test nodes [1]. This change installs a package which brings the command "add-apt-repository" with it. References: [1] https://github.com/openstack-infra/project-config/commit/ f90d35885e1143e5a1b67804735fd0c2f294457c Change-Id: I608c8a35297765283a61ddfadf32d8191186d6c3 --- devstack/lib/libvirt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devstack/lib/libvirt b/devstack/lib/libvirt index 2b6189d..36af970 100755 --- a/devstack/lib/libvirt +++ b/devstack/lib/libvirt @@ -13,6 +13,9 @@ set +o xtrace # Uses globals ``REQUIREMENTS_DIR`` # Uses functions ``get_from_global_requirements`` function pre_install_libvirt_ubuntu { + # NOTE(markus_z): The command "add-apt-repository" is not available + # in the test nodes. We add it here: + sudo apt-get install -y software-properties-common # We don't use install_package as we know we're on ubuntu and we do a few # "special" things to make the plugin "just work" sudo add-apt-repository -y cloud-archive:liberty