RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1470605 - systemd-udevd does not create /dev/tape/by-id/ structure
Summary: systemd-udevd does not create /dev/tape/by-id/ structure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 09:55 UTC by Lukas Herbolt
Modified: 2020-01-08 09:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-08 09:46:10 UTC
Target Upstream Version:
Embargoed:


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

Description Lukas Herbolt 2017-07-13 09:55:05 UTC
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):
7.3 


How reproducible:
presenting scsi tapes to the system 

Steps to Reproduce:
1).

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 09:55:52 UTC
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.