You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a script /config/scripts/commit/post-hooks.d/10-restart-ch-lbaas-agent with the following content:
#!/bin/sh
# This is a post commit hook script to be placed under
# /config/scripts/commit/post-hooks.d. It will be executed after each commit in
# order bypass a problem with the Cloud and Heat LBaaS agent and VyOS.
if systemctl is-active ch-k8s-lbaas; then
sudo systemctl restart ch-k8s-lbaas
fi
Make sure that the script has execution permissions. It will run after each commit of a new configuration and restart the LBaaS agent.
Note that there must be a systemd unit called ch-k8s-lbaas which is responsible for starting, stopping etc. the LBaaS agent on the VyOS firewall.
The text was updated successfully, but these errors were encountered:
Description
The LBaaS stops working every time a new firewall configuration has been committed. The problem has been observed with VyOS Sagitta.
The problem seems to be, that VyOS flushes nftables rules before in order to apply the new rules which implements the VyOS firewall configuration.
Snipped of nftables rules with working LBaaS:
Snipped of nftables rules after changes to the firewall configuration have been applied:
As one can see, the chain
VYOS_PRE_?NAT_HOOK
has changed.To fix that the LBaaS agent needs to be restarted.
To reproduce
Workaround
If not exist, create the commit post hook scripts directory:
Create a script
/config/scripts/commit/post-hooks.d/10-restart-ch-lbaas-agent
with the following content:Make sure that the script has execution permissions. It will run after each commit of a new configuration and restart the LBaaS agent.
Note that there must be a systemd unit called
ch-k8s-lbaas
which is responsible for starting, stopping etc. the LBaaS agent on the VyOS firewall.The text was updated successfully, but these errors were encountered: