#2210 CLI buildinfo on image in progress fails with koji: KeyError: 'reserved_by_name'
Closed: Fixed by tkopecek. Opened by pbabinca.

I have started a build of image with "image" task. While image is still being built I run koji buildinfo on the NVR/buildID. I get error:

$ koji -p brew buildinfo REDACTED-image-s390x-7.8-1
BUILD: REDACTED-image-s390x-7.8-1 [1173320]
State: BUILDING
2020-05-04 12:33:46,268 [ERROR] koji: KeyError: 'reserved_by_name'

This doesn't come from getBuild API call:

$ koji -p brew call getBuild REDACTED-image-s390x-7.8-1
{'build_id': 1173320,
 'cg_id': None,
 'cg_name': None,
 'completion_time': None,
 'completion_ts': None,
 'creation_event_id': 31270221,
 'creation_time': '2020-05-04 08:52:30.989578',
 'creation_ts': 1588582350.98958,
 'epoch': 0,
 'extra': None,
 'id': 1173320,
 'name': 'REDACTED-s390x',
 'nvr': 'REDACTED-s390x-7.8-1',
 'owner_id': 3641,
 'owner_name': 'REDACTED,
 'package_id': 74456,
 'package_name': 'REDACTED-image-s390x',
 'release': '1',
 'source': None,
 'start_time': '2020-05-04 08:52:30.989578',
 'start_ts': 1588582350.98958,
 'state': 0,
 'task_id': 28352912,
 'version': '7.8',
 'volume_id': 0,
 'volume_name': 'DEFAULT'}

Environment:

koji-1.20.1-41.1.el7

I'm not sure which version of koji (branded as Brew) we are running on server.


Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue set to the milestone: 1.22

Metadata Update from @tkopecek:
- Issue tagged with: bug, easyfix

Oops, relict of refactoring.

PR #2224

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

Commit 0d04eb3b fixes this issue

Commit dac7bffc fixes this issue

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

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.21.1 (was: 1.22)

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

Please continue any further discussion there.

Metadata
Related Pull Requests