Project

General

Profile

Feature #24880

pybind/mgr/volumes: restore from snapshot

Added by liu shi liu about 1 year ago. Updated 2 months ago.

Status:
New
Priority:
Urgent
Assignee:
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus
Reviewed:
Affected Versions:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:

Description

Old description:

Manila's cephfs driver does not support recovering data from snapshots,The driver uses the ceph_volume_client library.

If implement cephfs_volume_client's `_cp_r` method1, it useful for data recovery of manila cephfs drivers.

[1]: https://github.com/ceph/ceph/blob/master/src/pybind/ceph_volume_client.py#L1390

History

#1 Updated by John Spray about 1 year ago

I just checked who wrote that "TODO" comment, and it turns out it was me, even though I have no memory of it :-)

IIRC, the hope was that there would be a "read only clone" mechanism (i.e. a clone but the new share would have a readonly flag set), that would in reality just map the new volume to the proper .snap subdirectory, and we'd only do the full copy on a writable clone. I'm not sure whether the Manila clone API ended up in a form that provides that distinction, so that would be something to check.

#2 Updated by John Spray about 1 year ago

  • Project changed from Ceph to fs

#3 Updated by Patrick Donnelly about 1 year ago

  • Assignee set to Ramana Raja
  • Component(FS) VolumeClient added

#4 Updated by Patrick Donnelly 6 months ago

  • Target version changed from v14.0.0 to v15.0.0

#5 Updated by Patrick Donnelly 3 months ago

  • Subject changed from ceph_volume_client: Implementation of the cp method to pybind/mgr/volumes: restore from snapshot
  • Description updated (diff)
  • Assignee changed from Ramana Raja to Rishabh Dave
  • Start date deleted (07/12/2018)
  • Backport changed from mimic,luminous to nautilus
  • Component(FS) mgr/volumes added
  • Component(FS) deleted (VolumeClient)

#6 Updated by Patrick Donnelly 2 months ago

  • Assignee changed from Rishabh Dave to Ramana Raja
  • Priority changed from Normal to Urgent

ceph-csi ticket: https://github.com/ceph/ceph-csi/issues/411

Ramana, I'm reassigning this to you. We need this done quickly.

Also available in: Atom PDF