]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add snapshots to the volume usage audit report
authorMichael Kerrin <michael.kerrin@hp.com>
Tue, 19 Mar 2013 18:04:39 +0000 (18:04 +0000)
committerMichael Kerrin <michael.kerrin@hp.com>
Tue, 19 Mar 2013 18:19:45 +0000 (18:19 +0000)
commitf117a0e22a30136ec20661a65020004c38e55f93
tree909e2f0e13820eb1438585c41babf7389db656bd
parent7bb449aa5a0a069cc6df918acc33bf550fbd5834
Add snapshots to the volume usage audit report

* Added tests for db api call volume_get_active_by_window called by the volume
usage audit report.

* Added new db api called snapshot_get_active_by_window & test it. This is
similar to the volume_get_active_by_window method but returns the snapshots
 active the supplied time window.

* Integrate the above into the cinder-volume-usage-audit script to report on
  all the active snapshots as well as volumes in the specified time frame.

Fixes: bug #1157110
Change-Id: I7597da20c62150a8f6c74cbfeec159f68064d2a6
bin/cinder-volume-usage-audit
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/tests/test_volume.py
cinder/volume/utils.py