Print number of rows archived per table in nova-manage db archive_deleted_rows

Registered by Matt Riedemann

The `nova-manage db archive_deleted_rows` command doesn't print any results, not even how many rows were deleted, which is something the database API returns.

The number of rows deleted also changes depending on the max_rows input and how many rows are deleted in each table, it's a cumulative effect.

We should keep track of which tables we've deleted rows from along with how many rows, and print that all out to the CLI console if the user passed a --verbose option.

This is intended to be a specless blueprint for mitaka since it's a fairly straight-forward change but is not a bug.

Blueprint information

Status:
Complete
Approver:
Dan Smith
Priority:
Medium
Drafter:
Matt Riedemann
Direction:
Approved
Assignee:
Matt Riedemann
Definition:
Approved
Series goal:
Accepted for mitaka
Implementation:
Implemented
Milestone target:
milestone icon mitaka-1
Started by
Matt Riedemann
Completed by
Matt Riedemann

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/print-table-archived-rows,n,z

Addressed by: https://review.openstack.org/232104
    Make archive_deleted_rows_for_table private

Addressed by: https://review.openstack.org/232252
    WIP: Print number of rows archived per table in db archive_deleted_rows

Addressed by: https://review.openstack.org/232653
    Sync cliutils from oslo-incubator

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.