nova-manage db purge-deleted-instances
Until we have automated DB archival (https:/
http://
This would be similar to the nova-manage db null-instance-
http://
Which scans the database looking for instance_uuid records in other tables where the uuid value is NULL and then deletes them, and has a sort of dry-run option so you can see what would be deleted if you actually do it, and the help message would point out that this is actually doing to delete data so be careful.
Then it just goes and finds all soft-deleted instances along with those related meta tables and deletes them all (the purge).
Lots of deployments already have a set of tools/scripts that already do something like this but they have to go directly into the nova database to do it, with a nova-manage db command we can at least ship it with the code and test it until better solutions are implemented, like the aforementioned archive or no more soft delete specs.
Blueprint information
- Status:
- Complete
- Approver:
- Dan Smith
- Priority:
- Medium
- Drafter:
- Matt Riedemann
- Direction:
- Needs approval
- Assignee:
- Nicolas Hicher
- Definition:
- Superseded
- Series goal:
- None
- Implementation:
-
Needs Code Review
- Milestone target:
- None
- Started by
- John Garbutt
- Completed by
- Matt Riedemann
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Spec: add nova-manage db purge-deleted-
Addressed by: https:/
This commit adds the functionality to purge soft-deleted instances from the DB, along with data in tables directly related to the soft-deleted instance.
Sorry, we have now hit the Non-Priority Feature Freeze for Mitaka. For more details please see: http://
--johnthetubaguy 2016.02.08
Addressed by: https:/
Purge soft-deleted instances cmd
Addressed by: https:/
Purge soft-deleted instances cmd
Addressed by: https:/
Purge soft-deleted instances cmd