Bug 1015679

Summary: Org deletion fails
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Content ManagementAssignee: Petr Chalupa <pchalupa>
Status: CLOSED WORKSFORME QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.2CC: cwelton, gkhachik, omaciel, tsanders
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-18 14:05:02 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
katello-debug none

Description Mike McCune 2013-10-04 20:12:55 UTC
Created attachment 807922 [details]
katello-debug

1) Create an org

2) import a manifest

3) upload some puppet content to a repo (may be unrelated)

4) Try and delete the Org 

5) Notice error:

/usr/share/katello/app/models/authorization/repository.rb:31:in `deletable?'
/usr/share/katello/app/models/repository.rb:275:in `assert_deletable'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:407:in `_run__2680243731287840431__destroy__3812871559649883762__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_destroy_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:254:in `destroy'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:236:in `block in destroy'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:236:in `destroy'
/usr/share/katello/app/models/glue.rb:93:in `destroy'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record
....

attaching katello-debug

Comment 2 Walden Raines 2013-10-16 19:50:51 UTC
*** Bug 1015057 has been marked as a duplicate of this bug. ***

Comment 3 Garik Khachikyan 2013-10-17 15:05:35 UTC
need to have it in current drop asap, please.

Comment 4 Petr Chalupa 2013-10-18 09:30:06 UTC
We've looked at this with Garik today and we couldn't reproduce. Moving to ON_QA for verification.

Comment 5 Corey Welton 2013-10-18 14:05:02 UTC
Cannot repro either with 1.4.6-39.el6sat

[root@qe-blade-09 ~]# katello --user admin --password admin org delete --name fibble
Successfully deleted org [ fibble ]   

QA Closing, can reopen if it appears again.