Bug 799211

Summary: Always keep at least one snapshot directory
Product: [Community] PulpDist Reporter: Nick Coghlan <ncoghlan>
Component: Pulp PluginsAssignee: Nick Coghlan <ncoghlan>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high 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-03-06 06:56:19 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-02 06:47:01 UTC
When "delete_old_dirs" is enabled for the "snapshot" plugin, the situation may arise where no source directories are finished (i.e. a STATUS file is present and includes the text "FINISHED").

Currently, the plugin will happily delete all local directories that are no longer present on the remote server, potentially leaving the local system without *any* copy of the tree at all.

In this situation, the snapshot plugin should ensure that the most recent local tree is preserved.

Comment 1 Nick Coghlan 2012-03-06 06:56:19 UTC
Snapshot plugin has been updated to ensure the target of the "latest" link is always preserved locally (this happens for all snapshot trees, even those where actual creation of the latest link isn't enabled).