[opensuse] 13.2 wicked networking, route lost after distro upgrade
hi all, I upgraded long time running system (server) from 13.1 to 13.2 yesterday and I found only one problem. The system does not set the default route after all. The machine started as 12.1 with many upgrades. Here is the situation I have: - yast shows that wicked is used for network handling. There is no option "if-up method" like it was in 13.1 - I have scripts for venet0 interface as it was before vps:/etc/sysconfig/network # cat ifcfg-venet0 STARTMODE=onboot BOOTPROTO=static BROADCAST=0.0.0.0 NETMASK=255.255.255.255 IPADDR=127.0.0.1 IPADDR_0=37.205.9.50 LABEL_0=0 IPADDR_1=2a01:430:17:1::ffff:288 LABEL_1=1 vps:/etc/sysconfig/network # cat ifroute-venet0 default - - venet0 default :: - venet0 - there is no route after the boot vps:/etc/sysconfig/network # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface but it's set when I run this command: ip r a default dev venet0 vps:/etc/sysconfig/network # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default * 0.0.0.0 U 0 0 0 venet0 - there is a really suspicious log message 2015-06-16T14:57:27.800276+02:00 vps wicked: /etc/sysconfig/network/ifroute-venet0[1]: Cannot create route - unable to find out address family Where can the problem be, please? I'm just an user, no network guy. thanks, Petr -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Jun 17, 2015 at 12:00 PM, Petr Vanek
hi all,
I upgraded long time running system (server) from 13.1 to 13.2 yesterday and I found only one problem. The system does not set the default route after all.
The machine started as 12.1 with many upgrades.
Here is the situation I have:
- yast shows that wicked is used for network handling. There is no option "if-up method" like it was in 13.1
- I have scripts for venet0 interface as it was before
vps:/etc/sysconfig/network # cat ifcfg-venet0 STARTMODE=onboot BOOTPROTO=static BROADCAST=0.0.0.0 NETMASK=255.255.255.255 IPADDR=127.0.0.1 IPADDR_0=37.205.9.50 LABEL_0=0 IPADDR_1=2a01:430:17:1::ffff:288 LABEL_1=1
vps:/etc/sysconfig/network # cat ifroute-venet0 default - - venet0 default :: - venet0
- there is no route after the boot
vps:/etc/sysconfig/network # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
but it's set when I run this command: ip r a default dev venet0
That is rather strange default gateway. Could you describe your network topology? How are packets supposed to be forwarded outside of your local network? For a start, sending packets directly to local network requires working ARP and you obviously won't get ARP resolution for hosts on Internet.
vps:/etc/sysconfig/network # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default * 0.0.0.0 U 0 0 0 venet0
- there is a really suspicious log message
2015-06-16T14:57:27.800276+02:00 vps wicked: /etc/sysconfig/network/ifroute-venet0[1]: Cannot create route - unable to find out address family
Where can the problem be, please? I'm just an user, no network guy.
thanks, Petr
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrei Borzenkov wrote:
On Wed, Jun 17, 2015 at 12:00 PM, Petr Vanek
wrote: vps:/etc/sysconfig/network # cat ifroute-venet0 default - - venet0 default :: - venet0
- there is no route after the boot
vps:/etc/sysconfig/network # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
but it's set when I run this command: ip r a default dev venet0
That is rather strange default gateway. Could you describe your network topology? How are packets supposed to be forwarded outside of your local network? For a start, sending packets directly to local network requires working ARP and you obviously won't get ARP resolution for hosts on Internet.
I did wonder about that too, but he's on a virtual host and perhaps someone is arp spoofing <anything> to make the config easier for everyone. -- Per Jessen, Zürich (18.2°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06/17/2015 11:27 AM, Per Jessen wrote:
Andrei Borzenkov wrote:
On Wed, Jun 17, 2015 at 12:00 PM, Petr Vanek
wrote: vps:/etc/sysconfig/network # cat ifroute-venet0 default - - venet0 default :: - venet0
- there is no route after the boot
vps:/etc/sysconfig/network # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
but it's set when I run this command: ip r a default dev venet0
That is rather strange default gateway. Could you describe your network topology? How are packets supposed to be forwarded outside of your local network? For a start, sending packets directly to local network requires working ARP and you obviously won't get ARP resolution for hosts on Internet. I did wonder about that too, but he's on a virtual host and perhaps someone is arp spoofing <anything> to make the config easier for everyone.
yes, it's virtual host. I'll send more info when/if I'll get it from the serviec provider. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Petr Vanek wrote:
vps:/etc/sysconfig/network # cat ifroute-venet0 default - - venet0 default :: - venet0
[snip]
- there is no route after the boot but it's set when I run this command: ip r a default dev venet0
Looks good - does it work? Can you ping e.g. 8.8.8.8? I guess this is a special setup for your virtual machine.
2015-06-16T14:57:27.800276+02:00 vps wicked: /etc/sysconfig/network/ifroute-venet0[1]: Cannot create route - unable to find out address family
I think you ought to open a bugreport - I am not an expert, but judging by the code, your setup is not recognised by wicked when it's setting up routes. https://github.com/openSUSE/wicked/blob/master/client/suse/compat-suse.c -- Per Jessen, Zürich (18.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 06/17/2015 11:23 AM, Per Jessen wrote:
Petr Vanek wrote:
vps:/etc/sysconfig/network # cat ifroute-venet0 default - - venet0 default :: - venet0
[snip]
- there is no route after the boot but it's set when I run this command: ip r a default dev venet0 Looks good - does it work? Can you ping e.g. 8.8.8.8? I guess this is a special setup for your virtual machine.
result is: connect: Network is unreachable
2015-06-16T14:57:27.800276+02:00 vps wicked: /etc/sysconfig/network/ifroute-venet0[1]: Cannot create route - unable to find out address family I think you ought to open a bugreport - I am not an expert, but judging by the code, your setup is not recognised by wicked when it's setting up routes.
https://github.com/openSUSE/wicked/blob/master/client/suse/compat-suse.c
thanks, I found this code too. I was just curious if it cannot be fixed easily. Anyway, the bug report has been submitted into opensuse bugzilla. thanks, petr -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Petr Vanek wrote:
On 06/17/2015 11:23 AM, Per Jessen wrote:
Petr Vanek wrote:
vps:/etc/sysconfig/network # cat ifroute-venet0 default - - venet0 default :: - venet0
[snip]
- there is no route after the boot but it's set when I run this command: ip r a default dev venet0 Looks good - does it work? Can you ping e.g. 8.8.8.8? I guess this is a special setup for your virtual machine.
result is: connect: Network is unreachable
Then you have a problem with the routing :-) Are you sure about the routing config (as you posted it) ? -- Per Jessen, Zürich (21.2°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Per Jessen
-
Petr Vanek