]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
task/install: run 'yum ... install' the right way 1229/head
authorKefu Chai <kchai@redhat.com>
Thu, 25 Oct 2018 11:25:53 +0000 (19:25 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Oct 2018 11:25:54 +0000 (19:25 +0800)
commit6e7a8664805549174b631152ec2a32258569e16d
treea92546a089f97d98c77ebf09f6753ab03763b7b6
parent62bd759538a962015ee0d0cf00f252c84aac2b7b
task/install: run 'yum ... install' the right way

after cd1cef6, we install rpm packages like

2018-10-25T06:31:33.578 INFO:teuthology.orchestra.run.smithi076:Running:
"sudo yum -y '' install '' '' libcephfs_jni1"
...
2018-10-25T06:31:34.180
INFO:teuthology.orchestra.run.smithi076.stderr:No such command: . Please
use /bin/yum --help
2018-10-25T06:31:34.193 DEBUG:teuthology.orchestra.run:got remote
process result: 1

which fails the qa run on rpm based distros.

in this change, the command line args are passed in itertools.chain(),
because orchestra.run.quote() takes an iterable which contains string or
Raw.

Signed-off-by: Kefu Chai <kchai@redhat.com>
teuthology/task/install/rpm.py