#1965 koji-gc can fail on deleted tag
Closed: Fixed by tkopecek. Opened by tkopecek.

Some workflows now use tags which can disappear quickly (and sidetags can even worse this). koji-gc should be more tolerant of tags which were deleted meanwhile.

  File "/usr/sbin/koji-gc", line 917, in <module>
    rv = main(args)
  File "/usr/sbin/koji-gc", line 422, in main
    globals()['handle_' + x]()
  File "/usr/sbin/koji-gc", line 813, in handle_prune
    history = session.tagHistory(tag=tagname, active=True, queryOpts={'order': '-create_ts'})
  File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 2135, in __call__
    return self.__func(self.__name, args, opts)
  File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 2650, in _callMethod
    raise err
koji.GenericError: No such entry in table tag: random_tag_xyz

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

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

PR #2256

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

Commit e58c813f fixes this issue

Commit bf45a59b fixes this issue

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

Please continue any further discussion there.

Metadata
Related Pull Requests