]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
kernel: don't use GitbuilderProject's _get_config_value_for_remote() 945/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 29 Aug 2016 16:47:31 +0000 (18:47 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 30 Aug 2016 11:48:42 +0000 (13:48 +0200)
commitf28525a7ce9a89e4201f2e7fb15397b4f8a62f05
tree3fafe4e29c3765c0da769ce054fc1949d5676dd6
parent863b23da8df4697fd2d3f9071aa1ccd8029e032f
kernel: don't use GitbuilderProject's _get_config_value_for_remote()

Commit a01f1e169074 ("kernel: use packaging.GitbuilderProject to talk
with gitbuilder.") switched the kernel task to GitbuilderProject, which
parses the config in an attempt to pick the "best" config value for
a given remote.  However, the kernel task does its own parsing and
supports more than GitbuilderProject currently handles, e.g.:

  kernel:
    client:
      branch: testing

The above got broken by passing the entire 'kernel:' stanza to
GitbuilderProject: _get_uri_reference() chokes on "client" and defaults
to master branch.  It also effectively disables 'overrides:' support,
used by krbd:unmap suite.  Bring these back by passing in only the role
config in task().

In download_kernel(), we already have the sha1 and just need to get the
url, so construct a {'sha1': <sha>} dict on the fly.

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