With NEC driver, it gave following error message when the backup is complete and the volume is disconnected from the controller node in running non-disruptive backup.
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager [req-562caf62-260f-4dc9-8b34-67bbb0c202f8 07390ef4f5bc44e9953a4829066763b4 2d4abf67683b48c193427720e98e91aa - default default] Terminate snapshot connection failed: 'Snapshot' object has no attribute 'volume_attachment': AttributeError: 'Snapshot' object has no attribute 'volume_attachment'
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager Traceback (most recent call last):
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager File "/usr/lib/python3.6/site-packages/cinder/volume/manager.py", line 1950, in terminate_connection_snapshot
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager force=force)
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/nec/volume.py", line 163, in terminate_connection_snapshot
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager **kwargs)
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/nec/volume_helper.py", line 1392, in fc_terminate_connection_snapshot
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager ret = self._fc_terminate_connection(snapshot, connector)
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/nec/volume_helper.py", line 1338, in _fc_terminate_connection
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager self._is_multi_attachment(volume, connector)):
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/nec/volume_helper.py", line 1409, in _is_multi_attachment
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager attach_list = volume.volume_attachment
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager AttributeError: 'Snapshot' object has no attribute 'volume_attachment'
2020-07-17 06:01:39.637 104 ERROR cinder.volume.manager
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server [req-562caf62-260f-4dc9-8b34-67bbb0c202f8 07390ef4f5bc44e9953a4829066763b4 2d4abf67683b48c193427720e98e91aa - default default] Exception during message handling: cinder.exception.VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Terminate snapshot connection failed: 'Snapshot' object has no attribute 'volume_attachment'
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.6/site-packages/cinder/volume/manager.py", line 1950, in terminate_connection_snapshot
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server force=force)
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/nec/volume.py", line 163, in terminate_connection_snapshot
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server **kwargs)
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/nec/volume_helper.py", line 1392, in fc_terminate_connection_snapshot
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server ret = self._fc_terminate_connection(snapshot, connector)
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/nec/volume_helper.py", line 1338, in _fc_terminate_connection
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server self._is_multi_attachment(volume, connector)):
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.6/site-packages/cinder/volume/drivers/nec/volume_helper.py", line 1409, in _is_multi_attachment
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server attach_list = volume.volume_attachment
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server AttributeError: 'Snapshot' object has no attribute 'volume_attachment'
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.6/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.6/site-packages/oslo_messaging/rpc/dispatcher.py", line 274, in dispatch
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.6/site-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server File "/usr/lib/python3.6/site-packages/cinder/volume/manager.py", line 1955, in terminate_connection_snapshot
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server raise exception.VolumeBackendAPIException(data=err_msg)
2020-07-17 06:01:39.639 104 ERROR oslo_messaging.rpc.server cinder.exception.VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Terminate snapshot connection failed: 'Snapshot' object has no attribute 'volume_attachment'
Fix proposed to branch: master /review. opendev. org/741597
Review: https:/