]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix errors in volume usage audit script
authorMichael Kerrin <michael.kerrin@hp.com>
Tue, 3 Sep 2013 12:53:34 +0000 (12:53 +0000)
committerMichael Kerrin <michael.kerrin@hp.com>
Tue, 3 Sep 2013 13:05:11 +0000 (13:05 +0000)
commitf5e4e39664a233ebe655914f280b699138c6d9b4
treea0071f25075ecf7ec7f2104c620bdfa1cf41604c
parent59df774239ac0783826762108768d79ebb4c0dd5
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: I0de993ba0ca482fa9ab80d4d5cdb0ff5cc8e4d7a
cinder/db/sqlalchemy/api.py
cinder/db/sqlalchemy/models.py
cinder/tests/test_volume.py