]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add some missing fields to Volume object
authorSzymon Wroblewski <szymon.wroblewski@intel.com>
Thu, 29 Oct 2015 11:45:06 +0000 (12:45 +0100)
committerSzymon Wroblewski <szymon.wroblewski@intel.com>
Tue, 1 Dec 2015 14:39:34 +0000 (15:39 +0100)
commit287c64ef4dc6e3ca5ff871dd9cb9d38906c21a6e
treef2f2bc40e5e9a763edcfb8efaa30543d5d91a51b
parente62cb5eac5ee8074235a855b0ccafa1134eecc19
Add some missing fields to Volume object

Volume object was missing fields that were defined on
the SQLAlchemy model as relationships or backrefs such as
consistencygroup, glance_metadata and snapshots.
This commit adds fields representing these relationships.

Partial-Bug: 1509012
Co-Authored-By: Szymon Borkowski <szymon.borkowski@intel.com>
Change-Id: I2f4cae34833b6b97278adf2abb52cef44405c093
cinder/objects/volume.py
cinder/tests/unit/fake_consistencygroup.py
cinder/tests/unit/fake_snapshot.py
cinder/tests/unit/fake_volume.py
cinder/tests/unit/objects/test_objects.py
cinder/tests/unit/objects/test_volume.py
cinder/volume/manager.py