Bug #35929
closeddeleting of products after a content export ends up in a candlepin error
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2158614
When you try to delete a product that previously had an export created from, there is a high chance to run into a race condition that triggers an error raised from Candlepin (in 4.1.19 at least).
Initially this was found by running the Foreman Ansible Modules test suite for the content export feature, but it can also be reproduced rather reliably using the following script:
hammer organization create --name lulz hammer product create --name lulz --organization lulz hammer repository create --name lulz --content-type yum --product lulz --organization lulz hammer content-export complete library --organization lulz hammer content-export incremental library --organization lulz hammer repository delete --name lulz --product lulz --organization lulz hammer product delete --name lulz --organization lulz hammer organization delete --name lulz
Having one export was not sufficient in my setup, but having two was.
The issue is that Katello tries to remove the export contents at the same time as it tries to remove the product. Now if the product deletion is quick, and the export one is not, the "next" export delete step will be refused with "product not found" error
Updated by The Foreman Bot almost 2 years ago
- Status changed from New to Ready For Testing
- Assignee set to Evgeni Golov
- Pull request https://github.com/Katello/katello/pull/10410 added
Updated by Jeremy Lenz almost 2 years ago
- Subject changed from deleting of products after a content export ends up in a candlepin error to deleting of products after a content export ends up in a candlepin error
- Target version set to Katello 4.8.0
- Triaged changed from No to Yes
Updated by The Foreman Bot almost 2 years ago
- Fixed in Releases Katello 4.8.0 added
Updated by Evgeni Golov almost 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|4d2503ad80f5067ef0f49f439514d4863b98cf9f.