cinder db purge util

Registered by Abel Lopez

Adding functionality to `cinder-manage db` to safely purge "deleted" data. This will have non-optional argument of nDays.
For example `cinder-manage db purge 60` will go into the cinder db, and delete from each table where 'deleted =! 0 and deleted_at > date_sub(NOW(), interval 60 day);'

This is a useful feature as Openstack matures and operators/admins are upgrading over time.

Blueprint information

Status:
Complete
Approver:
Mike Perez
Priority:
Medium
Drafter:
Abel Lopez
Direction:
Approved
Assignee:
Abel Lopez
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon 2015.1.0
Started by
Mike Perez
Completed by
Mike Perez

Related branches

Sprints

Whiteboard

2015-01-04 <thingee>: Contacted Abel to add an assignee and update progress.

Gerrit topic: https://review.openstack.org/#q,topic:bp/database-purge,n,z

Addressed by: https://review.openstack.org/146766
    Purge deleted rows

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.