After enabling HugePages in UPF using the library and them disabling them, one container of UPF charm (bessd) never gets ready, as the process started by pebble gets killed shortly after starting it. This is caused by a wrong memory limit enforcement made by the library.
Describe the bug
After enabling HugePages in UPF using the library and them disabling them, one container of UPF charm (
bessd
) never gets ready, as the process started by pebble gets killed shortly after starting it. This is caused by a wrong memory limit enforcement made by the library.To Reproduce
juju config sdcore-upf-operator enable-hugepages=True
juju config sdcore-upf-operator enable-hugepages=False
Expected behavior
UPF charm should be active.
Logs
No relevant logs are present, however
bessd
gets killed shortly after the startup.Environment
0.1
juju --version
):3.1.6-genericlinux-amd64
kubectl version --short
):v1.27.6
Additional context
Issue is caused by forcing
memory: 512Mi
in resource requirements (limits and requests). Increasing it to 1Gi solves the issue.