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 1687841 - lsscsi: sdev_scandir_sort: left parse failed: nvme0n1
Summary: lsscsi: sdev_scandir_sort: left parse failed: nvme0n1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lsscsi
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.4
Assignee: Tomáš Bžatek
QA Contact: Marco Patalano
URL:
Whiteboard:
Depends On:
Blocks: 1733366 1845977
TreeView+ depends on / blocked
 
Reported: 2019-03-12 13:28 UTC by Marco Patalano
Modified: 2021-09-06 15:26 UTC (History)
9 users (show)

Fixed In Version: lsscsi-0.32-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 14:56:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:1634 0 None None None 2021-05-18 14:57:11 UTC

Description Marco Patalano 2019-03-12 13:28:10 UTC
Description of problem: When running lsscsi on a system with a connection to an NVMe namespace on our NetApp array, I am seeing the following:

# lsscsi
[0:2:0:0]    disk    DELL     PERC H330 Mini   4.27  /dev/sda 
[5:0:0:0]    disk    NETAPP   LUN C-Mode       9500  /dev/sdd 
[12:0:0:0]   disk    NETAPP   LUN C-Mode       9500  /dev/sdb 
[12:0:1:0]   disk    NETAPP   LUN C-Mode       9500  /dev/sdc 
sdev_scandir_sort: left parse failed: nvme0n1
sdev_scandir_sort: left parse failed: nvme0n2
sdev_scandir_sort: left parse failed: nvme0n1
sdev_scandir_sort: left parse failed: nvme0n4
[N:0:49728:1] disk    NetApp ONTAP Controller__1                 /dev/nvme0n1
[N:0:49728:4] disk    NetApp ONTAP Controller__4                 /dev/nvme0n4
[N:0:49728:2] disk    NetApp ONTAP Controller__2                 /dev/nvme0n2
[N:0:49728:3] disk    NetApp ONTAP Controller__3                 /dev/nvme0n3


Version-Release number of selected component (if applicable):
 rpm -qf /usr/bin/lsscsi
lsscsi-0.30-1.el8.x86_64

# uname -r
4.18.0-74.el8.x86_64


How reproducible: 100%

Steps to Reproduce:
1. Connect to NVMe namespace:
#nvme connect -t fc -a nn-0x202700a098cbcac6:pn-0x202800a098cbcac6 -w nn-0x20000024ff19bb56:pn-0x21000024ff19bb56 -n nqn.1992-08.com.netapp:sn.caef2744ff9511e88ed800a098cbcaa2:subsystem.st28_1_nvme_ss_1_1
2. # lsscsi


Actual results: Output displays "sdev_scandir_sort: left parse failed: nvme0n1"


Expected results: No "left parse failed" message should be displayed


Additional info: I do not see this problem on a system with a local NVMe disk:
# lsscsi
[0:2:0:0]    disk    DELL     PERC H330 Mini   4.27  /dev/sda 
[N:0:0:1]    disk    Dell Express Flash NVMe PM1725 1.6TB A__1  /dev/nvme0n1

Comment 1 heyi 2019-11-25 06:24:02 UTC
I ran into the same issue.

Comment 2 vincent chen 2020-03-18 08:27:31 UTC
same issue was seen on RHEL8.2

and from google search, it seems a bug
https://bugs.launchpad.net/ubuntu/+source/lsscsi/+bug/282518

Comment 3 vincent chen 2020-03-18 08:28:03 UTC
same issue was seen on RHEL8.2

and from google search, it seems a bug
https://bugs.launchpad.net/ubuntu/+source/lsscsi/+bug/282518

Comment 4 Ewan D. Milne 2020-03-19 14:11:51 UTC
I am wondering why "lsscsi" is looking at NVMe devices, since NVMe is
not SCSI.  The ubuntu link says this was caused by a change in the
SCSI subsystem, but doesn't say what that was.

(It is a common belief that NVMe devices are supposed to work like
 SCSI devices from a protocol standpoint, but this is not the case.
 That doesn't mean that simple user commands that people have been
 accustomed to using should not work though, if it's easy enough.)

Comment 5 Brahadambal Srinivasan 2020-05-25 14:21:28 UTC
Maybe, it is fixed in revision 152?

https://fossies.org/diffs/lsscsi/0.30r149_vs_0.30r152/src/lsscsi.c-diff.html

Comment 6 Tomáš Bžatek 2020-05-25 16:24:01 UTC
(In reply to Brahadambal Srinivasan from comment #5)
> Maybe, it is fixed in revision 152?
> 
> https://fossies.org/diffs/lsscsi/0.30r149_vs_0.30r152/src/lsscsi.c-diff.html

For the record, lsscsi-0.30-1.el8 is built from lsscsi-030r154. While there's 0.31r160 upstream release it doesn't seem to contain any related fixes.

Comment 8 Marco Patalano 2020-06-04 12:24:05 UTC
Hello Tomas,

I happened to check today and am not able to reproduce this issue with RHEL-8.2 and lsscsi-0.30-1.el8:

# lsscsi
[0:0:0:0]    disk    ATA      INTEL SSDSC2CW12 400i  /dev/sda 
[2:0:0:0]    disk    NETAPP   LUN C-Mode       9700  /dev/sdb 
[2:0:1:0]    disk    NETAPP   LUN C-Mode       9700  /dev/sdc 
[2:0:2:0]    disk    NETAPP   LUN C-Mode       9700  /dev/sdd 
[2:0:3:0]    disk    NETAPP   LUN C-Mode       9700  /dev/sde 
[3:0:0:0]    disk    NETAPP   LUN C-Mode       9700  /dev/sdf 
[N:0:12161:1] disk    NetApp ONTAP Controller__1                 /dev/nvme0n1
[N:1:10560:1] disk    NetApp ONTAP Controller__1                 /dev/nvme1n1
[N:2:12225:1] disk    NetApp ONTAP Controller__1                 /dev/nvme2n1
[N:3:10624:1] disk    NetApp ONTAP Controller__1                 /dev/nvme3n1


The particular array was upgraded to OnTap 9.7 a few weeks ago so maybe related?

Marco

Comment 9 Tomáš Bžatek 2020-06-10 14:19:46 UTC
Thanks Marco, can you please check exact kernel version? Is this still the 4.18.0-74?

Comment 10 Marco Patalano 2020-06-10 14:43:32 UTC
Hello Tomas,

This was with kernel-4.18.0-193.el8 which was included in the RHEL-8.2 RC 1.3 compose.

Marco

Comment 11 Tomáš Bžatek 2020-07-03 20:07:52 UTC
FYI, managed to reproduce this locally using nvmetcli loop with two namespaces and two connections:

# ./lsscsi
sdev_scandir_sort: left parse failed: nvme0c0n1
[N:0:1:1]    disk    Linux__1                                   -        
[N:0:1:2]    disk    Linux__2                                   -        
sdev_scandir_sort: left parse failed: nvme0c1n2
[N:0:2:2]    disk    Linux__2                                   -        
[N:0:2:1]    disk    Linux__1                                   -        

Bug is present in latest upstream lsscsi-0.31 release as well. Unrelated to RHEL8 either, reproducible on kernel 5.6.16.

Comment 17 Marco Patalano 2020-11-18 16:38:52 UTC
Reproduce with lsscsi-0.30-1.el8.x86_64:

[root@pnate-client-01 ~]# rpm -qa lsscsi
lsscsi-0.30-1.el8.x86_64

# lsscsi
[0:2:0:0]    disk    DELL     PERC H730P Mini  4.30  /dev/sda 
sdev_scandir_sort: left parse failed: nvme3c0n8
sdev_scandir_sort: left parse failed: nvme3c0n16
sdev_scandir_sort: left parse failed: nvme3c0n6
sdev_scandir_sort: left parse failed: nvme3c0n8
sdev_scandir_sort: left parse failed: nvme3c0n18
sdev_scandir_sort: left parse failed: nvme3c0n14
sdev_scandir_sort: left parse failed: nvme3c0n20
[N:3:256:8]  disk    NetApp ONTAP Controller__8                 -        
[N:3:256:18] disk    NetApp ONTAP Controller__18                -        
[N:3:256:6]  disk    NetApp ONTAP Controller__6                 -        
[N:3:256:16] disk    NetApp ONTAP Controller__16                -        
[N:3:256:4]  disk    NetApp ONTAP Controller__4                 -        

Verified with lsscsi-0.32-2.el8.x86_64:
# rpm -qa lsscsi
lsscsi-0.32-2.el8.x86_64

[root@pnate-client-01 ~]# lsscsi
[0:2:0:0]    disk    DELL     PERC H730P Mini  4.30  /dev/sda 
[N:3:256:1]  disk    NetApp ONTAP Controller__1                 -        
[N:3:256:2]  disk    NetApp ONTAP Controller__2                 -        
[N:3:256:3]  disk    NetApp ONTAP Controller__3                 -        
[N:3:256:4]  disk    NetApp ONTAP Controller__4                 -        
[N:3:256:5]  disk    NetApp ONTAP Controller__5                 -        
[N:3:256:6]  disk    NetApp ONTAP Controller__6                 -        
[N:3:256:7]  disk    NetApp ONTAP Controller__7                 -        
[N:3:256:8]  disk    NetApp ONTAP Controller__8                 -        
[N:3:256:9]  disk    NetApp ONTAP Controller__9                 -        
[N:3:256:10] disk    NetApp ONTAP Controller__10                -        
[N:3:256:11] disk    NetApp ONTAP Controller__11                -        
[N:3:256:12] disk    NetApp ONTAP Controller__12                -        
[N:3:256:13] disk    NetApp ONTAP Controller__13                -        
[N:3:256:14] disk    NetApp ONTAP Controller__14                -        
[N:3:256:15] disk    NetApp ONTAP Controller__15                -        
[N:3:256:16] disk    NetApp ONTAP Controller__16                -        
[N:3:256:17] disk    NetApp ONTAP Controller__17                -        
[N:3:256:18] disk    NetApp ONTAP Controller__18                -        
[N:3:256:19] disk    NetApp ONTAP Controller__19                -        
[N:3:256:20] disk    NetApp ONTAP Controller__20                -        
[N:3:192:1]  disk    NetApp ONTAP Controller__1                 -        
[N:3:192:2]  disk    NetApp ONTAP Controller__2                 -        
[N:3:192:3]  disk    NetApp ONTAP Controller__3                 -        
[N:3:192:4]  disk    NetApp ONTAP Controller__4                 -        
[N:3:192:5]  disk    NetApp ONTAP Controller__5                 -        
[N:3:192:6]  disk    NetApp ONTAP Controller__6                 -        
[N:3:192:7]  disk    NetApp ONTAP Controller__7                 -        
[N:3:192:8]  disk    NetApp ONTAP Controller__8                 -        
[N:3:192:9]  disk    NetApp ONTAP Controller__9                 -        
[N:3:192:10] disk    NetApp ONTAP Controller__10                -        
[N:3:192:11] disk    NetApp ONTAP Controller__11                -        
[N:3:192:12] disk    NetApp ONTAP Controller__12                -        
[N:3:192:13] disk    NetApp ONTAP Controller__13                -        
[N:3:192:14] disk    NetApp ONTAP Controller__14                -        
[N:3:192:15] disk    NetApp ONTAP Controller__15                -        
[N:3:192:16] disk    NetApp ONTAP Controller__16                -        
[N:3:192:17] disk    NetApp ONTAP Controller__17                -        
[N:3:192:18] disk    NetApp ONTAP Controller__18                -        
[N:3:192:19] disk    NetApp ONTAP Controller__19                -        
[N:3:192:20] disk    NetApp ONTAP Controller__20                -        
[N:3:257:1]  disk    NetApp ONTAP Controller__1                 -        
[N:3:257:2]  disk    NetApp ONTAP Controller__2                 -        
[N:3:257:3]  disk    NetApp ONTAP Controller__3                 -        
[N:3:257:4]  disk    NetApp ONTAP Controller__4                 -        
[N:3:257:5]  disk    NetApp ONTAP Controller__5                 -        
[N:3:257:6]  disk    NetApp ONTAP Controller__6                 -

Comment 18 Marco Patalano 2020-11-24 13:12:46 UTC
Verified with lsscsi-0.32-2.el8 which is available in RHEL-8.4 compose RHEL-8.4.0-20201121.d.2.

Comment 20 errata-xmlrpc 2021-05-18 14:56:54 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 (lsscsi bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2021:1634


Note You need to log in before you can comment on or make changes to this bug.