From: Ilya Dryomov Date: Wed, 19 Jul 2017 13:00:14 +0000 (+0200) Subject: packaging: pass --force-yes to allow for unsigned deb packages X-Git-Tag: 1.1.0~403^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1094%2Fhead;p=teuthology.git 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 --- 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' ]