sysctl settings for net.nf_conntrack_max are not applied at boot time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron Open vSwitch Charm |
Confirmed
|
Undecided
|
Unassigned | ||
OpenStack Nova Compute Charm |
Confirmed
|
Undecided
|
Unassigned | ||
charm-ovn-chassis |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
In a Queens deployment on Bionic 18.04.3, we are receiving alerts from nrpe charm's conntrack checks stating that conntrack table is almost full on our hypervisor nodes running charm-nova-comptue and charm-neutron-
Both of these charms have a default configuration to set 1000000 or 2000000 for nf_conntrack_max as needed for hosting network connection heavy virtual workloads.
It appears that there's a bug https:/
We should solve this issue either by addressing the upstream bug, by adding the proper modules for typical hypervisor tunables into the initramfs (as noted worked for nfsd tunables in comments of lp#50093), or by having the services load their /etc/sysctl.d/ modules during system init.
Changed in charm-ovn-chassis: | |
status: | New → Confirmed |
Some proof of observation of the issue:
$ cat /proc/sys/ net/nf_ conntrack_ max compute. conf:net. nf_conntrack_ max=1000000 compute. conf:net. netfilter. nf_conntrack_ buckets= 204800 compute. conf:net. netfilter. nf_conntrack_ max=1000000 conf:net. nf_conntrack_ max=2000000 conf:net. netfilter. nf_conntrack_ buckets= 204800 conf:net. netfilter. nf_conntrack_ max=2000000 compute. conf 50-openvswitch.conf compute. conf
262144
$ cd /etc/sysctl.d
$ grep conntrack *
50-nova-
50-nova-
50-nova-
50-openvswitch.
50-openvswitch.
50-openvswitch.
$ ls -l 50-nova-
-rw-r--r-- 1 root root 346 Dec 15 21:02 50-nova-
-rw-r--r-- 1 root root 346 Sep 20 2020 50-openvswitch.conf
$ date
Tue Apr 6 17:33:42 UTC 2021
$ uptime
17:33:43 up 24 days, 4:00, 3 users, load average: 4.83, 7.68, 8.78
It appears this has been fixed for charm-neutron- gateway per https:/ /bugs.launchpad .net/charm- neutron- gateway/ +bug/1885192 and should be applied to these two charms.