Bug 751949

Summary: logs not being removed when recipes are
Product: [Retired] Beaker Reporter: Raymond Mancy <rmancy>
Component: schedulerAssignee: Raymond Mancy <rmancy>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.8CC: bpeck, dcallagh, ebaak, mcsontos, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-26 07:16:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Raymond Mancy 2011-11-08 06:33:21 UTC
When deleting recipes this gets called in Recipe.delete():

  self.logs = []

As it is it's half baked and doesn't work. It only sets the FK in the log_* tables to NULL. 

I'm guessing we will need proper cascade rules at least.

We will also have to go through the DB and delete entries that have null FKs.

Comment 1 Raymond Mancy 2011-11-08 07:02:36 UTC
*** Bug 747170 has been marked as a duplicate of this bug. ***