Bug 1296249

Summary: Message appearing ' <xyz>.device appeared twice with different sysfs paths'
Product: Red Hat Enterprise Linux 7 Reporter: John Pittman <jpittman>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.2CC: chakumar, chorn, christophe.belle, fadamo, fsumsal, jaeshin, jpittman, jscotka, jshivers, lnykryn, nkshirsa, pousley, qguo, rabraham, systemd-maint-list, vumrao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-219-20.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 00:49:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1203710, 1289485, 1313485, 1364088    

Description John Pittman 2016-01-06 17:24:31 UTC
Description of problem:

The following message is appearing:

[   29.087179] systemd[1]: Device dev-disk-by\x2did-scsi\x2d<wwid>.device appeared twice with different sysfs paths /sys/devices/pci0000:00/0000:00:02.0/0000:06:00.2/net/em51/ctlr_0/host1/rport-1:0-3/target1:0:2/1:0:2:26/block/sdu and /sys/devices/pci0000:00/0000:00:02.0/0000:06:00.3/net/em52/ctlr_1/host2/rport-2:0-3/target2:0:2/2:0:2:26/block/sdbm

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

systemd-219-19.el7.x86_64
systemd-libs-219-19.el7.x86_64
systemd-libs-219-19.el7.x86_64
systemd-sysv-219-19.el7.x86_64

How reproducible:

Upgrade to mentioned levels; boot system

Actual results:

Recieve messages

Expected results:

Messages should be repressed

Additional info:

Patch is already upstream found at http://cgit.freedesktop.org/systemd/systemd/commit/?id=5259bcf6a638d8d489db1ddefd55327aa15f3e51

Requesting this commit be included in RHEL 7.3.

Please let me know if I can help in any way.

John

Comment 1 Lukáš Nykrýn 2016-01-07 10:46:50 UTC
sounds reasonable -> devel_ack

Comment 3 Lukáš Nykrýn 2016-02-15 11:54:52 UTC
pushed to staging branch https://github.com/lnykryn/systemd-rhel/commit/ad2cedec3cf3e6ddefd70d9f3dece3ca837676cf -> post

Comment 5 yuk 2016-07-27 13:14:54 UTC
Same here:

.....
.....
Jul 27 15:07:51 sgsvrdbora011lx systemd: Device dev-disk-by\x2did-wwn\x2d0x6005076303ffd12e0000000000008507.device appeared twice with different sysfs paths /sys/devices/pci0000:40/0000:40:03.0/0000:51:00.6/host5/rport-5:0-8/target5:0:8/5:0:8:15/block/sddl and /sys/devices/pci0000:00/0000:00:03.0/0000:11:00.6/host4/rport-4:0-8/target4:0:8/4:0:8:15/block/sdaz
Jul 27 15:07:51 sgsvrdbora011lx systemd: Device dev-disk-by\x2did-scsi\x2d3600507630bffc1760000000000008499.device appeared twice with different sysfs paths /sys/devices/pci0000:40/0000:40:03.0/0000:51:00.6/host5/rport-5:0-3/target5:0:3/5:0:3:0/block/sdbq and /sys/devices/pci0000:40/0000:40:03.0/0000:51:00.6/host5/rport-5:0-2/target5:0:2/5:0:2:0/block/sdbp
Jul 27 15:07:51 sgsvrdbora011lx systemd: Device dev-disk-by\x2did-wwn\x2d0x600507630bffc1760000000000008499.device appeared twice with different sysfs paths /sys/devices/pci0000:40/0000:40:03.0/0000:51:00.6/host5/rport-5:0-3/target5:0:3/5:0:3:0/block/sdbq and /sys/devices/pci0000:40/0000:40:03.0/0000:51:00.6/host5/rport-5:0-2/target5:0:2/5:0:2:0/block/sdbp
Jul 27 15:07:51 sgsvrdbora011lx systemd: Device dev-disk-by\x2dlabel-IOPAVOT04.device appeared twice with different sysfs paths /sys/devices/pci0000:40/0000:40:03.0/0000:51:00.6/host5/rport-5:0-4/target5:0:4/5:0:4:4/block/sdbv and /sys/devices/virtual/block/dm-21
Jul 27 15:07:51 sgsvrdbora011lx systemd: Device dev-disk-by\x2dlabel-IOPADAT07.device appeared twice with different sysfs paths /sys/devices/pci0000:40/0000:40:03.0/0000:51:00.6/host5/rport-5:0-4/target5:0:4/5:0:4:12/block/sdcc and /sys/devices/virtual/block/dm-29
....
....

Comment 9 Frantisek Sumsal 2016-09-20 12:40:59 UTC
Verified with systemd-219-30.el7.

Old package:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Downgrade warning about duplicate device names
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'dd if=/dev/zero of=diskdoV.img bs=1M count=512' (Expected 0, got 0)
:: [   PASS   ] :: Command 'losetup -P /dev/loop10 diskdoV.img' (Expected 0, got 0)
:: [   PASS   ] :: Command 'fdisk /dev/loop10 <<< 'o n p   +100M n p   +150M w'' (Expected 0, got 0)
:: [   PASS   ] :: Command 'fdisk -l /dev/loop10' (Expected 0, got 0)
:: [   PASS   ] :: Command 'systemd-analyze set-log-level debug' (Expected 0, got 0)
:: [   PASS   ] :: Command 'mkfs -t ext4 /dev/loop10p1' (Expected 0, got 0)
:: [   PASS   ] :: Command 'e2label /dev/loop10p1 systemd-test' (Expected 0, got 0)
:: [   PASS   ] :: Command 'mkfs -t ext4 /dev/loop10p2' (Expected 0, got 0)
:: [   PASS   ] :: Command 'e2label /dev/loop10p2 systemd-test' (Expected 0, got 0)
:: [   PASS   ] :: Command 'journalctl -r _PID=1 -perr --no-pager -l' (Expected 0, got 0)
:: [   FAIL   ] :: File '/var/tmp/tmp.mUwkvcKqI1' should not contain 'appeared twice.*loop10/loop10p' 
:: [   PASS   ] :: Command 'journalctl -r _PID=1 -pdebug --no-pager -l' (Expected 0, got 0)
:: [   PASS   ] :: File '/var/tmp/tmp.OmxrsDdbQK' should contain 'appeared twice.*loop10/loop10p' 
:: [   PASS   ] :: Command 'systemd-analyze set-log-level info' (Expected 0, got 0)
:: [   PASS   ] :: Command 'losetup -d /dev/loop10' (Expected 0, got 0)
:: [   PASS   ] :: Command 'rm -f diskdoV.img' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 2s
:: [   LOG    ] :: Assertions: 15 good, 1 bad
:: [   FAIL   ] :: RESULT: Downgrade warning about duplicate device names

New package:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Downgrade warning about duplicate device names
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'dd if=/dev/zero of=diskre3.img bs=1M count=512' (Expected 0, got 0)
:: [   PASS   ] :: Command 'losetup -P /dev/loop10 diskre3.img' (Expected 0, got 0)
:: [   PASS   ] :: Command 'fdisk /dev/loop10 <<< 'o n p   +100M n p   +150M w'' (Expected 0, got 0)
:: [   PASS   ] :: Command 'fdisk -l /dev/loop10' (Expected 0, got 0)
:: [   PASS   ] :: Command 'systemd-analyze set-log-level debug' (Expected 0, got 0)
:: [   PASS   ] :: Command 'mkfs -t ext4 /dev/loop10p1' (Expected 0, got 0)
:: [   PASS   ] :: Command 'e2label /dev/loop10p1 systemd-test' (Expected 0, got 0)
:: [   PASS   ] :: Command 'mkfs -t ext4 /dev/loop10p2' (Expected 0, got 0)
:: [   PASS   ] :: Command 'e2label /dev/loop10p2 systemd-test' (Expected 0, got 0)
:: [   PASS   ] :: Command 'journalctl -r _PID=1 -perr --no-pager -l' (Expected 0, got 0)
:: [   PASS   ] :: File '/var/tmp/tmp.Rf2Kuf0cB3' should not contain 'appeared twice.*loop10/loop10p' 
:: [   PASS   ] :: Command 'journalctl -r _PID=1 -pdebug --no-pager -l' (Expected 0, got 0)
:: [   PASS   ] :: File '/var/tmp/tmp.AZlpb1aPAM' should contain 'appeared twice.*loop10/loop10p' 
:: [   PASS   ] :: Command 'systemd-analyze set-log-level info' (Expected 0, got 0)
:: [   PASS   ] :: Command 'losetup -d /dev/loop10' (Expected 0, got 0)
:: [   PASS   ] :: Command 'rm -f diskre3.img' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 16 good, 0 bad
:: [   PASS   ] :: RESULT: Downgrade warning about duplicate device names

Comment 11 errata-xmlrpc 2016-11-04 00:49:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2216.html