Bug 1107691

Summary: Host deletion finds irrelevant old leases
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: Foreman ProxyAssignee: Greg Sutcliffe <gsutclif>
Status: CLOSED CURRENTRELEASE QA Contact: Kedar Bidarkar <kbidarka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham, bkearney, jmontleo, kbidarka
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5739
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:21:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bryan Kearney 2014-06-10 12:49:15 UTC
With #5648's patch applied we correctly parse entries in the lease file in order. This causes issues with host deletion, as once a Host boots at least once, it's lease will be after it's reservation in the leasefile. We need to only query reservations when deleting a Host, as stale leases become irrelevant at that point.

Comment 1 Bryan Kearney 2014-06-10 12:49:17 UTC
Created from redmine issue http://projects.theforeman.org/issues/5739

Comment 2 Bryan Kearney 2014-06-10 13:04:08 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/5739 has been closed

Comment 5 Kedar Bidarkar 2014-08-13 17:04:42 UTC
please provide verification steps for this bug.

Comment 7 Bryan Kearney 2014-09-11 12:21:13 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.