Bug 1470605 - systemd-udevd does not create /dev/tape/by-id/ structure
systemd-udevd does not create /dev/tape/by-id/ structure
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: systemd-maint
Depends On:
  Show dependency treegraph
Reported: 2017-07-13 05:55 EDT by Lukas Herbolt
Modified: 2017-08-17 05:54 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
output of reproducer script (7.74 KB, text/plain)
2017-07-13 05:55 EDT, Lukas Herbolt
no flags Details
sosreport with systemd-udevd in debug mode (8.85 MB, application/x-xz)
2017-07-13 05:55 EDT, Lukas Herbolt
no flags Details

  None (edit)
Description Lukas Herbolt 2017-07-13 05:55:05 EDT
Created attachment 1297481 [details]
output of reproducer script

Description of problem:
When you load or present new tapes to the system and uevent is generated for those devices the systemd-udevd does not create the /dev/tape/by-id always.

It's not happening all the times but is quite easily reproducible with scsi_debug

Version-Release number of selected component (if applicable):

How reproducible:
presenting scsi tapes to the system 

Steps to Reproduce:

for ((i=0; i<30; i++)); do modprobe scsi_debug ptype=1 add_host=2; sleep 5 ; ll -r /dev/tape/ ; modprobe -r scsi_debug ; done

2) check the result of the ls. You should have 4 symlinks there, to st0 nst0 st1 and nst1 as you are loading 2 tapes.

Actual results:
The symlinks are not created allways.

Expected results:
The symlinks are created allways.

Additional info:
When you map the tape and the symlinks are not created, you can fix it by running udevadm trigger.

Attaching journalctl -f with logs from systemd-udevd in debug mode.
Comment 2 Lukas Herbolt 2017-07-13 05:55 EDT
Created attachment 1297482 [details]
sosreport with systemd-udevd in debug mode

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