Bug 1306628

Summary: Cascade deleting Consumers with an environment should be logged
Product: [Community] Candlepin Reporter: Filip Nguyen <fnguyen>
Component: candlepinAssignee: Chris "Ceiu" Rog <crog>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 2.0CC: bcourt, crog, pmoravec, vrjain
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-2.0.12-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-13 18:51:29 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:

Description Filip Nguyen 2016-02-11 13:39:34 UTC
Description of problem:
Looking at code for all different versions of CP, it seems we are not logging information about deleted consumers that are being deleted with an environment

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create an environment and assign some consumers to it
2. Delete the environment through /environments resource. 

Actual results:
Logs/Audit doesn't contain information that consumers have been deleted

Expected results:
Logs/Audit contains the information

Additional info:
This is very important when trying to figure out why a specific consumer is missing in the database.

Comment 2 Chris "Ceiu" Rog 2016-05-06 13:10:33 UTC
commit 3446f15e1287ceac4656d960ee8b49b24c4e2f43
Author: Chris Rog <crog>
Date:   Mon May 2 10:55:18 2016 -0400

    1306628: Added additional logging to environment deletion