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 1626923

Summary: path can't be restored automatically after link down and link up from switch port
Product: Red Hat Enterprise Linux 7 Reporter: Lin Li <lilin>
Component: device-mapper-multipathAssignee: Ben Marzinski <bmarzins>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Lin Li <lilin>
Severity: urgent Docs Contact:
Priority: medium    
Version: 7.6CC: agk, bmarzins, guazhang, heinzm, jbrassow, msnitzer, prajnoha
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 23:04:24 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:
Attachments:
Description Flags
test case which can reproduce the issue
none
test log of running the test case none

Description Lin Li 2018-09-10 06:34:41 UTC
Description of problem:
path can't be restored automatically after link down and link up from switch port

Version-Release number of selected component (if applicable):
DISTRO=RHEL-7.6-20180830.1

How reproducible:
always

Steps to Reproduce:
1.install and config multipath on lpfc_fc driver
2.Running [multipath -ll 360a98000324669436c2b45666c567869 ]...
360a98000324669436c2b45666c567869 dm-2 NETAPP  ,LUN
size=2.0G features='4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handle' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 1:0:0:2 sdd  8:48   failed faulty running
| `- 4:0:0:2 sdn  8:208  active ready running
`-+- policy='service-time 0' prio=10 status=enabled
  |- 1:0:1:2 sdi  8:128  active ready running
  `- 4:0:1:2 sds  65:32  active ready running
Return:0

3.login switch to bring link down
4.loging switch to bring link up

5.multipath -ll
Running [multipath -ll 360a98000324669436c2b45666c567869 ]...
360a98000324669436c2b45666c567869 dm-2 NETAPP  ,LUN
size=2.0G features='4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handle' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| `- 4:0:0:2 sdn  8:208  active ready running
`-+- policy='service-time 0' prio=10 status=enabled
  |- 1:0:1:2 sdi  8:128  active ready running
  `- 4:0:1:2 sds  65:32  active ready running
Return:0

6.multipath -ll -v3
Sep 07 04:59:37 | sdd: not found in pathvec
Sep 07 04:59:37 | sdd: mask = 0x35
Sep 07 04:59:37 | sdd: dev_t = 8:48
Sep 07 04:59:37 | sdd: size = 4194304
Sep 07 04:59:37 | sdd: vendor = NETAPP
Sep 07 04:59:37 | sdd: product = LUN
Sep 07 04:59:37 | sdd: rev = 820a
Sep 07 04:59:37 | sdd: h:b:t:l = 1:0:0:2
Sep 07 04:59:37 | SCSI target 1:0:0 -> FC rport 1:0-2
Sep 07 04:59:37 | sdd: tgt_node_name = 0x500a0980891b8dc5
Sep 07 04:59:37 | (null): (NETAPP  :LUN             ) vendor/product whitelisted
Sep 07 04:59:37 | sdd: path state = transport-offline



Actual results:
path state is transport-offline, but path can't be restored automatically.

Expected results:
path can be restored automatically after link down and link up

Additional info:
server name is storageqe-05.rhts.eng.bos.redhat.com

Comment 2 Lin Li 2018-09-10 06:37:54 UTC
Created attachment 1482002 [details]
test case which can reproduce the issue

Comment 3 Lin Li 2018-09-10 06:39:26 UTC
Created attachment 1482003 [details]
test log of running the test case

Comment 4 Lin Li 2018-09-10 06:45:32 UTC
The main script is main.pl in comment 2.

Comment 9 Ben Marzinski 2020-11-04 23:04:24 UTC
Since I was never able to reproduce this, and RHEL7 is pretty much finished, I'm closing this.  If you can reproduce it on RHEL-8, feel free to reopen it a a RHEL-8 bug.