]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
packaging: pass --force-yes to allow for unsigned deb packages 1094/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 19 Jul 2017 13:00:14 +0000 (15:00 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 19 Jul 2017 15:33:19 +0000 (17:33 +0200)
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 <idryomov@gmail.com>
teuthology/packaging.py
teuthology/test/test_packaging.py

index 6b5c15d6a5177397772eb9fa94f0416cb68821d1..a95b5ccb8373c3b49c66ab7151cc6a2eff21f7f6 100644 (file)
@@ -74,6 +74,7 @@ def install_package(package, remote):
                   '-E',
                   'apt-get',
                   '-y',
+                  '--force-yes',
                   'install',
                   '{package}'.format(package=package)]
     elif flavor == 'rpm':
index fdb0b37d639948e0bc6a44882695cb627d33b189..9478a50d797284fcd70c686ce25fcb3f6228740a 100644 (file)
@@ -68,6 +68,7 @@ class TestPackaging(object):
             '-E',
             'apt-get',
             '-y',
+            '--force-yes',
             'install',
             'apache2'
         ]