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

singleuser.cloudMetadata.blockWithIptables to fail with better error messages #3356

Open
consideRatio opened this issue Mar 6, 2024 · 1 comment

Comments

@consideRatio
Copy link
Member

singleuser.cloudMetadata.blockWithIptables works by adding an init container to block access to the cloud metadata server.

While this hasn't happened often to my knowledge, in #3355 we had a k8s cluster setup in a way that it apparently did.

Looking back, maybe the error was that the kernel actually needed to be updated?

kubectl logs jupyter-root -n jhub -c block-cloud-metadata

modprobe: can't change directory to '/lib/modules': No such file or directory
modprobe: can't change directory to '/lib/modules': No such file or directory
iptables v1.8.9 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
@manics
Copy link
Member

manics commented Mar 7, 2024

Iptables was added to the Linux kernel in v3.13 https://en.wikipedia.org/wiki/Iptables so it's unlikely to be out of date!

modprobe: can't change directory to '/lib/modules': No such file or directory
This sounds like the problem, the standard kernel modules directory either isn't accessible, or is in a non-standard location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants