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