[wicked-devel] documentation of wicked
HI all, I am currently trying to get our old autoinstallation to work with OpenSuse 13.2 and have severe problems with wicked. Where can I find documentation how to write configuration files for wicked? I want to set a second IP to an interface which was realized by the following /etc/sysconfig/network/ifcfg-eth0 file in our old setting (matching the filename to the new interface name enp3s0): BOOTPROTO='static' STARTMODE='auto' IPADDR='192.168.216.236/24' IPADDR_ext='10.216.100.236/24' LABEL_ext='ext' I am not sure if writing this file is the cause, but when I try to enable the new configuration I get a segfault of wicked: dummyecps:~ # service network restart Job for wicked.service failed. See "systemctl status wicked.service" and "journalctl -xn" for details. dummyecps:~ # systemctl status wicked.service wicked.service - wicked managed network interfaces Loaded: loaded (/usr/lib/systemd/system/wicked.service; enabled) Active: failed (Result: core-dump) since Thu 2014-12-04 16:05:06 CET; 7min ago Process: 9952 ExecStop=/usr/sbin/wicked --systemd ifdown all (code=exited, status=0/SUCCESS) Process: 12027 ExecStart=/usr/sbin/wicked --systemd ifup all (code=dumped, signal=SEGV) Main PID: 12027 (code=dumped, signal=SEGV) dummyecps:~ # journalctl -xn -- Logs begin at Tue 2014-12-02 14:50:29 CET, end at Thu 2014-12-04 16:05:06 CET. -- Dec 04 16:00:01 dummyecps CRON[11993]: pam_unix(crond:session): session closed for user root Dec 04 16:05:05 dummyecps wickedd[6389]: lo: address 127.0.0.1 covered by a static lease Dec 04 16:05:05 dummyecps wickedd[6389]: lo: address ::1 covered by a static lease Dec 04 16:05:05 dummyecps wickedd[6389]: enp3s0: address 192.168.216.236 covered by a static lease Dec 04 16:05:05 dummyecps wickedd[6389]: enp3s0: address 10.216.100.236 covered by a static lease Dec 04 16:05:06 dummyecps wickedd[6389]: enp3s0: No duplicates for IP address 192.168.216.236 detected Dec 04 16:05:06 dummyecps wickedd[6389]: enp3s0: Notified neighbours about IP address 192.168.216.236 Dec 04 16:05:06 dummyecps wickedd[6389]: enp3s0: No duplicates for IP address 10.216.100.236 detected Dec 04 16:05:06 dummyecps wickedd[6389]: enp3s0: Notified neighbours about IP address 10.216.100.236 Dec 04 16:05:06 dummyecps kernel: wicked[12027]: segfault at 24 ip 00000000004133dc sp 00007fff06422bb0 error 4 in wicked[400000+29000] Any help is appreciated! Thanks Hecke -- To unsubscribe, e-mail: wicked-devel+unsubscribe@opensuse.org To contact the owner, e-mail: wicked-devel+owner@opensuse.org
Hi Hecke, Thank you for the detailed report. Please see my response inline. On Thu, Dec 04, 2014 at 04:13:58PM +0100, hecke wrote:
HI all,
I am currently trying to get our old autoinstallation to work with OpenSuse 13.2 and have severe problems with wicked.
Where can I find documentation how to write configuration files for wicked?
You may examine the man pages installed as part of the Wicked package. For general IPADDR information, please see: `man ifcfg` If you require more details about configuration of a particular kind of interface, you may access things like: `man-bridge`, `man-bonding`, etc. Also useful is `man wicked`.
I want to set a second IP to an interface which was realized by the following /etc/sysconfig/network/ifcfg-eth0 file in our old setting (matching the filename to the new interface name enp3s0):
BOOTPROTO='static' STARTMODE='auto' IPADDR='192.168.216.236/24' IPADDR_ext='10.216.100.236/24' LABEL_ext='ext'
This looks like a totally valid configuration. I've replicated it on my machine and am unable to reproduce the crash.
I am not sure if writing this file is the cause, but when I try to enable the new configuration I get a segfault of wicked:
dummyecps:~ # service network restart Job for wicked.service failed. See "systemctl status wicked.service" and "journalctl -xn" for details.
dummyecps:~ # systemctl status wicked.service wicked.service - wicked managed network interfaces Loaded: loaded (/usr/lib/systemd/system/wicked.service; enabled) Active: failed (Result: core-dump) since Thu 2014-12-04 16:05:06 CET; 7min ago Process: 9952 ExecStop=/usr/sbin/wicked --systemd ifdown all (code=exited, status=0/SUCCESS) Process: 12027 ExecStart=/usr/sbin/wicked --systemd ifup all (code=dumped, signal=SEGV) Main PID: 12027 (code=dumped, signal=SEGV)
The segfault appears to have happened in the client program. From here, it would be useful for us to get a look at Wicked logs and the stack trace from the client. Instructions are here: https://en.opensuse.org/index.php?title=openSUSE:Bugreport_wicked Also, I'd like to see what version of Wicked you are running and versions of installed RPMs 1. `wicked --version` 2. `rpm -qa | grep wicked` Regards, Karol
dummyecps:~ # journalctl -xn -- Logs begin at Tue 2014-12-02 14:50:29 CET, end at Thu 2014-12-04 16:05:06 CET. -- Dec 04 16:00:01 dummyecps CRON[11993]: pam_unix(crond:session): session closed for user root Dec 04 16:05:05 dummyecps wickedd[6389]: lo: address 127.0.0.1 covered by a static lease Dec 04 16:05:05 dummyecps wickedd[6389]: lo: address ::1 covered by a static lease Dec 04 16:05:05 dummyecps wickedd[6389]: enp3s0: address 192.168.216.236 covered by a static lease Dec 04 16:05:05 dummyecps wickedd[6389]: enp3s0: address 10.216.100.236 covered by a static lease Dec 04 16:05:06 dummyecps wickedd[6389]: enp3s0: No duplicates for IP address 192.168.216.236 detected Dec 04 16:05:06 dummyecps wickedd[6389]: enp3s0: Notified neighbours about IP address 192.168.216.236 Dec 04 16:05:06 dummyecps wickedd[6389]: enp3s0: No duplicates for IP address 10.216.100.236 detected Dec 04 16:05:06 dummyecps wickedd[6389]: enp3s0: Notified neighbours about IP address 10.216.100.236 Dec 04 16:05:06 dummyecps kernel: wicked[12027]: segfault at 24 ip 00000000004133dc sp 00007fff06422bb0 error 4 in wicked[400000+29000]
Any help is appreciated! Thanks Hecke -- To unsubscribe, e-mail: wicked-devel+unsubscribe@opensuse.org To contact the owner, e-mail: wicked-devel+owner@opensuse.org
Hi Karol, thanks for your quick reply. It took me some time to get back to this, sorry. I'll read through the manpages for my confguration issue. Here is some more info about the crash: The machine is a fresh install of OpenSuse 13.2, and the problem arises in the post installation procedure of autoyast.
The segfault appears to have happened in the client program. From here, it would be useful for us to get a look at Wicked logs and the stack trace from the client. Instructions are here:
https://en.opensuse.org/index.php?title=openSUSE:Bugreport_wicked
did that, see https://bugzilla.opensuse.org/show_bug.cgi?id=908554
Also, I'd like to see what version of Wicked you are running and versions of installed RPMs
dummyecps:~ # wicked --version wicked 0.6.12 dummyecps:~ # rpm -qa | grep wicked libwicked-0-6-0.6.12-1.1.x86_64 wicked-0.6.12-1.1.x86_64 wicked-service-0.6.12-1.1.x86_64 cheers Hecke -- To unsubscribe, e-mail: wicked-devel+unsubscribe@opensuse.org To contact the owner, e-mail: wicked-devel+owner@opensuse.org
Am 04.12.2014 um 16:13 schrieb hecke:
HI all, Hi!
I am currently trying to get our old autoinstallation to work with OpenSuse 13.2 and have severe problems with wicked.
Where can I find documentation how to write configuration files for wicked?
I want to set a second IP to an interface which was realized by the following /etc/sysconfig/network/ifcfg-eth0 file in our old setting (matching the filename to the new interface name enp3s0):
BOOTPROTO='static' STARTMODE='auto' IPADDR='192.168.216.236/24' IPADDR_ext='10.216.100.236/24' LABEL_ext='ext'
The label support has been fixes in 0.6.13: http://download.opensuse.org/repositories/network:/wicked:/factory/ I've just double checked the config: # cat ifcfg-nic1 NAME='Intel Gigabit CT Desktop Adapter' BOOTPROTO='static' STARTMODE='auto' IPADDR='192.168.216.236/24' IPADDR_ext='10.216.100.236/24' LABEL_ext='ext' # wicked ifup nic1 ## or just ifup nic1 # ip a s dev nic1 3: nic1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 68:05:ca:0a:39:e7 brd ff:ff:ff:ff:ff:ff inet 192.168.216.236/24 brd 192.168.216.255 scope global nic1 valid_lft forever preferred_lft forever inet 10.216.100.236/24 brd 10.216.100.255 scope global nic1:ext valid_lft forever preferred_lft forever inet6 fe80::6a05:caff:fe0a:39e7/64 scope link valid_lft forever preferred_lft forever -> WORKS with 0.6.12 it will be set without the label: 3: nic1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 68:05:ca:0a:39:e7 brd ff:ff:ff:ff:ff:ff inet 192.168.216.236/24 brd 192.168.216.255 scope global nic1 valid_lft forever preferred_lft forever inet 10.216.100.236/24 brd 10.216.100.255 scope global nic1 valid_lft forever preferred_lft forever inet6 fe80::6a05:caff:fe0a:39e7/64 scope link valid_lft forever preferred_lft forever
I am not sure if writing this file is the cause, but when I try to enable the new configuration I get a segfault of wicked:
Dec 04 16:05:06 dummyecps kernel: wicked[12027]: segfault at 24 ip 00000000004133dc sp 00007fff06422bb0 error 4 in wicked[400000+29000]
See https://bugzilla.opensuse.org/show_bug.cgi?id=908554#c3 and https://github.com/openSUSE/wicked/pull/476 As soon as it has been accepted to master, test RPMs will be at: http://download.opensuse.org/repositories/network:/wicked:/master/ Gruesse / Regards, Marius Tomaschewski <mt@suse.de>, <mt@suse.com> -- SUSE LINUX GmbH, HRB 21284 (AG Nürnberg), GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Maxfeldstraße 5, 90409 Nürnberg, Germany -- To unsubscribe, e-mail: wicked-devel+unsubscribe@opensuse.org To contact the owner, e-mail: wicked-devel+owner@opensuse.org
participants (3)
-
hecke
-
Karol Mroz
-
Marius Tomaschewski