[Bug 1826252] Re: by-id/wwn symlinks for virtio-scsi and multipath-tools not present

Ryan Harper 1826252 at bugs.launchpad.net
Wed Apr 24 20:52:00 UTC 2019


Looks like I got it wrong.  The critical step is to have *both* serial
and wwn set to the same value in the -device config like so:

-device scsi-
hd,drive=drv2,serial=0x39cc071e72c64cc4,wwn=0x39cc071e72c64cc4

and then the sg_inq command succeeds like so:

# /usr/bin/sg_inq --export --inhex=/sys/block/sda/device/vpd_pg83 --raw
SCSI_IDENT_LUN_VENDOR=0x39cc071e72c64cc4
SCSI_IDENT_LUN_NAA_LOCAL=39cc071e72c64cc4

and then we get an ID_WWN export correctly:

http://paste.ubuntu.com/p/7hGsM2YJNZ/


** Changed in: curtin
       Status: New => Invalid

** Changed in: qemu (Ubuntu)
       Status: New => Invalid

** Changed in: sg3-utils (Ubuntu)
       Status: New => Invalid

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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/1826252

Title:
  by-id/wwn symlinks for virtio-scsi and multipath-tools not present

Status in curtin:
  Invalid
Status in qemu package in Ubuntu:
  Invalid
Status in sg3-utils package in Ubuntu:
  Invalid
Status in udev package in Ubuntu:
  Invalid

Bug description:
  In vmtest, we use virtio-scsi controller with scsi-hd devices.  When
  we supply them with a wwn property, 60-persistent-storage.rules will
  create a /dev/disk/by-id/wwn-<wwn value> to point to the disk with
  said property.

  In disco, we now include multipath-tools which brings in sg3-utils-
  udev which provides a 55-scsi-sg3_id.rules file which runs before 60
  -persistent-storage.rules.

  In the sg3 rules, it uses sg_inq to extract values from the device.

  The result is that a virtio-scsi/scsi-hd device does not expose ID_WWN
  in the same way, and if no serial value is set on the device, sg3
  rules will *create* and ID_SERIAL value from the device model and
  other attributes.

  This _prevents_ 60-persisten-storage.rules from running scsi_id which
  *does* find the the ID_WWN property on the scsi-hd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1826252/+subscriptions



More information about the foundations-bugs mailing list