The snapshot_get_active_by_window DB query was returning snapshots
where we couldn't access the related volume object. This was due to
a) the volume not been loaded and the join failing due to detached
session object.
and b) the related volume was deleted so it didn't show return from
the join
Reviewed: https:/ /review. openstack. org/44868 github. com/openstack/ cinder/ commit/ f5e4e39664a233e be655914f280b69 9138c6d9b4
Committed: http://
Submitter: Jenkins
Branch: master
commit f5e4e39664a233e be655914f280b69 9138c6d9b4
Author: Michael Kerrin <email address hidden>
Date: Tue Sep 3 12:53:34 2013 +0000
Fix errors in volume usage audit script
The snapshot_ get_active_ by_window DB query was returning snapshots
where we couldn't access the related volume object. This was due to
a) the volume not been loaded and the join failing due to detached
session object.
and b) the related volume was deleted so it didn't show return from
the join
Fixes bug: 1220140
Change-Id: I0de993ba0ca482 fa9ab80d4d5cdb0 ff5cc8e4d7a