Project

General

Profile

Actions

Bug #35929

closed

deleting of products after a content export ends up in a candlepin error

Added by Evgeni Golov over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Assignee set to Evgeni Golov
  • Pull request https://github.com/Katello/katello/pull/10410 added
Actions #2

Updated by Jeremy Lenz over 1 year 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
Actions #3

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.8.0 added
Actions #4

Updated by Evgeni Golov over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF