Bug 807913

Summary: Handle case where latest link already exists, but is not a directory
Product: [Community] PulpDist Reporter: Nick Coghlan <ncoghlan>
Component: Pulp PluginsAssignee: Nick Coghlan <ncoghlan>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecified   
Target Milestone: 0.1.0   
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-13 01:49:51 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 Nick Coghlan 2012-03-29 06:53:25 UTC
Creation of the link to the latest directory for a snapshot sync currently fails if a file already exists with that name.

The sync operation should instead remove the offending file before creating the new symbolic link.

(Obvious workaround is to delete the file manually and then rerun the sync operation)

Comment 1 Nick Coghlan 2012-04-12 06:53:28 UTC
Moving to 0.1.0 - this happens regularly when "delete_old_dirs" is set and the previous most recent directory gets deleted during an update.

Comment 2 Nick Coghlan 2012-04-13 01:49:51 UTC
Initial attempt at fixing in 0.0.13 was incorrect (failed to handle broken symlinks correctly), better test and fix implemented for 0.0.14