A migration cancel task was found to fail with a 409 conflict, which failed the migration in Katello, resulting in losing track of the migration task. After talking with the Pulp team, it looks like the 409 pops up if you try to cancel a Pulp task that is already complete. We should investigate this. I think we may be hitting the 409 when we loop through the tasks in the task group. If it really is the issue, we can simply handle the 409 and skip sending the cancel request. According to the Pulp team, a 409 will be returned if you try to cancel a task that is failed, completed, skipped or, canceled.
Created from redmine issue https://projects.theforeman.org/issues/32226
Upstream bug assigned to None
Upstream bug assigned to jsherril
Verified on 6.9.1 snap 2.0.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Satellite 6.9.1 Async Bug Fix Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:1371