Open lmq1999 opened 3 months ago
Can you share the output of networkctl status
from the host? Does the device show up as unmanaged?
Are you able to create a minimal reproducer for this?
Can you share the output of
networkctl status
from the host? Does the device show up as unmanaged?Are you able to create a minimal reproducer for this?
pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx ~ # networkctl status ● Interfaces: 1, 2, 3, 7, 8, 12, 14, 16, 24, 20, 22, 18, 30, 28, 26, 33, 34, 4, 113 State: routable Online state: online Address: 103.107.182.222 on eth0 10.20.4.127 on eth1 172.17.0.1 on docker0 10.200.0.159 on cilium_host 172.18.0.1 on br-098937d94946 fe80::f816:3eff:fec1:ee2b on eth0 fe80::f816:3eff:fefd:b77d on eth1 fe80::42:96ff:fe5b:9fc4 on docker0 fe80::40d7:33ff:fe7a:910b on cilium_net fe80::48a5:55ff:fe9d:3bb2 on cilium_host fe80::e037:abff:fe5c:6eb3 on lxc99eb9c4d3eb4 fe80::6c06:47ff:fe44:2265 on lxcd81121c9fde0 fe80::90dc:a0ff:fe41:bea0 on lxce0fba8614383 fe80::b842:75ff:fee7:cec3 on lxc6c022ee53b5c fe80::40f3:58ff:fe97:219a on lxc21e65491adf6 fe80::a448:14ff:fe58:3189 on lxc7df0526efc64 fe80::1070:18ff:fe05:e8c0 on lxc59b2200808e0 fe80::6c7e:31ff:fe1f:316d on lxcc625a36d34a6 fe80::5c8e:d2ff:fe18:106 on lxc6316b6423586 fe80::8463:c4ff:fe74:5fb1 on lxcb04e3a7afb05 fe80::2cc2:e2ff:fe77:6d04 on lxc_health fe80::42:97ff:fe94:1333 on br-098937d94946 fe80::d489:f4ff:fe2a:18e4 on kengine Gateway: 103.107.182.1 on eth0 DNS: 8.8.8.8 45.124.93.62 Search Domains: openstacklocal
Aug 12 08:31:00 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: Gained carrier Aug 12 08:31:00 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: Configuring with /usr/lib/systemd/network/zz-default.network. Aug 12 08:31:02 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: Gained IPv6LL Aug 12 09:46:24 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: Link DOWN Aug 12 09:46:24 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: Lost carrier Aug 12 09:46:24 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: DHCPv6 lease lost Aug 12 09:46:30 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: Link UP Aug 12 09:46:30 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: Gained carrier Aug 12 09:46:30 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: Configuring with /usr/lib/systemd/network/zz-default.network. Aug 12 09:46:31 pool-g4dzrku5-sj3dtqihuu6cjof6-node-hshs3fbx systemd-networkd[1169]: kengine: Gained IPv6LL
here
I can give you the client full config if you want
I have tried other openvpn-client and build 1 myself but seem they have common error not adding ip on itnerface
sorry, i meant networkctl list
but this already confirms my suspicion that networkd is trying to manage your device:
systemd-networkd[1169]: kengine: Configuring with /usr/lib/systemd/network/zz-default.network.
but this already confirms my suspicion that networkd is trying to manage your device:
systemd-networkd[1169]: kengine: Configuring with /usr/lib/systemd/network/zz-default.network.
IDX LINK TYPE OPERATIONAL SETUP 1 lo loopback carrier unmanaged 2 eth0 ether routable configured 3 eth1 ether routable configured 4 docker0 bridge no-carrier unmanaged 7 cilium_net ether degraded unmanaged 8 cilium_host ether routable unmanaged 12 lxc99eb9c4d3eb4 ether degraded unmanaged 14 lxcd81121c9fde0 ether degraded unmanaged 16 lxce0fba8614383 ether degraded unmanaged 18 lxc6c022ee53b5c ether degraded unmanaged 20 lxc21e65491adf6 ether degraded unmanaged 22 lxc7df0526efc64 ether degraded unmanaged 24 lxc59b2200808e0 ether degraded unmanaged 26 lxcc625a36d34a6 ether degraded unmanaged 28 lxc6316b6423586 ether degraded unmanaged 30 lxcb04e3a7afb05 ether degraded unmanaged 33 lxc_health ether degraded unmanaged 34 br-098937d94946 bridge no-carrier unmanaged 113 kengine ether degraded configuring
19 links listed.
look like is not working properly, so how to fix this problem
for a quick fix create /etc/systemd/network/kengine.network
with these contents:
[Match]
Name=kengine
[Link]
Unmanaged=yes
and then systemctl restart systemd-networkd
.
for a quick fix create
/etc/systemd/network/kengine.network
with these contents:[Match] Name=kengine [Link] Unmanaged=yes
and then
systemctl restart systemd-networkd
.
wow ok it worked for now, tks for your support
I'll leave this issue open as we should exclude tun/tap interfaces from networkd management by default.
@jepio Hey Jeremi! How are you doing? I'm thinking of adding a new configuration file with the following content:
[Match]
Kind=tun tap
[Link]
Unmanaged=yes
This configuration will match all tun
and tap
interfaces and set them as unmanaged. I can make a PR if this looks good to you :)
Sure, try it out. The PR needs to be against flatcar/init and flatcar/bootengine (for consistency).
Sure, try it out. The PR needs to be against flatcar/init and flatcar/bootengine (for consistency).
Cool, I started a discussion here: link
Description
Flatcar with openvpn client container not wokring
Impact
Unable to use flatcar with openvpn
Environment and steps to reproduce
Flatcar image: flatcar_production_openstack_image.img
2.1: Install docker-compose
2.2: Write docker-compose VPN file
2.3: Write openvpn-client file
This seem working but actually not, the
ip addr add dev kengine 10.99.0.4/20 broadcast 10.99.15.255
is not working so there is no ip on the kengineb. I have to manualy add myself and the VPN finally work
Testing
but since i want automaticly run VPN and I cant add it manual all the time so this problem need look up to
Not add IP properly on VPN interface
Expected behavior
The IP on interface automaticlly added
Additional information
None