Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Add test for verify sysctls are applied correctly. #1312

Closed
amshinde opened this issue Mar 18, 2019 · 2 comments
Closed

Add test for verify sysctls are applied correctly. #1312

amshinde opened this issue Mar 18, 2019 · 2 comments
Assignees

Comments

@amshinde
Copy link
Member

amshinde commented Mar 18, 2019

Ref: https://github.com/kata-containers/documentation/blob/master/how-to/how-to-use-sysctls-with-kata.md
We currently just have unit tests for this.
Maybe we can just add a docker test for this, that checks:

$ sudo docker run --runtime=kata-runtime --sysctl fs.mqueue.queues_max=512 -it alpine cat /proc/sys/fs/mqueue/queues_max
256
$ sudo docker run --runtime=kata-runtime --sysctl net.ipv4.route.min_pmtu=1024 -it alpine cat /proc/sys/net/ipv4/route.min_pmtu
1024

cc @GabyCT

@GabyCT GabyCT self-assigned this Mar 19, 2019
@GabyCT
Copy link
Contributor

GabyCT commented Mar 19, 2019

@amshinde while running

$ docker run --runtime=kata-runtime --sysctl net.ipv4.route.min_pmtu=1024 -it alpine cat /proc/sys/net/ipv4/route.min_pmtu
docker: Error response from daemon: OCI runtime create failed: rpc error: code = Unknown desc = sysctl "net.ipv4.route.min_pmtu" is not allowed in the hosts network namespace: unknown.

I am using ubuntu 18.04 any idea about this?

GabyCT added a commit to GabyCT/tests-1 that referenced this issue Mar 19, 2019
This will add a docker integration test for sysctls.

Fixes kata-containers#1312

Signed-off-by: Gabriela Cervantes <[email protected]>
@amshinde
Copy link
Member Author

@GabyCT Rootfs needs to have this change included : kata-containers/agent#473

GabyCT added a commit to GabyCT/tests-1 that referenced this issue Mar 20, 2019
This will add a docker integration test for sysctls.

Fixes kata-containers#1312

Signed-off-by: Gabriela Cervantes <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants