#3979 restart-hosts fails with new scheduler
Closed: Fixed by tkopecek. Opened by mikem.

The restart-hosts mechanism relies on making fixed host assignments at task creation. The new scheduler uses the assigned state differently. It does not honor these assignments, and this causes the restart tasks to fail with errors like:

  File "/usr/lib/python3.11/site-packages/koji/tasks.py", line 719, in handler
    raise koji.GenericError("Host mismatch")
koji.GenericError: Host mismatch

or

  File "/usr/lib/python3.11/site-packages/koji/tasks.py", line 736, in handler
    raise koji.GenericError("Stage one restart task is %s" % state)
koji.GenericError: Stage one restart task is ASSIGNED

(working on a fix)

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

Metadata Update from @mikem:
- Issue set to the milestone: 1.34

Possible fix in #3980. It's not ideal, but anything better is going to require further schema changes.

Commit 8052eb1d fixes this issue

Metadata Update from @relias-redhat:
- Issue tagged with: testing-done, testing-ready

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

Please continue any further discussion there.

Metadata
Related Pull Requests