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:

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