Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting nf_conntrack under sysctl config fails. #33

Closed
dashmage opened this issue Jan 10, 2024 · 3 comments
Closed

Setting nf_conntrack under sysctl config fails. #33

dashmage opened this issue Jan 10, 2024 · 3 comments

Comments

@dashmage
Copy link
Contributor

dashmage commented Jan 10, 2024

By setting a value for net.nf_conntrack_max on the sysctl config the charm gets stuck on a error state. This happens because module nf_conntrack isn't loaded by default.

juju config sysconfig-baremetal sysctl='{ net.nf_conntrack_max : 1000000 }'

juju status 45
...
ubuntu-baremetal/32 active idle 45 100.94.0.225
canonical-livepatch/70 active idle 100.94.0.225 Running kernel 5.4.0-148.165-generic, patchState: nothing-to-apply (source version/commit f1e83ae)
sysconfig-baremetal/42 error idle 100.94.0.225 hook failed: "juju-info-relation-joined"
...

Workaround is to manually modprobe nf_conntrack and then issue a juju resolved on the affected unit.


Imported from Launchpad using lp2gh.

@dashmage
Copy link
Contributor Author

(by aieri)
Felipe, could you please describe a bit more what you are trying to achieve and why you need to increase the conntrack table size? Also: which principal application are you trying to tune for?

@dashmage
Copy link
Contributor Author

(by falencastro)
Andrea, this is for our openstack deployment, charms like nova-compute and ceph-osd have sysctl settings and in some cases when they're on the same host, sysctl settings overlap, so I moved all sysctl settings to sysconfig charm which gets deployed on all of our physical hosts. This is working properly with the caveat that whenever I deploy a new physical host I must modprobe nf_conntrack manually before charm installation.

@dashmage
Copy link
Contributor Author

(by eric-chen)
Felipe,

We have a new library for the priciple charm to setup sysctl settings. Please use this solution to setup system configuration and handle reboot/modprobe in principle charm too.

PR: canonical/operator-libs-linux#99

Spec:
https://docs.google.com/document/d/1qcRsFbiu8fld1P7NqdmUXZn8EDUjTAWxthMjwXQQnqM/edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant