[Bug 673792] New: dhclient from dhcp-client package may incorrectly apply set default route and set hostname settings
https://bugzilla.novell.com/show_bug.cgi?id=673792 https://bugzilla.novell.com/show_bug.cgi?id=673792#c0 Summary: dhclient from dhcp-client package may incorrectly apply set default route and set hostname settings Classification: openSUSE Product: openSUSE 11.4 Version: RC 1 Platform: All OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: mt@novell.com ReportedBy: mt@novell.com QAContact: qa@suse.de Found By: Development Blocker: --- On primary interfaces, dhclient-script will use the global setting for DHCLIENT_SET_DEFAULT_ROUTE and DHCLIENT_SET_DEFAULT_ROUTE only (default is "yes"). This disables the possibility to disable the defaultroute on the primary interface in the per inteface config (ifcfg-$interface), that is: dhcp:DHCLIENT_SET_DEFAULT_ROUTE="yes" ifcfg-eth0:DHCLIENT_SET_DEFAULT_ROUTE='no' results in DHCLIENT_SET_DEFAULT_ROUTE="yes". When the use changes the global setting to "no" and enables it for one interface only: dhcp:DHCLIENT_SET_DEFAULT_ROUTE="no" ifcfg-br1000:DHCLIENT_SET_DEFAULT_ROUTE='yes' it results in DHCLIENT_SET_DEFAULT_ROUTE=no. This bug is caused by a missed \ in the /sbin/dhclient-script: --- dhclient-script (revision bb74f2c530c29d8de6ee6809dd41d135) +++ dhclient-script (working copy) @@ -310,7 +310,7 @@ then eval `grep --no-filename \ '^[[:space:]]*DHCLIENT_SET_\(HOSTNAME\|DEFAULT_ROUTE\)=' \ - "$SYSCONFIG_CFG_DIR/dhcp" + "$SYSCONFIG_CFG_DIR/dhcp" \ "$SYSCONFIG_CFG_DIR/ifcfg-${interface}" 2>/dev/null` else eval `grep --no-filename \ Debug output of the second case above (dhcp no, ifcfg yes): .. + grep -qs '^primary=yes' /dev/.sysconfig/network/if-br1000 ++ grep --no-filename '^[[:space:]]*DHCLIENT_SET_\(HOSTNAME\|DEFAULT_ROUTE\)=' /etc/sysconfig/network/dhcp ++ /etc/sysconfig/network/ifcfg-br1000 + eval 'DHCLIENT_SET_HOSTNAME="yes"' 'DHCLIENT_SET_DEFAULT_ROUTE="no"' ++ DHCLIENT_SET_HOSTNAME=yes ++ DHCLIENT_SET_DEFAULT_ROUTE=no .. the script tries to execute the per interface config instead to read it, error message goes to /dev/null. -- 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=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c1
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c2
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c3
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c4
--- Comment #4 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c6
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c7
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c8
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c9
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c10
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c11
--- Comment #11 from Marius Tomaschewski
this bug is not referenced in dhcpcd for 11.3 and 11.4 but it is in the patchinfo(s). can you please verify ?
This bug is about /sbin/dhclient-script from (isc) dhcp-client package and does not exists in dhcpcd. -- 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=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c12
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c13
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=673792
https://bugzilla.novell.com/show_bug.cgi?id=673792#c14
--- Comment #14 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com