Bug 1323789

Summary: libStorageMgmt: EMC symmetrix array, error during volume delete
Product: Red Hat Enterprise Linux 7 Reporter: Tony Asleson <tasleson>
Component: libstoragemgmtAssignee: Tony Asleson <tasleson>
Status: CLOSED ERRATA QA Contact: Bruno Goncalves <bgoncalv>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: bgoncalv, fge
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libstoragemgmt-1.3.2-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 06:10:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tony Asleson 2016-04-04 17:44:12 UTC
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.

Comment 2 Bruno Goncalves 2016-07-27 15:05:41 UTC
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.

Comment 4 errata-xmlrpc 2016-11-04 06:10:05 UTC
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