From d39106d45527198a65ff3d182808647dd9239617 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Wed, 19 Jul 2017 15:00:14 +0200 Subject: [PATCH] packaging: pass --force-yes to allow for unsigned deb packages rbd_fio task has been switched to {install,remove}_package(). This commit mirrors ceph.git commit d14f2da437a3 ("task/rbd_fio: allow for unsigned packages"): "Similar to what the teuthology install.py task does, add --force-yes to the apt-get install so that unsigned packages are successfully installed. It is needed when the buildpackages task is used to create packages on the fly." Signed-off-by: Ilya Dryomov --- teuthology/packaging.py | 1 + teuthology/test/test_packaging.py | 1 + 2 files changed, 2 insertions(+) diff --git a/teuthology/packaging.py b/teuthology/packaging.py index 6b5c15d6a..a95b5ccb8 100644 --- a/teuthology/packaging.py +++ b/teuthology/packaging.py @@ -74,6 +74,7 @@ def install_package(package, remote): '-E', 'apt-get', '-y', + '--force-yes', 'install', '{package}'.format(package=package)] elif flavor == 'rpm': diff --git a/teuthology/test/test_packaging.py b/teuthology/test/test_packaging.py index fdb0b37d6..9478a50d7 100644 --- a/teuthology/test/test_packaging.py +++ b/teuthology/test/test_packaging.py @@ -68,6 +68,7 @@ class TestPackaging(object): '-E', 'apt-get', '-y', + '--force-yes', 'install', 'apache2' ] -- 2.47.3