Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ceph (RBD) trash support #3147

Closed
7 tasks
hydro-b opened this issue Mar 28, 2019 · 3 comments
Closed
7 tasks

Ceph (RBD) trash support #3147

hydro-b opened this issue Mar 28, 2019 · 3 comments

Comments

@hydro-b
Copy link
Contributor

hydro-b commented Mar 28, 2019

Description
Since Ceph Luminous (12.2.x) there is support for putting RBD images in a "trash" bin (namespace). Instead of directly deleting an image from a pool the image can be put in the "trash" instead.

Use case
By putting an IMAGE in the "trash" it provides the user / admin the possibility to undo unwanted delete actions without relying on backups. This might avoid accidental data loss in case someone accidentally deletes an IMAGE or a TEMPLATE including disk images.

Interface Changes
This change will need adjustments from drivers, Sunstone as well as CLI / API commands. An overview of IMAGES in "trash" as well as a way to definitively get rid of them.

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
xorel added a commit to OpenNebula/docs that referenced this issue May 15, 2019
xorel added a commit to OpenNebula/docs that referenced this issue May 15, 2019
xorel added a commit to OpenNebula/docs that referenced this issue May 16, 2019
@rsmontero

This comment has been minimized.

@rsmontero
Copy link
Member

rsmontero commented May 27, 2019

Hi @hydro-b

Overview of the implementation

  • New CEPH_TRASH attribute for the datastores and disk
  • A disk includes CEPH_TRASH = yes all rbd rm operations are replaced by rbd trash move
  • This attribute can be set per DISK to only move to trash that given disk, or globally at DS level
  • When a disk contains snapshots all the snapshots are also moved to trash

Compared with your original request we are not implementing an OpenNebula side inspection of the CEPH_TRASH.

Let us know what do you think

rsmontero pushed a commit that referenced this issue Jul 25, 2024
* Fix several issues in the fsck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants