db function snapsht_get_active_by_window required

Bug #1157110 reported by Ollie Leahy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Michael Kerrin

Bug Description

The db function volume_get_active_by_window() is used generate a list of volumes that exist during a specified time period. The list is then used to generate notifications for billing purposes.

A similar function is required to generate a list of snapshots that exist during a specified time period, so that snapshots can also be billed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/24806

Changed in cinder:
assignee: nobody → Michael Kerrin (michael-kerrin-w)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/24806
Committed: http://github.com/openstack/cinder/commit/f117a0e22a30136ec20661a65020004c38e55f93
Submitter: Jenkins
Branch: master

commit f117a0e22a30136ec20661a65020004c38e55f93
Author: Michael Kerrin <email address hidden>
Date: Tue Mar 19 18:04:39 2013 +0000

    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

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.