Due to the nature of the machine and the firewalls in place I will not
be able to run the apport-collect command. The information I have
provided should be enough to discuss the issue

** Package changed: linux (Ubuntu) => udev (Ubuntu)

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

** Changed in: udev (Ubuntu)
       Status: New => Confirmed

-- 
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