[Bug 893788] New: kiwi: netboot optimize network setup in initrd on multiple NIC clients
https://bugzilla.novell.com/show_bug.cgi?id=893788 https://bugzilla.novell.com/show_bug.cgi?id=893788#c0 Summary: kiwi: netboot optimize network setup in initrd on multiple NIC clients Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: System Imaging AssignedTo: ms@suse.com ReportedBy: cyberorg@opensuse.org QAContact: adrian@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Here is another attempt using setupNetworkWicked. The idea is set up $BOOTIF and proceed with booting, rest of the interfaces can be set up when the system image boots up. --- KIWILinuxRC.sh-original 2014-08-27 18:15:06.574899885 +0530 +++ KIWILinuxRC.sh-wicked-fixed 2014-08-27 18:20:30.270917125 +0530 @@ -4719,14 +4719,12 @@ local dhcp_info local wicked_dhcp4=/usr/lib/wicked/bin/wickedd-dhcp4 for try_iface in ${dev_list[*]}; do - if ip link set dev $try_iface up;then - if [ $try_iface = "lo" ];then - continue - fi - Echo "Waiting for link up on $try_iface..." - sleep 1 - dhcp_info=/var/run/wicked/wicked-${try_iface}.info - $wicked_dhcp4 --debug all \ + if ip link show $try_iface | grep -qi $BOOTIF; then + ip link set dev $try_iface up + Echo "Waiting for link up on $try_iface..." + sleep 1 + dhcp_info=/var/run/wicked/wicked-${try_iface}.info + $wicked_dhcp4 --debug all \ --test --test-output $dhcp_info $try_iface if [ $? == 0 ] && [ -s $dhcp_info ];then importFile < $dhcp_info Reproducible: Always -- 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=893788 https://bugzilla.novell.com/show_bug.cgi?id=893788#c1 Marcus Schaefer <ms@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |cyberorg@opensuse.org --- Comment #1 from Marcus Schaefer <ms@suse.com> 2014-08-29 08:52:21 UTC --- I'm sorry but that conflicts with a fate: commit 4eff98f383de03d15fcd56fad91c72102eb472ae Author: Marcus Schäfer <ms@suse.de> Date: Wed Jun 6 13:12:44 2012 +0200 - netboot: added robust detection of the active network interface * call dhcpcd on all available network interfaces and select either BOOTIF from pxe or one of the interfaces which got a dhcp reply (fate #313338) please discuss with the people who uses that feature because the proposed change would invalidate the feature Thanks -- 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=893788 https://bugzilla.novell.com/show_bug.cgi?id=893788#c2 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|cyberorg@opensuse.org | --- Comment #2 from Jigish Gohil <cyberorg@opensuse.org> 2014-08-30 04:46:14 UTC --- I am unable to access fate #313338. If that feature is required then it can also be addressed: set up $BOOTIF first as that one is the only one guaranteed to get dhcp response, once that is set up, background(parallalize/fork or whatever) setting up of other interfaces and continue booting -- 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=893788 https://bugzilla.novell.com/show_bug.cgi?id=893788#c3 --- Comment #3 from Marcus Schaefer <ms@suse.com> 2014-09-15 10:49:45 UTC --- Hmm, ok this fate was for slepos only and frankly said I don't understand why it's done that way. Attached you will find a patch which uses the list of preferred interfaces which are either the bootif interface or the list of detected ones and runs a dhcp discovery on that list. From the result the first one is taken to setup a default gateway and route as there can only be one of them -- 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=893788 https://bugzilla.novell.com/show_bug.cgi?id=893788#c4 --- Comment #4 from Marcus Schaefer <ms@suse.com> 2014-09-15 10:51:51 UTC --- Created an attachment (id=606328) --> (http://bugzilla.novell.com/attachment.cgi?id=606328) setupNetworkWicked should operate on preferred interfaces only This patch requires good testing. Please give it a try and let me know if it has worked for you. In your setup only the BOOTIF interface should be used -- 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=893788 https://bugzilla.novell.com/show_bug.cgi?id=893788#c Marcus Schaefer <ms@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |cyberorg@opensuse.org -- 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=893788 https://bugzilla.novell.com/show_bug.cgi?id=893788#c5 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|cyberorg@opensuse.org | --- Comment #5 from Jigish Gohil <cyberorg@opensuse.org> 2014-09-16 06:05:22 UTC --- This works well. -- 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=893788 https://bugzilla.novell.com/show_bug.cgi?id=893788#c6 Marcus Schaefer <ms@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Marcus Schaefer <ms@suse.com> 2014-09-16 09:40:47 UTC --- Thanks for testing commit 5f296eb41b17a1181ad6527616a91aa0ed392458 Author: Marcus Schäfer <ms@suse.de> Date: Tue Sep 16 11:37:25 2014 +0200 Improve spee of nic setup in netboot initrd (bnc #893788) With this commit the list of preferred interfaces which are either the BOOTIF interface or the list of all detected ones is used to run the dhcp discovery. The first successfully discovered interface is used to setup the default gateway and route as there can only be one -- 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.
participants (1)
-
bugzilla_noreply@novell.com