Bug 799211 - Always keep at least one snapshot directory
Summary: Always keep at least one snapshot directory
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: PulpDist
Classification: Community
Component: Pulp Plugins
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: 0.1.0
Assignee: Nick Coghlan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-02 06:47 UTC by Nick Coghlan
Modified: 2012-03-06 06:56 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-06 06:56:19 UTC
Embargoed:


Attachments (Terms of Use)

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).


Note You need to log in before you can comment on or make changes to this bug.