Some tidy ups and allow manual IP specification rather than auto-detection#1
Some tidy ups and allow manual IP specification rather than auto-detection#1coling wants to merge 3 commits into
Conversation
There are some unique cases where this is necessary such as when using network namespaces to isloate the IP assignment on a given host. For example, one could use a container which uses a bridge IPVLAN interface to ensure the shared IP is available online 'inside' that container. When this is the case, you cannot run lelastic (or any other BGP client) inside the container as it requires it's own IPv6 network assigned via SLAAC to communicate with the peers. As you have to run it one the host, and the IPs in question are not shown on any interface visible on the host, they cannot be auto-detected. The simplest solution here is to allow specifying the IPs on the command line. A future improvement might be to speak to systemd-machined to obtain a list of machine and their relevant IPs to advertise (assuming the container is registered with systemd-machined).
|
Hi Colin, so my suggestion here would be that we do either one other the other. in other words as soon as one specifies custom/manual IPs autodetect should essentially be turned off completely and only the IPs defined are announced. |
|
Sounds good! Your suggestion works for my use case certainly and I can see the value in that way of working for your use case. I'll rework the patch a bit shortly and resubmit. I'll also make the netmasks optional when specified on the command line as that feels a bit unnecessary. |
|
cool thx. |
|
Is this feature usable? Is there something preventing it being merged? It seems like it would solve our use case too, as we need to migrate our balancers due to the change to BGP in Dallas DC. Our setup is two active balancer machines, and two floating IPs, one public, one private; each balancer serves as a primary for one IP, and a backup (or 'secondary') for the other IP. From what I can see the existing release of lelastic won't work for us because
|
@tobymitico This is the same issue for our setup. We have 8 Load Balancers and each is a |
|
I'm very sorry for being slow here, its been busy ;/ I hear you all. and I think you all have a valid point and we should add this feature as you describe it. but the use case of having 2 linodes in active/active where each other would take over the load would still not be satisfied with this change. I also wanna be sure we cater to the right target group for this tool. this is really just intended for very very very VERY basic usage of elastic IPs to get started for users with little to no network knowledge. |
I found I was unable to get BGP working properly when dealing with network namespaced containers.
While I appreciate I could use frr for this purpose, I found a nice, self contained tool was also quite handy considering the whole point of a container image is to keep things very much "contained" and requiring large software packages to support the container to be installed on this host machine is not overly desirable.
Happy to discuss the approach or tweak the options slightly if so desired.
There are also a couple of minor drive by changes, but these may not be desired and happy to rework the PR to exclude these.
Thanks for considering.