]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
suite: append flavor key only if kernel version is specified 524/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 17 Jun 2015 11:29:40 +0000 (14:29 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 17 Jun 2015 11:29:40 +0000 (14:29 +0300)
commit7a1f89483241c4ac0df80041839ff7b8ba221da4
tree9c8ff96f6829b9b55b3a53a140187facec4b1964
parent5106a19cf2df034ad40678421f9e73d42225b277
suite: append flavor key only if kernel version is specified

There are three cases: a) don't install a kernel, b) install a distro
kernel or c) install a specified version.  Appending 'flavor: basic' to
kernel task config in the former two cases is wrong.  In case a)
appending flavor is not only bogus but also leads to bug: a { 'kernel':
{ 'flavor': 'basic' } } config confuses kernel task and it installs
a default version of the kernel (branch master) on all remotes when the
user's intent was to not install any kernel.  As for case b), distro
kernels are built by distros and don't have flavors.

Fix this by appending 'flavor: basic' to kernel task config only in
case c).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
teuthology/suite.py