sysconfig fails to apply sysctl
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-sysconfig |
Fix Released
|
High
|
Mert Kirpici |
Bug Description
We have sysconfig related to nova-compute
$ juju config sysconfig sysctl
{ vm.swappiness: 10 }
when checking the nodes we don't see vm.swappiness applied:
root@node1:~# sysctl -a | grep vm.swap
vm.swappiness = 60
Given nova-compute has its own sysctl and they are configured on the machine:
$ juju config nova-compute-kvm sysctl
{ net.ipv4.
net.ipv4.
net.ipv4.
net.ipv6.
net.ipv6.
net.ipv6.
net.nf_
net.netfilter
net.netfilter
we need to understand if sysconfig sysctl are wiped by
- a config change to nova-compute that applies its sysctl
- a reboot
Related branches
- Giuseppe Petralia: Approve
- Eric Chen: Approve
-
Diff: 49 lines (+16/-0)3 files modifiedsrc/reactive/sysconfig.py (+1/-0)
src/tests/functional/juju_tools.py (+11/-0)
src/tests/functional/test_deploy.py (+4/-0)
tags: | added: aubergine |
tags: | added: bseng-337 |
Changed in charm-sysconfig: | |
assignee: | nobody → Mert Kırpıcı (mertkirpici) |
status: | Confirmed → In Progress |
Changed in charm-sysconfig: | |
status: | In Progress → Fix Committed |
Changed in charm-sysconfig: | |
milestone: | none → 22.08 |
Changed in charm-sysconfig: | |
status: | Fix Committed → Fix Released |
So after altering the sysctl for the sysconfig application [0], the file sysctl.d file was created and "sysctl -a | grep vm.swap" has been applied. From this, it looks like there's a possibility that the sysctl.d file is not written on initial deploy.
[0] juju config sysconfig sysctl="{ vm.swappiness: 10, vm.extfrag_ threshold: 200, vm.watermark_ scale_factor: 50 }"