Issue #5673
closedAnsible Plugin - Story #5517: [EPIC] Automation Hub Release Blockers
Resource reservations are not cleaned up if worker is killed
Description
It pulp worker is killed while executing task that has reserved resources, resources are not cleaned up.
All subsequent task that use any of the reserved resources are assigned to the same worker (which is dead).
Steps to reproduce:
1. Spawn import_collection task from pulp_ansible (T1).
2. While task is running kill worker (W1).
3. Start another worker (W2)
4. Spawn import_collection task from pulp_ansible (T2)
Expected behavior:
Task T2 is assigned on worker W2 or Cancelled if assigned on W1 before cleanup is performed.
Actual behavior:
Task T2 is assigned on worker W1 and remains in waiting state forever.
Resources are not cleaned up.
Environment:
pulpcore + pulp_ansible.
1 worker
Release resources when worker is cleaned up
https://pulp.plan.io/issues/5673 closes #5673