After upgrading a server from Opensuse 13.2 -> Leap 42.1, I'm seeing very long boot time, in addition to other symptoms. I'm starting to troubleshoot ...
checking, on this system
lsb_release -rd Description: openSUSE Leap 42.1 (x86_64) Release: 42.1 uname -ra Linux xensvr 4.3.0-6.g6b3b033-xen #1 SMP Tue Nov 17 09:14:21 UTC 2015 (6b3b033) x86_64 x86_64 x86_64 GNU/Linux rpm -qa | grep -i wicked | sort libwicked-0-6-0.6.27-1.1.x86_64 wicked-0.6.27-1.1.x86_64 wicked-service-0.6.27-1.1.x86_64
with this config,
cat /etc/sysconfig/network/ifcfg-eno1 STARTMODE='auto' BOOTPROTO='none'
cat /etc/sysconfig/network/ifcfg-br0 NAME='br0' BRIDGE='yes' BRIDGE_PORTS='eno1' STARTMODE='auto' BOOTPROTO='static' BRIDGE_STP='off' BRIDGE_FORWARDDELAY='0' BRIDGE_AGEINGTIME='0' IPADDR0='10.10.10.10/24' IPV6INIT='no' IPV6_AUTOCONF='no' ETHTOOL_OPTIONS='' MTU='1500' NETWORK='' BROADCAST='' REMOTE_IPADDR='' USERCONTROL='no' POST_UP_SCRIPT=/etc/sysconfig/network/scripts/br0-config.sh
cat /etc/sysconfig/network/scripts/br0-config.sh #!/bin/sh ethtool -K br0 tso off gso off ethtool -K eno1 tso off gso off
On boot I'm seeing
systemd-analyze blame 2min 25.819s wicked.service 55.550s xenstored.service 1.784s lvm2-pvscan@9:1.service 1.367s dev-mapper-VG0\x2dROOT.device 975ms lvm2-pvscan@9:3.service ...
that's certainly not healthy.
In logs, I 1st see
journalctl -xb | grep -i br0 Nov 19 15:01:47 sensvr wicked[1394]: ifcfg-br0: unable to qualify post-up script - unknown script type '(null):/etc/sysconfig/network/scripts/br0-config.sh'
Under Opensuse 13.2, there was not problem with this ifup-script -- I could verify exec / setting of the ethtool params.
Now, with this failure, after boot, the params remain unset
ethtool -k br0 > br0-set-pre.txt ethtool -k eno1 > eno1-set-pre.txt ethtool -K br0 tso off gso off ethtool -K eno1 tso off gso off ethtool -k br0 > br0-set-post.txt ethtool -k eno1 > eno1-set-post.txt diff br0-set-pre.txt br0-set-post.txt 12,15c12,15 < tcp-segmentation-offload: on < tx-tcp-segmentation: on < tx-tcp-ecn-segmentation: on < tx-tcp6-segmentation: on --- > tcp-segmentation-offload: off > tx-tcp-segmentation: off > tx-tcp-ecn-segmentation: off > tx-tcp6-segmentation: off 17c17 < generic-segmentation-offload: on --- > generic-segmentation-offload: off diff eno1-set-pre.txt eno1-set-post.txt 12,13c12,13 < tcp-segmentation-offload: on < tx-tcp-segmentation: on --- > tcp-segmentation-offload: off > tx-tcp-segmentation: off 15c15 < tx-tcp6-segmentation: on --- > tx-tcp6-segmentation: off 17c17 < generic-segmentation-offload: on --- > generic-segmentation-offload: off
Are ifup scripts no longer supported?
If wicked-native scripts are now required (are they?), what's the proper usage?
If not, what info's needed here?
On Thu, 19 Nov 2015 15:03:40 -0800 PGNet Dev pgnet.dev@gmail.com wrote:
Are ifup scripts no longer supported?
If wicked-native scripts are now required (are they?), what's the proper usage?
According to man ifcfg(5): " Note: The script scheme must be specified as a safeguard to not execute any old and not-compatible sysconfig ifup scripts (which may depend on different files, internal state, ...). Once the script has been adopted, prepend e.g. the "compat:suse:" scheme to activate. "
e.g. POST_UP_SCRIPT="compat:suse:/path/to/my-script-or-dir"
For more details please refer to ifcfg(5).
Best, Pawel
On 11/20/2015 06:49 AM, Pawel Wieczorkiewicz wrote:
According to man ifcfg(5):
...
e.g. POST_UP_SCRIPT="compat:suse:/path/to/my-script-or-dir"
For more details please refer to ifcfg(5).
Taking your word for it, the "compat:suse:..." usage fixes the problem; no more error re: the script. Thanks.
Fwiw, minor problem on Leap, which led to some of my confusion -> the OS upgrade rm's the ifcfg man pages.
Prior to upgrade, on 13.2
rpm -qa | grep -i ^wicked-0 wicked-0.6.27-21.1.x86_64 rpm -ql wicked-0.6.27-21.1.x86_64 | grep man | grep ifcfg /usr/share/man/man5/ifcfg-bonding.5.gz /usr/share/man/man5/ifcfg-bridge.5.gz /usr/share/man/man5/ifcfg-dhcp.5.gz /usr/share/man/man5/ifcfg-dummy.5.gz /usr/share/man/man5/ifcfg-macvlan.5.gz /usr/share/man/man5/ifcfg-macvtap.5.gz /usr/share/man/man5/ifcfg-ovs-bridge.5.gz /usr/share/man/man5/ifcfg-team.5.gz /usr/share/man/man5/ifcfg-tunnel.5.gz /usr/share/man/man5/ifcfg-vlan.5.gz /usr/share/man/man5/ifcfg-wireless.5.gz /usr/share/man/man5/ifcfg.5.gz ls -1 /usr/share/man/man5/ifcfg* /usr/share/man/man5/ifcfg.5.gz /usr/share/man/man5/ifcfg-bonding.5.gz /usr/share/man/man5/ifcfg-bridge.5.gz /usr/share/man/man5/ifcfg-dhcp.5.gz /usr/share/man/man5/ifcfg-dummy.5.gz /usr/share/man/man5/ifcfg-macvlan.5.gz /usr/share/man/man5/ifcfg-macvtap.5.gz /usr/share/man/man5/ifcfg-ovs-bridge.5.gz /usr/share/man/man5/ifcfg-team.5.gz /usr/share/man/man5/ifcfg-tunnel.5.gz /usr/share/man/man5/ifcfg-vlan.5.gz /usr/share/man/man5/ifcfg-wireless.5.gz
After upgrade to Leap,
rpm -qa | grep -i ^wicked-0 wicked-0.6.27-1.1.x86_64 rpm -ql wicked-0.6.27-1.1.x86_64 | grep man | grep ifcfg /usr/share/man/man5/ifcfg-bonding.5.gz /usr/share/man/man5/ifcfg-bridge.5.gz /usr/share/man/man5/ifcfg-dhcp.5.gz /usr/share/man/man5/ifcfg-dummy.5.gz /usr/share/man/man5/ifcfg-macvlan.5.gz /usr/share/man/man5/ifcfg-macvtap.5.gz /usr/share/man/man5/ifcfg-ovs-bridge.5.gz /usr/share/man/man5/ifcfg-team.5.gz /usr/share/man/man5/ifcfg-tunnel.5.gz /usr/share/man/man5/ifcfg-vlan.5.gz /usr/share/man/man5/ifcfg-wireless.5.gz /usr/share/man/man5/ifcfg.5.gz
But, unfortunately,
ls -1 /usr/share/man/man5/ifcfg* ls: cannot access /usr/share/man/man5/ifcfg*: No such file or directory
Easy enough to get the man pages from upstream, once you realize.
Thanks.
wicked-devel@lists.opensuse.org