Simple DB Purging
We have no built-in command to purge the database once tables have been archived to shadow. This is not hard, and is something we have been putting off for many years.
Blueprint information
- Status:
- Complete
- Approver:
- Matt Riedemann
- Priority:
- Medium
- Drafter:
- Dan Smith
- Direction:
- Approved
- Assignee:
- Dan Smith
- Definition:
- Approved
- Series goal:
- Accepted for rocky
- Implementation:
- Implemented
- Milestone target:
- rocky-1
- Started by
- Matt Riedemann
- Completed by
- Matt Riedemann
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add simple db purge command
There is quite a bit of prior art (and at least one approved spec) for this same type of thing:
https:/
https:/
https:/
I would have to compare those other proposals to the patch Dan has up to determine the differences, which I likely won't do, but they are all basically after the same goal: hard delete (soft) deleted records from the main tables and the shadow tables, and include an option for how far back to look when performing the delete. I'll mark the other blueprints as superseded against this one. -- mriedem 20180306
Addressed by: https:/
Add --purge helper flag to archive_
Addressed by: https:/
Run post-test archive against cell1
Addressed by: https:/
Make nova-manage db purge take --all-cells
Specless blueprint approved in the March 8 2018 nova meeting. -- mriedem 20180308