Traceback (most recent call last):
', u' File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming
res = self.dispatcher.dispatch(message)
', u' File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 225, in dispatch
return self._do_dispatch(endpoint, method, ctxt, args)
', u' File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 195, in _do_dispatch
result = func(ctxt, **new_args)
', u' File "/opt/stack/new/cinder/cinder/volume/manager.py", line 4183, in get_manageable_snapshots
LOG.exception(_LE("Listing manageable snapshots failed, due "
', u' File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
self.force_reraise()
', u' File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
six.reraise(self.type_, self.value, self.tb)
', u' File "/opt/stack/new/cinder/cinder/volume/manager.py", line 4180, in get_manageable_snapshots
cinder_snapshots, marker, limit, offset, sort_keys, sort_dirs)
', u' File "/opt/stack/new/cinder/cinder/volume/drivers/pure.py", line 1029, in get_manageable_snapshots
name = self._get_snap_name(cinder_snap)
', u' File "/opt/stack/new/cinder/cinder/volume/drivers/pure.py", line 1093, in _get_snap_name
return "%s-cinder.%s" % (snapshot["volume_name"], snapshot["name"])
', u' File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/models.py", line 54, in __getitem__
return getattr(self, key)
', u' File "/opt/stack/new/cinder/cinder/db/sqlalchemy/models.py", line 659, in volume_name
return self.volume.name # pylint: disable=E1101
', u' File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 237, in __get__
return self.impl.get(instance_state(instance), dict_)
', u' File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 583, in get
value = self.callable_(state, passive)
', u' File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/strategies.py", line 517, in _load_for_state
(orm_util.state_str(state), self.key)
', u"DetachedInstanceError: Parent instance <Snapshot at 0x7f0db58d9ad0> is not bound to a Session; lazy load operation of attribute 'volume' cannot proceed
Full logs http://52.8.17.232/PureISCSIDriver-tempest-dsvm-trusty-aio-multipath-obj-scale/26/logs/screen-c-api.txt.gz?level=ERROR#_2016-11-10_04_08_40_638
Looks like there is something wrong with the way we are getting the snapshot objects from the query in volume/manager.py, in the driver it is just trying to look at snapshot['volume-name'] and breaking as it tries to lazy load the volume attribute.
Seeing a similar failure here in a CI job run during what appears to be teardown of the test so likely the lazy load failure is due to a deleted resource:
http:// logs.openstack. org/06/ 641806/ 12/check/ nova-next/ c7f23f4/ logs/screen- c-api.txt. gz?level= TRACE#_ Apr_20_ 23_19_28_ 844945
Apr 20 23:19:28.844945 ubuntu- bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault [None req-eed65cf5- f6db-4782- b63f-a7191697eb 5e tempest- TestEncryptedCi nderVolumes- 2130063619 tempest- TestEncryptedCi nderVolumes- 2130063619] Caught error: <class 'sqlalchemy. orm.exc. DetachedInstanc eError' > Parent instance <VolumeAttachment at 0x7f570edb7320> is not bound to a Session; lazy load operation of attribute 'volume' cannot proceed (Background on this error at: http:// sqlalche. me/e/bhk3): sqlalchemy. orm.exc. DetachedInstanc eError: Parent instance <VolumeAttachment at 0x7f570edb7320> is not bound to a Session; lazy load operation of attribute 'volume' cannot proceed (Background on this error at: http:// sqlalche. me/e/bhk3) bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault Traceback (most recent call last): bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault File "/opt/stack/ new/cinder/ cinder/ api/middleware/ fault.py" , line 85, in __call__ bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault return req.get_ response( self.applicatio n) bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault File "/usr/local/ lib/python3. 6/dist- packages/ webob/request. py", line 1314, in send bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault application, catch_exc_ info=False) bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault File "/usr/local/ lib/python3. 6/dist- packages/ webob/request. py", line 1278, in call_application bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault app_iter = application( self.environ, start_response) bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault File "/usr/local/ lib/python3. 6/dist- packages/ webob/dec. py", line 143, in __call__ bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault return resp(environ, start_response) bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault File "/usr/local/ lib/python3. 6/dist- packages/ webob/dec. py", line 129, in __call__ bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault resp = self.call_func(req, *args, **kw) bionic- rax-dfw- 0005375337 <email address hidden>[398]: ERROR cinder. api.middleware. fault File "/usr/local/ lib/python3. 6/dist- pa...
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-
Apr 20 23:19:28.844945 ubuntu-