Bug 712843

Summary: virtio-ports symbolic links are linked to the same device
Product: Red Hat Enterprise Linux 5 Reporter: Gal Hammer <ghammer>
Component: udevAssignee: Harald Hoyer <harald>
Status: CLOSED WORKSFORME QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.6   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-13 12:09:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gal Hammer 2011-06-13 11:07:47 UTC
After loading the virtio_console module udev create wrong symbolic links:

# ls -l /dev/virtio-ports/
total 0
lrwxrwxrwx 1 root root 11 Jun 13 10:55 com.redhat.rhevm.vdsm -> ../vport0p2
lrwxrwxrwx 1 root root 11 Jun 13 10:55 com.redhat.spice.0 -> ../vport0p2

Where it should be:

# ls -l /dev/virtio-ports/
total 0
lrwxrwxrwx 1 root root 11 Jun 13 10:55 com.redhat.rhevm.vdsm -> ../vport0p1
lrwxrwxrwx 1 root root 11 Jun 13 10:55 com.redhat.spice.0 -> ../vport0p2

QEmu command line:

/usr/libexec/qemu-kvm -S -M rhel6.0.0 -cpu Conroe -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name gal-rhel5-64 -uuid f72a1fbb-52e4-4b8b-9bf2-0cd802f0e26b -smbios type=1,manufacturer=Red Hat,product=RHEL,version=6Server-6.1.0.1.el6,serial=01875CB5-32BB-3470-85C2-8B2905F73EEF_00:21:5e:3f:dc:20,uuid=f72a1fbb-52e4-4b8b-9bf2-0cd802f0e26b -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/gal-rhel5-64.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2011-06-13T06:49:48 -boot c -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x4 -drive file=/rhev/data-center/53b3fb57-0056-408a-9937-0a128f01cb21/58653098-cd6e-4a86-9707-79d151a8c507/images/23b7345a-122f-4a67-a156-eed337788892/431e79de-af32-4ecf-ac67-7d4dd66b315c,if=none,id=drive-virtio-disk0,format=raw,serial=67-a156-eed337788892,cache=none,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=24,id=hostnet0,vhost=on,vhostfd=31 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:1a:4a:23:10:0c,bus=pci.0,addr=0x3 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/gal-rhel5-64.com.redhat.rhevm.vdsm,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm -chardev spicevmc,id=charchannel1,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0 -usb -spice port=5912,tls-port=5913,addr=0,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=inputs -k en-us -vga qxl -global qxl-vga.vram_size=67108864