Bug 1043644

Summary: When a deletion changeset is actually deleted, it results in a warning "undefined method `affected_repos'"
Product: Red Hat Satellite Reporter: Roy Williams <fang64>
Component: WebUIAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: NightlyCC: bkearney, jsherril, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-03 19:19: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:
Attachments:
Description Flags
Katello-debug log none

Description Roy Williams 2013-12-16 19:52:02 UTC
Created attachment 837391 [details]
Katello-debug log

Description of problem:
When deletion changesets are used it causes a warning to appear, specifically:
Failed to perform additional action KatelloForemanEngine::Actions::ChangesetPromote: undefined method `affected_repos' for #<DeletionChangeset:0x00000009273b08>

Version-Release number of selected component (if applicable):
1.4.15-1.el6

How reproducible:
Easily

Steps to Reproduce:
1. Create promotion changeset
2. Review and Promote it 
3. Create deletion changeset in promoted environment
4. Review and Delete it
5. The warning will occur, but the content views will be deleted from the environment.

Actual results:
Promoted Content View is deleted with warning

Expected results:
Promoted Content View is deleted

Additional info:

Comment 1 Justin Sherrill 2013-12-17 01:37:09 UTC
fixed as part of https://bugzilla.redhat.com/show_bug.cgi?id=1019484

backporting fix to 1.4

Comment 2 Bryan Kearney 2014-01-21 19:07:19 UTC
Moving to Sat6 to be tracked there. Upstream bugs are moving to redmine.

Comment 3 RHEL Program Management 2014-01-21 19:17:37 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 6 Mike McCune 2014-06-03 19:19:47 UTC
We removed the changeset concept entirely and streamlined the workflow for deleting content.