Re: Keepalived and netplan

Quentin Armitage <[email protected]> Tue, 26 Jun 2018 13:08:20 +0100
Newsgroups gmane.linux.keepalived.devel
Organization The Armitage family
Message-ID <[email protected]>
--===============7347883471667635741==
Content-Type: multipart/alternative; boundary="=-wy7BX7oFCJtrRIuT2qYj"


--=-wy7BX7oFCJtrRIuT2qYj
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

I suppose first and foremost one could argue that the network
configuration software shouldn't be removing addresses that it didn't
add, and I would suggest that you report that as a bug to Ubuntu.
The good news, however, is that keepalived now (v2.0.x) detects its
addresses (and ip routes and rules) being deleted, and takes action to
reinstate them. If keepalived's addresses are removed, the relevant
vrrp instance(s) will transition to backup state. When the instance
becomes master again, the addresses will be re-added.
I suggest that you use the latest  code from the master branch since
one or two issues have been resolved since v2.0.0 (and indeed since
v2.0.4) were released.
Quentin Armitage
On Tue, 2018-06-26 at 12:37 +0200, Rene Bakkum wrote:
>     Hi,
> 
>       
> 
>       Not sure if this would be the right list to post it, but I
> guess
>       this is a good start.
> 
>       
> 
>       When using Ubuntu 18.04 LTS the network configuration has
> changed
>       from an interface file to netplan yaml configuration. The
> problem
>       I am facing is that once I make changes in the netplan
>       configuration and apply these, my keepalived IPs are removed
> from
>       the IP list. Keepalived is still running in master mode and
> still
>       has the idea all is fine, but the IPs he should keep running
> are
>       not there anymore. Once I do a failover or restart the
> keepalived
>       daemon on the server it will bring the interface back online. I
>       could just stop using the netplan to apply new IPs and use the
> `ip
>       addr` commands, but would be nice to add the IPs in the yaml
>       configuration and have it available with reboots. 
> 
>       
> 
>       Just wondering what solution within keepalived are available?
> 
>       
> 
>       Regards,
> 
>       Rene Bakkum
> 
>     
>   
> 
> -------------------------------------------------------------------
> -----------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot__________
> _____________________________________
> Keepalived-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/keepalived-devel
--=-wy7BX7oFCJtrRIuT2qYj
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html><head>

    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8=
">
  </head>
  <body text=3D"#2e3436" bgcolor=3D"#ffffff" link=3D"#2a76c6" vlink=3D"#2e3=
436"><div>I suppose first and foremost one could argue that the network con=
figuration software shouldn't be removing addresses that it didn't add, and=
 I would suggest that you report that as a bug to Ubuntu.</div><div><br></d=
iv><div>The good news, however, is that keepalived now (v2.0.x) detects its=
 addresses (and ip routes and rules) being deleted, and takes action to rei=
nstate them. If keepalived's addresses are removed, the relevant vrrp insta=
nce(s) will transition to backup state. When the instance becomes master ag=
ain, the addresses will be re-added.</div><div><br></div><div>I suggest tha=
t you use the latest  code from the master branch since one or two issues h=
ave been resolved since v2.0.0 (and indeed since v2.0.4) were released.</di=
v><div><br></div><div>Quentin Armitage</div><div><br></div><div>On Tue, 201=
8-06-26 at 12:37 +0200, Rene Bakkum wrote:</div><blockquote type=3D"cite" s=
tyle=3D"margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
    <font face=3D"Helvetica, Arial, sans-serif">Hi,<br>
      <br>
      Not sure if this would be the right list to post it, but I guess
      this is a good start.<br>
      <br>
      When using Ubuntu 18.04 LTS the network configuration has changed
      from an interface file to netplan yaml configuration. The problem
      I am facing is that once I make changes in the netplan
      configuration and apply these, my keepalived IPs are removed from
      the IP list. Keepalived is still running in master mode and still
      has the idea all is fine, but the IPs he should keep running are
      not there anymore. Once I do a failover or restart the keepalived
      daemon on the server it will bring the interface back online. I
      could just stop using the netplan to apply new IPs and use the `ip
      addr` commands, but would be nice to add the IPs in the yaml
      configuration and have it available with reboots. <br>
      <br>
      Just wondering what solution within keepalived are available?<br>
      <br>
      Regards,<br>
      Rene Bakkum<br>
    </font>
 =20

<pre>----------------------------------------------------------------------=
--------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! <a href=3D"http://sdm.link/slashdot">htt=
p://sdm.link/slashdot</a></pre><pre>_______________________________________=
________
Keepalived-devel mailing list
<a href=3D"mailto:[email protected]">Keepalived-devel@=
lists.sourceforge.net</a>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/keepalived-devel">h=
ttps://lists.sourceforge.net/lists/listinfo/keepalived-devel</a>
</pre></blockquote></body></html>
--=-wy7BX7oFCJtrRIuT2qYj--



--===============7347883471667635741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============7347883471667635741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel

--===============7347883471667635741==--