Bug 1225588

Summary: Organization delete failed
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: Content ManagementAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Tazim Kolhar <tkolhar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, bkearney, cwelton, mmccune, tkolhar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10655
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:55:47 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:
Attachments:
Description Flags
Failed task info
none
newerror.log none

Description sthirugn@redhat.com 2015-05-27 17:57:20 UTC
Created attachment 1030740 [details]
Failed task info

Description of problem:
Organization delete failed

Version-Release number of selected component (if applicable):
Sat 6.1 GA Snap 5

How reproducible:
Always

Steps to Reproduce:
1. Create an Org
2. Create Lifecycle enviroments DEV,QE
3. Importing Red Hat Manifest (containing Employee SKU)
4. Attempt to delete the Org in UI

Actual results:
Failed (see foreman-debug)

Expected results:
Organization should be deleted without errors

Additional info:
Failed task info attached
Foreman debug attached

Comment 3 sthirugn@redhat.com 2015-05-27 18:46:41 UTC
It happened an other time for me - this time error is different - attaching newerror.log

Comment 4 sthirugn@redhat.com 2015-05-27 18:47:54 UTC
Created attachment 1030745 [details]
newerror.log

Comment 5 Justin Sherrill 2015-05-30 19:01:03 UTC
Created redmine issue http://projects.theforeman.org/issues/10655 from this bug

Comment 6 Bryan Kearney 2015-06-02 18:05:53 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10655 has been closed
-------------
Justin Sherrill
Applied in changeset commit:katello|63bf81f35261b658832b18e46a9bca7fa35a8ed3.

Comment 9 Mike McCune 2015-06-03 19:03:59 UTC
Something isn't getting cleaned up in Candlepin:

1) run this demo script that creates orgs+products:

http://file.rdu.redhat.com/~mmccune/s6-demo.bash

2) delete the 'Demo Org Auto' via the UI

3) Re-run above script and get:


Could not create the repository:
  Task 2883a776-8999-4d97-b7ce-f25cb26cf93a: Katello::Errors::CandlepinError: Runtime Error ERROR: duplicate key value violates unique constraint "cp_content_label_key"
    Detail: Key (label)=(The_Demo_Org_Auto_Demo_Product_A_Demo_Internal_Product) already exists. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse:2,157

Comment 10 Justin Sherrill 2015-06-03 22:44:07 UTC
NEW PR:  https://github.com/Katello/katello/pull/5272/

Comment 13 Tazim Kolhar 2015-06-12 10:34:41 UTC
VERIFIED:
 rpm -qa | grep foreman
ruby193-rubygem-foreman_discovery-2.0.0.15-1.el7sat.noarch
foreman-libvirt-1.7.2.27-1.el7sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
hp-ml150g6-01.rhts.eng.bos.redhat.com-foreman-proxy-client-1.0-1.noarch
ruby193-rubygem-foreman_docker-1.2.0.14-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.10-1.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
foreman-compute-1.7.2.27-1.el7sat.noarch
foreman-gce-1.7.2.27-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.2.0-8.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.14-1.el7sat.noarch
foreman-debug-1.7.2.27-1.el7sat.noarch
foreman-vmware-1.7.2.27-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.8-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch
rubygem-hammer_cli_foreman_docker-0.0.3.7-1.el7sat.noarch
foreman-proxy-1.7.2.5-1.el7sat.noarch
hp-ml150g6-01.rhts.eng.bos.redhat.com-foreman-client-1.0-1.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.13-1.el7sat.noarch
hp-ml150g6-01.rhts.eng.bos.redhat.com-foreman-proxy-1.0-2.noarch
foreman-ovirt-1.7.2.27-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch
foreman-1.7.2.27-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
foreman-postgresql-1.7.2.27-1.el7sat.noarch

steps:
1. Create an Org
2. Create Lifecycle enviroments DEV,QE
3. Importing Red Hat Manifest (containing Employee SKU)
4. Attempt to delete the Org in UI

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

Comment 15 Bryan Kearney 2015-08-12 13:55:47 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.