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

check-config.sh script doesn't work with Kernel 5.2 (IP_NF_NAT) #39313

Open
Dmole opened this issue Jun 4, 2019 · 9 comments · May be fixed by #39406
Open

check-config.sh script doesn't work with Kernel 5.2 (IP_NF_NAT) #39313

Dmole opened this issue Jun 4, 2019 · 9 comments · May be fixed by #39406
Labels
area/contrib kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.

Comments

@Dmole
Copy link
Contributor

Dmole commented Jun 4, 2019

https://github.com/moby/moby/blob/master/contrib/check-config.sh#L194

in Kernel 5.2 it's IP_NF_NAT (not NF_NAT_IPV4)

@Dmole
Copy link
Contributor Author

Dmole commented Jun 4, 2019

also
NF_NAT_NEEDED -> NF_NAT
IOSCHED_CFQ -> IOSCHED_BFQ
CFQ_GROUP_IOSCHED -> BFQ_GROUP_IOSCHED

@thaJeztah thaJeztah added area/contrib kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. labels Jun 4, 2019
@thaJeztah
Copy link
Member

@Dmole are you interested in contributing, and opening a pull request to add support for the new names to the script? (note that both the old and new names should work, as older kernels are of course still supported).

@thaJeztah thaJeztah changed the title IP_NF_NAT check-config.sh script doesn't work with Kernel 5.2 (IP_NF_NAT) Jun 4, 2019
@thaJeztah
Copy link
Member

Perhaps it could check IP_NF_NAT -> fallback to NF_NAT_IPV4, and mark it as "pass" if one of those is found?

@thaJeztah
Copy link
Member

(we should prevent doing that based on kernel version to take into account distros that backport features to older versions)

@Dmole
Copy link
Contributor Author

Dmole commented Jun 4, 2019

Ideally feature instead of version checks are done, but that is not how the script is currently implemented, and possibly for good reasons like it would be hard to know if a feature is experimental/buggy during periods of overlap. (Ideally distributions use a LTS Kernel but that is rare).

Maybe someone can setup a unit test for this to check the kernels on the server versions of RHL/Ubuntu/Manjaro which should cover the common and newest scenarios.

@Dmole
Copy link
Contributor Author

Dmole commented Jun 4, 2019

Yes, I think pass on one of a set enabled is the best, something like

function check{
#...
}

check NF_NAT_IPV4,IP_NF_NAT \
    NF_NAT_NEEDED,NF_NAT \
    IOSCHED_CFQ,IOSCHED_BFQ

@Dmole
Copy link
Contributor Author

Dmole commented Jun 4, 2019

But first #39317

@Dmole Dmole linked a pull request Jun 25, 2019 that will close this issue
@Dmole
Copy link
Contributor Author

Dmole commented Jul 15, 2019

@thaJeztah bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/contrib kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants