Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1129635

Summary: Deleting a resource and creation a new one might lead to conflicts when the deletion is not finished yet
Product: Red Hat Satellite Reporter: Ivan Necas <inecas>
Component: Content ManagementAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Jan Hutaƙ <jhutar>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.4CC: bbuckingham, bkearney, chrobert, cwelton, jhutar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
URL: http://projects.theforeman.org/issues/7333
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:14:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ivan Necas 2014-08-13 11:59:51 UTC
Description of problem:
Deleting a resource and creation a new one might lead to conflicts when the deletion is not finished yet

Version-Release number of selected component (if applicable):
6.0.3

How reproducible:
sometimes

Steps to Reproduce:
1. delete a repository
2. right after doing so, create a new repository with the same name

Actual results:
Duplicate resource: Default_Organization-snap2-tools

Expected results:
Resource is not allowed to be created till the old resource is still being orchestrated

Comment 1 RHEL Program Management 2014-08-13 12:03:12 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 5 Bryan Kearney 2015-02-05 21:45:51 UTC
Connecting redmine issue http://projects.theforeman.org/issues/7333 from this bug

Comment 6 Bryan Kearney 2015-02-05 23:03:25 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7333 has been closed
-------------
David Davis
Applied in changeset commit:katello|8d28f67b1cfc1cef06e5da77194cdba3a25c4a8e.

Comment 7 Bryan Kearney 2015-02-06 20:48:52 UTC
This is already in the downstream repo.

Comment 12 Ivan Necas 2015-04-28 10:57:26 UTC
I would suggest marking this BZ as verified, as the main goal of this (which was fixed) was not getting into creation process when there is already deletion going on (which indeed happened).

I would suggest openening a new BZ asking for better error message when there is a name conflict, but deletion in progress

Comment 13 Bryan Kearney 2015-04-30 15:31:29 UTC
Per comment 12, I am moving this back to ON_QA. I have opened a new bug to improve the error message

https://bugzilla.redhat.com/show_bug.cgi?id=1217544

Comment 15 Bryan Kearney 2015-08-11 13:25:11 UTC
This bug is slated to be released with Satellite 6.1.

Comment 16 errata-xmlrpc 2015-08-12 05:14:15 UTC
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, 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/RHSA-2015:1592