In cloudvirts, we set some custom values via puppet in /etc/sysctl.d:
cat /etc/sysctl.d/70-nova_conntrack.conf # sysctl parameters managed by Puppet. net.netfilter.nf_conntrack_buckets = 8388608 net.netfilter.nf_conntrack_max = 33554432 net.netfilter.nf_conntrack_tcp_timeout_time_wait = 65
These values fail to apply at boot:
root@cloudvirt1067:~# journalctl -t systemd-sysctl Jun 26 02:54:47 cloudvirt1067 systemd-sysctl[951]: Couldn't write '8388608' to 'net/netfilter/nf_conntrack_buckets', ignoring: No such file or directory Jun 26 02:54:47 cloudvirt1067 systemd-sysctl[951]: Couldn't write '33554432' to 'net/netfilter/nf_conntrack_max', ignoring: No such file or directory Jun 26 02:54:47 cloudvirt1067 systemd-sysctl[951]: Couldn't write '65' to 'net/netfilter/nf_conntrack_tcp_timeout_time_wait', ignoring: No such file or directory
It looks like a race condition where systemd tries to apply the values before the nf_conntrack kernel module is loaded. Related upstream issue: https://github.com/systemd/systemd/issues/1113
This is the same issue as T136094: Race condition in setting net.netfilter.nf_conntrack_tcp_timeout_time_wait but cloudvirts don't have the ferm package installed, so the fix from that old task does not work for cloudvirts.