Bugzilla – Bug 898114
when renaming a network, the config disables the default route from dhcp
Last modified: 2014-09-29 09:25:27 UTC
On a new 13.2 install, the initial network config /etc/sysconfig/network/ifcfg-enp1s1f0 will contain this for instance - BOOTPROTO='dhcp' STARTMODE='auto' After renaming 'enp1s1f0' to 'eth0' (with yast), the config contains: BOOTPROTO='dhcp' BROADCAST='' DHCLIENT_SET_DEFAULT_ROUTE='no' ETHTOOL_OPTIONS='' IPADDR='' MTU='' NAME='' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='auto' With this config, the default route from dhcp isn't set. See maybe bug#890877 where I first reported this, there are references to two other bugreports, both unfortunately not visible to me.
Please provide YaST logs, see http://en.opensuse.org/openSUSE:Bugreport_YaST.
Created attachment 607544 [details] logs as saved by save_y2logs
Thanks for the report, Per. It is fixed in yast2-network-3.1.100 which is in Factory already. (Your test has 3.1.99) Please update and test with that. This is a duplicate of the SLES12 bug 883836, which you cannot see so I will summarize it here. The bug was introduced in April while attempting to fix a different problem related to DHCLIENT_SET_DEFAULT_ROUTE: https://github.com/yast/yast-network/pull/189 There we had too many interfaces setting the DR, so we added code to explicitly set DSDR=no in certain cases. Unfortunately DSDR=no happened in more cases than we had anticipated, resulting in fixes made in https://github.com/yast/yast-network/pull/226 and https://github.com/yast/yast-network/pull/251 . *** This bug has been marked as a duplicate of bug 883836 ***
(In reply to Martin Vidner from comment #4) > Thanks for the report, Per. > > It is fixed in yast2-network-3.1.100 which is in Factory already. (Your test > has 3.1.99) Please update and test with that. Hi Martin I tried a 'zypper patch'+'zypper up', but neither one installed anything? > This is a duplicate of the SLES12 bug 883836, which you cannot see so I will > summarize it here. > > The bug was introduced in April while attempting to fix a different problem > related to DHCLIENT_SET_DEFAULT_ROUTE: > https://github.com/yast/yast-network/pull/189 > There we had too many interfaces setting the DR, so we added code to > explicitly set DSDR=no in certain cases. > > Unfortunately DSDR=no happened in more cases than we had anticipated, > resulting in fixes made in https://github.com/yast/yast-network/pull/226 and > https://github.com/yast/yast-network/pull/251 . Thanks for the summary, much appreciated!
The sources are in OBS: (3.1.101) https://build.opensuse.org/package/show/openSUSE:Factory/yast2-network but the package has not been built or published yet: (3.1.99) http://download.opensuse.org/factory/repo/oss/suse/i586/?P=yast2-network*