Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
Some hyphens end up as unicode minus sign (\x2d) in systemd journal message:
Device dev-disk-by\x2did-wwn\x2d0xceb4b5944ee25001.device appeared twice with different sysfs paths...
Note that the hyphen as unicode minus appears in only one place, in between the 'by' and the next word, as "id", "path", "uuid".
Version-Release number of selected component (if applicable):
Installed Packages
Name : systemd
Arch : x86_64
Version : 219
Release : 19.el7
Size : 21 M
Repo : installed
From repo : RHEL-7-RTT
How reproducible:
Consistently, also shown but not remarked on in https://bugzilla.redhat.com/show_bug.cgi?id=1296249.
Steps to Reproduce:
1. You need to generate the error message, probably by messing with multipath.
Actual results:
Unicode character substituted for ASCII dash in warning message.
Expected results:
I would expect all characters to be ASCII.
Additional info:
I think this was introduced recently. I've seen these messages fairly frequently, and I don't remember seeing the unicode character previously.
There is a method unit-name-from_path() which mangles paths, substituting '-'s for '/'s and unicode -'s for '-'s.
Sometimes a path is just a path, sometimes it's considered a name. When it is considered a name it is escaped in this fashion.
So, these by-* paths can be escaped differently or not escaped or converted to names, as the case may be, e.g.:
MESSAGE=found 'b65:96' claiming '/run/udev/links/\x2fdisk\x2fby-id\x2fwwn-0xcc9d60494ee25001', where some '/'s are escaped with unicode '/'s
MESSAGE=LINK 'disk/by-id/ata-WDC_WD10EFRX-68PJCN0_WD-WCC4JLVFF3U9' /usr/lib/udev/rules.d/60-persistent-storage.rules:42, no escaping