Trove should not allow to delete incremental backup if it has a child

Bug #1340203 reported by Denis M.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Invalid
Undecided
Denis M.

Bug Description

Use case:
 - I can create N chained incremental backups in a row.
 - I can delete any backup i want by its ID.

From restore procedure perspective:
 - I can't successfuly restore instance if one or more backups are missing.

Valid workflow:
 - I can delete last backup that has no childs.

There's only one valid way to fix this crititcal issue:
Stage 1.
Block backup-delete call if given backup has a child backup

- Advantages: 100% consistency
- Disadvantages: if you want to delete certain incremental backup you have to delete all child backups and child of child and so on.

Stage 2. (Looks more like a blueprint)
Pass '--force' flag through backups API. This flag will give an ability to recursively delete all child backups and child of child and so on.

 - Advantages: 100% consistency. Simple interactions with users (as user, i don't have to delete all child backups and child of child and so on, i can do this with one call, just adding --force flag)
 - Disadvantages: None

Denis M. (dmakogon)
Changed in trove:
assignee: nobody → Denis M. (dmakogon)
status: New → Confirmed
description: updated
Denis M. (dmakogon)
summary: - Trove should not allow to delete incremental backup if it has child
+ Trove should not allow to delete incremental backup if it has a child
Denis M. (dmakogon)
Changed in trove:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.