Bug 799211 - Always keep at least one snapshot directory
Always keep at least one snapshot directory
Status: CLOSED NEXTRELEASE
Product: PulpDist
Classification: Community
Component: Pulp Plugins (Show other bugs)
unspecified
Unspecified Unspecified
medium Severity high
: 0.1.0
: ---
Assigned To: Nick Coghlan
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-02 01:47 EST by Nick Coghlan
Modified: 2012-03-06 01:56 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-03-06 01:56:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nick Coghlan 2012-03-02 01:47:01 EST
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 01:56:19 EST
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.