[Bug 605186] New: starting domU with iscsi disk: cat: /sys/class/iscsi_session/session*/targetname: No such file or directory

http://bugzilla.novell.com/show_bug.cgi?id=605186 http://bugzilla.novell.com/show_bug.cgi?id=605186#c0 Summary: starting domU with iscsi disk: cat: /sys/class/iscsi_session/session*/targetname: No such file or directory Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Xen AssignedTo: jdouglas@novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- Blocker: --- starting domU with iscsi disk (startup works) I get these messages: # xm cre -c pvm/os-debian40 Using config file "./pvm/os-debian40". cat: /sys/class/iscsi_session/session*/targetname: No such file or directory Copy kernel /boot/vmlinuz-2.6.18-6-xen-686 from hda1 to /var/lib/xen/tmp/kernel.QwOQFp for booting cat: /sys/class/iscsi_session/session*/targetname: No such file or directory Started domain os-debian40 (id=20) Linux version 2.6.18-6-xen-686 (Debian 2.6.18.dfsg.1-26etch2) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Sat Feb 20 01:44:14 UTC 2010 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000080800000 (usable) 1328MB HIGHMEM available. 727MB LOWMEM available. ... using this xen config: extra="root=/dev/hda1" bootloader="/usr/lib/xen/boot/domUloader.py" builder="linux" bootargs="--entry=hda1:/boot/vmlinuz-2.6.18-6-xen-686,/boot/initrd.img-2.6.18-6-xen-686" disk=[ 'iscsi:iqn.2010-04.de.science-computing:os-debian40-flat.vmdk,hda,w' ] -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=605186 http://bugzilla.novell.com/show_bug.cgi?id=605186#c Jason Douglas <jdouglas@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jdouglas@novell.com, | |pmillett@novell.com AssignedTo|jdouglas@novell.com |jfehlig@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=605186 http://bugzilla.novell.com/show_bug.cgi?id=605186#c1 James Fehlig <jfehlig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |koenig@linux.de --- Comment #1 from James Fehlig <jfehlig@novell.com> 2010-07-21 18:56:13 UTC --- Yeah, the block-iscsi script has some race issues. For PV domUs, it is invoked with 'add' when the device is 'block-attached' to dom0 (so the boot loader can extract kernel/initrd). It is then invoked with 'remove' when boot loader is done. But then it is invoked again with 'add' when the domU is constructed :-(. I think you are hitting a race, where $session/targetname has not yet disappeared from the 'remove' while executing the second 'add'. IMO, the messages you are seeing are harmless and need to be squelched. Your domU runs and there are no problems otherwise correct? I will commit the following small patch to block-iscsi script to quiet the output --- block-iscsi (revision 3175) +++ block-iscsi (working copy) @@ -22,7 +22,7 @@ { unset dev for session in /sys/class/iscsi_session/session*; do - if [ "$1" = "`cat $session/targetname`" ]; then + if [ "$1" = "`cat $session/targetname 2>/dev/null`" ]; then dev=`basename $session/device/target*/*:0:*/block*/*` return fi @@ -35,7 +35,7 @@ for session in /sys/class/iscsi_session/session*; do dev=`basename $session/device/target*/*:0:*/block*/*` if [ "$dev" = "$1" ]; then - tgt=`cat $session/targetname` + tgt=`cat $session/targetname 2>/dev/null` return fi done BTW, a bug against SLE11 exists for the block-iscsi race issues. Although I haven't given it much time, I also haven't figured out a good solution. Ideas, including crazy ones, are accepted :-). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=605186 http://bugzilla.novell.com/show_bug.cgi?id=605186#c2 James Fehlig <jfehlig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|koenig@linux.de | Resolution| |FIXED --- Comment #2 from James Fehlig <jfehlig@novell.com> 2010-07-26 22:55:37 UTC --- I committed the above patch to our internal 11.3 and SLES11 SP1 repos. There will certainly be an update for SLES but I can't say the same for 11.3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=605186 https://bugzilla.novell.com/show_bug.cgi?id=605186#c3 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.3:35306 --- Comment #3 from Swamp Workflow Management <swamp@suse.com> 2010-09-20 11:17:11 UTC --- Update released for: virt-manager, vm-install, xen, xen-debugsource, xen-devel, xen-doc-html, xen-doc-pdf, xen-kmp, xen-kmp-default, xen-kmp-default-debuginfo, xen-kmp-desktop, xen-kmp-desktop-debuginfo, xen-kmp-pae, xen-kmp-pae-debuginfo, xen-libs, xen-libs-debuginfo, xen-tools, xen-tools-debuginfo, xen-tools-domU, xen-tools-domU-debuginfo Products: openSUSE 11.3 (debug, i586, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=605186 https://bugzilla.novell.com/show_bug.cgi?id=605186#c4 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:released:11.3:35306 |maint:released:11.3:35306 | |maint:released:sle11-sp1:35 | |305 --- Comment #4 from Swamp Workflow Management <swamp@suse.com> 2010-09-21 15:28:14 UTC --- Update released for: virt-manager, virt-manager-debuginfo, virt-manager-debugsource, vm-install, xen, xen-debuginfo, xen-debugsource, xen-devel, xen-doc-html, xen-doc-pdf, xen-kmp-debug, xen-kmp-default, xen-kmp-pae, xen-kmp-trace, xen-kmp-vmi, xen-libs, xen-tools, xen-tools-domU Products: SLE-DEBUGINFO 11-SP1 (i386, x86_64) SLE-DESKTOP 11-SP1 (i386, x86_64) SLE-SDK 11-SP1 (i386, x86_64) SLE-SERVER 11-SP1 (i386, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=605186 http://bugzilla.novell.com/show_bug.cgi?id=605186#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (605186) was mentioned in https://build.opensuse.org/request/show/45862 11.3 / xen -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com