Re: [lxc-users] Race condition in IPv6 network configuration

2018-01-08 Thread Marat Khalili
Hello, On 06/01/18 04:25, MegaBrutal wrote: It's very sad that I had to do this, but I wrote a script to check the IPv6 default route of a container. In case it finds a problem (there is no default route or it is configured through RA when the interface configuration is supposed to be static),

Re: [lxc-users] Race condition in IPv6 network configuration

2018-01-05 Thread MegaBrutal
Hi all, It's very sad that I had to do this, but I wrote a script to check the IPv6 default route of a container. In case it finds a problem (there is no default route or it is configured through RA when the interface configuration is supposed to be static), it resets and reconfigures the network

Re: [lxc-users] Race condition in IPv6 network configuration

2017-11-12 Thread Marat Khalili
On 07/11/17 14:55, Marat Khalili wrote: On 07/11/17 13:45, MegaBrutal wrote: First of all, I also suggest you to comment out the line "lxc.net.0.flags = up" in your LXC container configuration (/var/lib/lxc/containername/config). Will definitely try it, although since it happens so rarely in my

Re: [lxc-users] Race condition in IPv6 network configuration

2017-11-09 Thread Harald Dunkel
I would suggest to configure the network in /config (including the default route) before the container is even started. IPv4 and IPv6. Your /etc/network/interfaces should be empty. /etc/resolv.conf has to be setup accordingly. Regards Harri ___ lxc-

Re: [lxc-users] Race condition in IPv6 network configuration

2017-11-07 Thread Marat Khalili
On 07/11/17 13:45, MegaBrutal wrote: First of all, I also suggest you to comment out the line "lxc.net.0.flags = up" in your LXC container configuration (/var/lib/lxc/containername/config). Will definitely try it, although since it happens so rarely in my case (approximately once per month in d

Re: [lxc-users] Race condition in IPv6 network configuration

2017-11-07 Thread MegaBrutal
Hi Marat, First of all, I also suggest you to comment out the line "lxc.net.0.flags = up" in your LXC container configuration (/var/lib/lxc/containername/config). (Note, if you have an older version of LXC, the line is "lxc.network.flags", if I remember correctly.) Probably it would help your cont

Re: [lxc-users] Race condition in IPv6 network configuration

2017-11-06 Thread Marat Khalili
If I reboot the container multiple times, once I'll get lucky and the interface configuration happens before an RA is received, and I get a permanent default route and everything's fine. But it's annoying because I have to reboot the container multiple times before it happens. I don't know the cau

[lxc-users] Race condition in IPv6 network configuration

2017-11-06 Thread MegaBrutal
Hi all, I experience an annoying race condition when my LXC container's network interface comes up. By default, nodes are expected to configure themselves with Router Advertisements; but for some containers, I'd prefer to set a static address. In these containers, I use a static configuration in /