Hide Forgot
Description of problem: During the volume replication test we are seeing the following error in the lab: ====================================================================== ERROR: test_volume_replication (__main__.TestPlugin) ---------------------------------------------------------------------- Traceback (most recent call last): File "/testing/automated/21354/libstoragemgmt/test/plugin_test.py", line 570, in test_volume_replication lsm.Volume.REPLICATE_CLONE) File "/testing/automated/21354/libstoragemgmt/test/plugin_test.py", line 564, in _replicate_test self._volume_delete(volume_clone) File "/testing/automated/21354/libstoragemgmt/test/plugin_test.py", line 437, in _volume_delete self.c.volume_delete(volume) File "/testing/automated/21354/libstoragemgmt/test/plugin_test.py", line 217, in present rc = self.wait_for_it(_proxy_method_name, *rc) File "/testing/automated/21354/libstoragemgmt/test/plugin_test.py", line 240, in wait_for_it (s, percent, i) = self.job_status(job) File "/testing/automated/21354/libstoragemgmt/test/plugin_test.py", line 196, in present rc = getattr(self.o, _proxy_method_name)(*args, **kwargs) File "/testing/automated/21354/libstoragemgmt/python_binding/lsm/_common.py", line 540, in inner r = func(*args, **kwargs) File "/testing/automated/21354/libstoragemgmt/python_binding/lsm/_client.py", line 248, in job_status return self._tp.rpc('job_status', _del_self(locals())) File "/testing/automated/21354/libstoragemgmt/python_binding/lsm/_transport.py", line 153, in rpc (reply, msg_id) = self.read_resp() File "/testing/automated/21354/libstoragemgmt/python_binding/lsm/_transport.py", line 180, in read_resp raise LsmError(**e) LsmError: PLUGIN_BUG(2): Cannot use the device for this function because it is a Copy Session target It appears that we need to handle an additional replication state and remove it before removing the volume.
We do not have any EMC array that supports replication. Although, it passed our regression test on EMC CLARiiON. Verifying it as SanityOnly. Tested using libstoragemgmt-smis-plugin-1.3.2-7.el7.noarch.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-2415.html