Skip to content

Add configurable delayed-delete suffix for RBD volumes#1911

Open
ksanislo wants to merge 1 commit into
ganeti:masterfrom
ksanislo:rbd_snapshots
Open

Add configurable delayed-delete suffix for RBD volumes#1911
ksanislo wants to merge 1 commit into
ganeti:masterfrom
ksanislo:rbd_snapshots

Conversation

@ksanislo

Copy link
Copy Markdown
Contributor

Summary

  • Add delayed-delete-suffix RBD disk parameter (default empty string)
  • When set, RBD volume removal creates a snapshot and renames the volume with the suffix instead of deleting immediately
  • Include cfgupgrade support (upgrade fills default via diskparams, downgrade strips it)

Instead of unconditionally renaming or deleting RBD volumes on removal,
make the behavior configurable via the rbd disk parameter
delayed-delete-suffix. When set (e.g. "-deleted"), Ganeti renames the
volume instead of deleting it, allowing RBD snapshots to expire before
a cleanup job purges the image. When empty (the default), volumes are
deleted immediately, preserving the original behavior.

Configure with: gnt-cluster modify -D rbd:delayed-delete-suffix=-deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant