Bug 1225588 - Organization delete failed
Summary: Organization delete failed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-27 17:57 UTC by sthirugn@redhat.com
Modified: 2019-07-11 09:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:55:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Failed task info (8.07 KB, text/plain)
2015-05-27 17:57 UTC, sthirugn@redhat.com
no flags Details
newerror.log (7.90 KB, text/plain)
2015-05-27 18:47 UTC, sthirugn@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1219059 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Bugzilla 1224117 0 unspecified CLOSED Unable to delete a organization 2021-02-22 00:41:40 UTC

Internal Links: 1219059 1224117

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.


Note You need to log in before you can comment on or make changes to this bug.