#2830 livecd scratch build tracebacks if release not given
Closed: Fixed by tkopecek. Opened by mikem.

the livecd handler relies on the return of initImageBuild to auto-pick the release if it is not given. In the scratch case, this doesn't happen and the child task will fail. E.g.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/koji/daemon.py", line 1356, in runTask
    response = (handler.run(),)
  File "/usr/lib/python2.7/site-packages/koji/tasks.py", line 328, in run
    return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
  File "/usr/lib/python2.7/site-packages/koji/util.py", line 271, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/sbin/kojid", line 3351, in handler
    volid = self._shortenVolID(name, version, release)
  File "/usr/sbin/kojid", line 3140, in _shortenVolID
    if k in release:
TypeError: argument of type 'NoneType' is not iterable

The workaround for this is to specify the release

Metadata Update from @mikem:
- Custom field Size adjusted to None

The livecd handler code should probably call self.session.getNextRelease (the same code that initImageBuild uses) in the scratch case.

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

Metadata Update from @jcupova:
- Issue tagged with: testing-ready

Metadata Update from @mfilip:
- Issue tagged with: testing-done

Commit 367fc190 fixes this issue

Commit 308cbf67 fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/2830

Please continue any further discussion there.

Metadata
Related Pull Requests