#998 cancel build doesn't work for images
Closed: Fixed 3 years ago Opened 3 years ago by tkopecek.

Currently it seems, that get_buildroots ignore most non-rpm tasks. As result, notification will fail inside cancelBuild and build will not be cancelled

[Fri Jul 20 13:22:31 2018] [error] WARNING:koji.xmlrpc:Traceback (most recent call last):
[Fri Jul 20 13:22:31 2018] [error]   File "/usr/share/koji-hub/kojixmlrpc.py", line 228, in _wrap_handler
[Fri Jul 20 13:22:31 2018] [error]     response = handler(environ)
[Fri Jul 20 13:22:31 2018] [error]   File "/usr/share/koji-hub/kojixmlrpc.py", line 271, in handle_rpc
[Fri Jul 20 13:22:31 2018] [error]     return self._dispatch(method, params)
[Fri Jul 20 13:22:31 2018] [error]   File "/usr/share/koji-hub/kojixmlrpc.py", line 308, in _dispatch
[Fri Jul 20 13:22:31 2018] [error]     ret = koji.util.call_with_argcheck(func, params, opts)
[Fri Jul 20 13:22:31 2018] [error]   File "/usr/lib/python2.6/site-packages/koji/util.py", line 216, in call_with_argcheck
[Fri Jul 20 13:22:31 2018] [error]     return func(*args, **kwargs)
[Fri Jul 20 13:22:31 2018] [error]   File "/usr/share/koji-hub/kojihub.py", line 9591, in cancelBuild
[Fri Jul 20 13:22:31 2018] [error]     return cancel_build(build['id'])
[Fri Jul 20 13:22:31 2018] [error]   File "/usr/share/koji-hub/kojihub.py", line 7271, in cancel_build
[Fri Jul 20 13:22:31 2018] [error]     build_notification(task_id, build_id)
[Fri Jul 20 13:22:31 2018] [error]   File "/usr/share/koji-hub/kojihub.py", line 7402, in build_notification
[Fri Jul 20 13:22:31 2018] [error]     make_task('buildNotification', [recipients, build, target, web_url])
[Fri Jul 20 13:22:31 2018] [error]   File "/usr/share/koji-hub/kojihub.py", line 555, in make_task
[Fri Jul 20 13:22:31 2018] [error]     policy_data['target'] = get_build_target(target, strict=True)['name']
[Fri Jul 20 13:22:31 2018] [error]   File "/usr/share/koji-hub/kojihub.py", line 2835, in get_build_target
[Fri Jul 20 13:22:31 2018] [error]     raise koji.GenericError('No matching build target found: %s' % info)
[Fri Jul 20 13:22:31 2018] [error] GenericError: No matching build target found: None
[Fri Jul 20 13:22:31 2018] [error]

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.17

3 years ago

Metadata Update from @franzh:
- Issue set to the milestone: 1.16.1 (was: 1.17)

3 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1000 Merged 3 years ago