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 795349

Summary: Deleting organization while another organization has the same product fails
Product: Red Hat Satellite Reporter: Ivan Necas <inecas>
Component: Content ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: gkhachik, mkoci
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:27:57 UTC Type: ---
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 2012-02-20 10:12:50 UTC
Version-Release number of selected component (if applicable):
katello-0.1.238-4
candlepin-0.5.20-1

How reproducible:
Always

Steps to Reproduce:
1.Create organization
2.Import manifest
3.Create another organization
4.Import manifest for the second organization with the same product
5. Delete the second organization
  
Actual results:
deletion failed: Candlepin::Product: 400 Bad Request {"displayMessage":"Product with UUID 'ZOO' cannot be deleted while subscriptions exist."} 

Expected results:
Successfully delete organization. Another orgazniation not affected with this action.

Comment 1 Ivan Necas 2012-02-20 12:03:08 UTC
Fixed in commit 994eee4f82539e473c22d03e69e19999dae766e9

Comment 4 Garik Khachikyan 2012-02-24 13:36:00 UTC
# VERIFIED

impossible to reproduce due to the restriction on not being able to import the same manifest for diff. orgs.

thus: considering the issue resolved.

@Ivan: please feel free to bring the bug back to the verification if you think there is another scenario worth to try. TY.

checked on:
---

katello-0.1.300-1.el6.noarch
candlepin-0.5.22-1.el6.noarch
pulp-0.0.267-2.el6.noarch