This bug is missing log files that will aid in diagnosing the problem.
While running an Ubuntu kernel (not a mainline or third-party kernel)
please enter the following command in a terminal window:

apport-collect 1815064

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable
to run this command, please add a comment stating that fact and change
the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the
Ubuntu Kernel Team.

** Changed in: linux (Ubuntu)
       Status: New => Incomplete

** Tags added: bionic

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1815064

Title:
  udev 237 incorrectly reporting serials for scsi devices

Status in udev package in Ubuntu:
  Confirmed

Bug description:
  system info:
  Kernel: Ubuntu 4.15.0-29.31-generic 4.15.18
  Package: udev 237-3ubuntu10.3
  Description:  Ubuntu 18.04.1 LTS
  Release:      18.04

  We've been running into the issue where lblk -O outputs the wwn
  instead of the serial for scsi devices. After some debugging I've come
  to the conclusing that /lib/udev/scsi_id is the underlying cause. It
  outputs the wwn of a disk in the ID_SERIAL_SHORT field, but does also
  export the actual serial in a separate field (ID_SCSI_SERIAL).

  sample output during udevadm test:
  IMPORT 'scsi_id --export --whitelisted -d /dev/sdas' 
/lib/udev/rules.d/60-persistent-storage.rules:50
  starting 'scsi_id --export --whitelisted -d /dev/sdas'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 'ID_SCSI=1'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 'ID_VENDOR=HGST'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 
'ID_VENDOR_ENC=HGST\x20\x20\x20\x20'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 'ID_MODEL=HUS726060ALS640'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 
'ID_MODEL_ENC=HUS726060ALS640\x20'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 'ID_REVISION=A280'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 'ID_TYPE=disk'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 
'ID_SERIAL=35000cca232ab84ac'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 
'ID_SERIAL_SHORT=5000cca232ab84ac'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 'ID_WWN=0x5000cca232ab84ac'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 
'ID_WWN_WITH_EXTENSION=0x5000cca232ab84ac'
  'scsi_id --export --whitelisted -d /dev/sdas'(out) 'ID_SCSI_SERIAL=        
1EK1A65J'

  ata devices to not have this issue because they use ata_id:
  IMPORT 'ata_id --export /dev/sdad' 
/lib/udev/rules.d/60-persistent-storage.rules:38
  starting 'ata_id --export /dev/sdad'
  'ata_id --export /dev/sdad'(out) 'ID_ATA=1'
  'ata_id --export /dev/sdad'(out) 'ID_TYPE=disk'
  'ata_id --export /dev/sdad'(out) 'ID_BUS=ata'
  'ata_id --export /dev/sdad'(out) 'ID_MODEL=HGST_HDN726060ALE614'
  'ata_id --export /dev/sdad'(out) 
'ID_MODEL_ENC=HGST\x20HDN726060ALE614\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'
  'ata_id --export /dev/sdad'(out) 'ID_REVISION=APGNW7JH'
  'ata_id --export /dev/sdad'(out) 'ID_SERIAL=HGST_HDN726060ALE614_NAHTWX0X'
  'ata_id --export /dev/sdad'(out) 'ID_SERIAL_SHORT=NAHTWX0X'
  <snip>
  'ata_id --export /dev/sdad'(out) 'ID_WWN=0x5000cca242d96928'
  'ata_id --export /dev/sdad'(out) 'ID_WWN_WITH_EXTENSION=0x5000cca242d96928'


  I am unsure if the fix should be in udev or lsblk, but I wanted to
  bring it up for discussion because the serial not being displayed
  properly.

  Kind regards,
  Sven Wiltink

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/1815064/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to