Ubuntu 16.10: lsscsi shows wrong wwn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lsscsi (Debian) |
Fix Released
|
Unknown
|
|||
lsscsi (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
== Comment: #0 - Ping Tian Han <email address hidden> - 2016-10-25 02:01:23 ==
---Problem Description---
The 'lsscsi -w' gives a wrong WWN:
% lsscsi -w | grep sda
[0:0:1:0] disk 0x6005076304ffc
% ls -l /dev/disk/by-id/ | grep 'wwn.*sda'
lrwxrwxrwx 1 root root 9 Oct 24 21:20 wwn-0x600507630
lrwxrwxrwx 1 root root 10 Oct 24 21:20 wwn-0x600507630
lrwxrwxrwx 1 root root 10 Oct 24 21:20 wwn-0x600507630
lrwxrwxrwx 1 root root 10 Oct 24 21:20 wwn-0x600507630
lrwxrwxrwx 1 root root 10 Oct 24 21:20 wwn-0x600507630
Contact Information = Ping Tian <email address hidden>
Machine Type = lpar
---Debugger---
A debugger was configured, however the system did not enter into the debugger
Userspace tool common name: lsscsi
Userspace rpm: 0.27-3
The userspace tool has the following bit modes: 64-bit
Userspace tool obtained from project website: na
*Additional Instructions for Ping Tian <email address hidden>:
-Post a private note with access information to the machine that the bug is occuring on.
-Attach ltrace and strace of userspace application.
== Comment: #1 - VIPIN K. PARASHAR <email address hidden> - 2016-10-25 05:50:58 ==
lsscsi -w output
==========
[0:0:5:0] disk 0x6005076400818
[0:0:5:1] disk 0x6005076400818
[0:0:5:2] disk 0x6005076400818
[0:0:5:3] disk 0x6005076400818
[0:0:5:4] disk 0x6005076400818
/dev/disk/by-id/ contents
===============
# ls -l /dev/disk/by-id/ | grep wwn | awk '{printf("%s %s %s\n", $9, $10, $11)}'
wwn-0x600507640
wwn-0x600507640
wwn-0x600507640
wwn-0x600507640
wwn-0x600507640
#
Last 3 digits of wwn id is getting tripped in lssscsi output.
This is causing wwn to differ. Its a bug in lsscsi code.
== Comment: #2 - VIPIN K. PARASHAR <email address hidden> - 2016-10-25 05:56:59 ==
Pull request with the fix reading "Fix truncation of 128-bit wwn"
is already raised upstream at
https:/
== Comment: #3 - VIPIN K. PARASHAR <email address hidden> - 2016-10-25 06:06:38 ==
lsscsi binary created with fix prints full WWN
without any truncation.
# ./lsscsi -V
version: 0.28 2014/09/30 [svn: r120]
#
# ./lsscsi -w
[0:0:5:0] disk IBM 2145 0000 0x6005076400818
[0:0:5:1] disk IBM 2145 0000 0x6005076400818
[0:0:5:2] disk IBM 2145 0000 0x6005076400818
[0:0:5:3] disk IBM 2145 0000 0x6005076400818
[0:0:5:4] disk IBM 2145 0000 0x6005076400818
#
# ls -l /dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
#
tags: | added: architecture-ppc64le bugnameltc-147821 severity-high targetmilestone-inin1704 |
Changed in ubuntu: | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
affects: | ubuntu → lsscsi (Ubuntu) |
Changed in lsscsi (Ubuntu): | |
status: | Confirmed → Triaged |
summary: |
- pVM:Ubuntu 16.10: lsscsi shows wrong wwn + Ubuntu 16.10: lsscsi shows wrong wwn |
tags: | added: patch |
Changed in lsscsi (Debian): | |
status: | Unknown → New |
Changed in lsscsi (Debian): | |
status: | New → Fix Released |
Setting this for low priority for now.