sysconfig fails to apply sysctl

Bug #1915167 reported by Giuseppe Petralia
10
This bug affects 2 people
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.neigh.default.gc_thresh1 : 128,
  net.ipv4.neigh.default.gc_thresh2 : 28672,
  net.ipv4.neigh.default.gc_thresh3 : 32768,
  net.ipv6.neigh.default.gc_thresh1 : 128,
  net.ipv6.neigh.default.gc_thresh2 : 28672,
  net.ipv6.neigh.default.gc_thresh3 : 32768,
  net.nf_conntrack_max : 1000000,
  net.netfilter.nf_conntrack_buckets : 204800,
  net.netfilter.nf_conntrack_max : 1000000 }

we need to understand if sysconfig sysctl are wiped by
- a config change to nova-compute that applies its sysctl
- a reboot

Related branches

Revision history for this message
Zachary Zehring (zzehring) wrote :

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 }"

Revision history for this message
Jose Guedez (jfguedez) wrote :

Added the charm to a fresh machine. I can confirm that the file wasn't created on charm deployment. The following file is *missing* on the new unit, but present on previous ones (with the expected content, matching the charm settings):

/etc/sysctl.d/90-charm-sysconfig.conf

Changed in charm-sysconfig:
status: New → Confirmed
importance: Undecided → High
tags: added: aubergine
Eric Chen (eric-chen)
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.