Project

General

Profile

Actions

Feature #16568

closed

Removing head object with ceph-objectstore-tool breaks snap trimming

Added by David Zafman almost 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
David Zafman
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

The ceph-objectstore-tool can remove the snapdir or head object even with other snaps present. The head object is required otherwise trim_object() will crash the osd.

The fix is to remove all snapshots when removing the head or snapdir object. The existing code will already cleanup the SnapMapper, but we shouldn't allow the head/snapdir alone to be removed.

Actions

Also available in: Atom PDF