Add simple db purge command

This adds a simple purge command to nova-manage. It either deletes all
shadow archived data, or data older than a date if provided.

This also adds a post-test hook to run purge after archive to validate
that it at least works on data generated by a gate run.

Related to blueprint purge-db

Change-Id: I6f87cf03d49be6bfad2c5e6f0c8accf0fab4e6ee
This commit is contained in:
Dan Smith
2018-03-06 09:10:27 -08:00
parent 64635ba18d
commit ae241cc68f
8 changed files with 238 additions and 0 deletions

View File

@@ -64,3 +64,4 @@ cursive>=0.2.1 # Apache-2.0
pypowervm>=1.1.11 # Apache-2.0
os-service-types>=1.2.0 # Apache-2.0
taskflow>=2.16.0 # Apache-2.0
python-dateutil>=2.5.3 # BSD