[kteam-tools][PATCH 0/2] fixes for shankbot crash with -azure

Kleber Sacilotto de Souza kleber.souza at canonical.com
Thu May 18 15:13:22 UTC 2017


Shankbot is crashing because of the -azure kernel. It's happening basically
because the -azure kernel is a backport from zesty to xenial, but the package
version doesn't have the series version as the other backports (e.g. '~17.10').
That causes shankbot to think that the -azure kernel is for zesty, but it
doesn't find it under zesty on the kernel-series-info.yaml file.

So it explodes later down on:

Traceback (most recent call last):
  File "./stable/swm", line 79, in <module>
    retval = WorkflowManager(args).manage()
  File "/home/kleber/devel/git/kteam-tools/stable/wfl/manager.py", line 105, in manage
    s.crank(bugid)
  File "/home/kleber/devel/git/kteam-tools/stable/wfl/manager.py", line 141, in crank
    modified = s.process_bug_tasks(bug)
  File "/home/kleber/devel/git/kteam-tools/stable/wfl/manager.py", line 187, in process_bug_tasks
    if cls.jumper[task.status]() and not s.args.dryrun:
  File "/home/kleber/devel/git/kteam-tools/stable/wfl/wft/prepare_package.py", line 67, in _common
    if s.bug.uploaded(pkg):
  File "/home/kleber/devel/git/kteam-tools/stable/wfl/bug.py", line 433, in uploaded
    for pocket in bi[pkg]:
KeyError: 'meta'

The first patch updates the current kernel version for artful on the yaml file,
this is also needed because Ubuntu.series_name() can also return 'artful'
sometimes.

Second patch is to try to handle the -azure case as best as possible,
it should work even if it gets backported for another series in the
future.


Kleber Sacilotto de Souza (2):
  kernel-series-info.yaml: update artful kernel version
  ktl/ubuntu.py: fix series lookup for -azure kernels

 ktl/kernel-series-info.yaml |  2 +-
 ktl/ubuntu.py               | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

-- 
2.11.0





More information about the kernel-team mailing list