Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "cinder/tests/unit/test_volume.py", line 5982, in test_snapshot_get_active_by_window datetime.datetime(1, 4, 1, 1, 1, 1)).objects
File "/home/eharney/src/cinder-trunk8/.tox/py34not/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 171, in wrapper
result = fn(cls, context, *args, **kwargs)
File "cinder/objects/snapshot.py", line 251, in get_active_by_window
snapshots, expected_attrs=['metadata'])
File "/home/eharney/src/cinder-trunk8/.tox/py34not/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 991, in obj_make_list **extra_args)
File "cinder/objects/snapshot.py", line 121, in _from_db_object
metadata = db_snapshot.get('snapshot_metadata')
File "/home/eharney/src/cinder-trunk8/.tox/py34not/lib/python2.7/site-packages/oslo_db/sqlalchemy/models.py", line 68, in get
return getattr(self, key, default)
File "/home/eharney/src/cinder-trunk8/.tox/py34not/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 237, in __get__
return self.impl.get(instance_state(instance), dict_)
File "/home/eharney/src/cinder-trunk8/.tox/py34not/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 578, in get
value = self.callable_(state, passive)
File "/home/eharney/src/cinder-trunk8/.tox/py34not/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py", line 502, in _load_for_state (orm_util.state_str(state), self.key)
sqlalchemy.orm.exc.DetachedInstanceError: Parent instance <Snapshot at 0x7f38f90ae790> is not bound to a Session; lazy load operation of attribute 'snapshot_metadata' cannot proceed
Possible issue with the Snapshot object?
master @ 7f498b0 Merge "Obtain target authentication from database same as LIO target"
Running this tox env (subset of our full tests):
[testenv:py34not] tests.unit. test_volume| cinder. tests.unit. image.test_ cache)
commands = ostestr {posargs} --concurrency=16 --regex (cinder.
cinder. tests.unit. test_volume. GetActiveByWind owTestCase. test_snapshot_ get_active_ by_window ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------
-------
Captured traceback: tests/unit/ test_volume. py", line 5982, in test_snapshot_ get_active_ by_window
datetime. datetime( 1, 4, 1, 1, 1, 1)).objects eharney/ src/cinder- trunk8/ .tox/py34not/ lib/python2. 7/site- packages/ oslo_versionedo bjects/ base.py" , line 171, in wrapper objects/ snapshot. py", line 251, in get_active_ by_window attrs=[ 'metadata' ]) eharney/ src/cinder- trunk8/ .tox/py34not/ lib/python2. 7/site- packages/ oslo_versionedo bjects/ base.py" , line 991, in obj_make_list
**extra_ args) objects/ snapshot. py", line 121, in _from_db_object get('snapshot_ metadata' ) eharney/ src/cinder- trunk8/ .tox/py34not/ lib/python2. 7/site- packages/ oslo_db/ sqlalchemy/ models. py", line 68, in get eharney/ src/cinder- trunk8/ .tox/py34not/ lib/python2. 7/site- packages/ sqlalchemy/ orm/attributes. py", line 237, in __get__ get(instance_ state(instance) , dict_) eharney/ src/cinder- trunk8/ .tox/py34not/ lib/python2. 7/site- packages/ sqlalchemy/ orm/attributes. py", line 578, in get (state, passive) eharney/ src/cinder- trunk8/ .tox/py34not/ lib/python2. 7/site- packages/ sqlalchemy/ orm/strategies. py", line 502, in _load_for_state
(orm_util. state_str( state), self.key) orm.exc. DetachedInstanc eError: Parent instance <Snapshot at 0x7f38f90ae790> is not bound to a Session; lazy load operation of attribute 'snapshot_metadata' cannot proceed
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "cinder/
File "/home/
result = fn(cls, context, *args, **kwargs)
File "cinder/
snapshots, expected_
File "/home/
File "cinder/
metadata = db_snapshot.
File "/home/
return getattr(self, key, default)
File "/home/
return self.impl.
File "/home/
value = self.callable_
File "/home/
sqlalchemy.