Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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