Public bug reported: Sorry I'm new to Ubuntu but I have been trying to get microK8s to work on my Raspi Pi4/8Gb for a while now - the instructions are simple enough and I have K8s and Docker running and working on other OS so...
But no matter what I try I can't get a stable set of services running. Having investigated this I think the problem could be something to do with this: The microk8s inspect command reports iptables/1.8.7 Failed to initialize nft: Protocol not supported ERROR: Couldn't determine iptables version Following various threads on the internet people suggest checking if iptables is part of the kernel or a module ubuntu@aitu20pi42:~$ grep -i iptables /boot/config-$(uname -r) CONFIG_IP_NF_IPTABLES=m CONFIG_IP6_NF_IPTABLES=m # iptables trigger is under Netfilter config (LED target) So checking if the iptables module is installed / present ubuntu@aitu20pi42:~$ modinfo ip_tables modinfo: ERROR: Module ip_tables not found. ubuntu@aitu20pi42:~$ modprobe ip_tables modprobe: FATAL: Module ip_tables not found in directory /lib/modules/5.13.0-1017-raspi >From the package file list and what I have read I would expect to find a file /lib/modules/5.13.0-1017-raspi/kernel/net/ipv4/netfilter/ip_tables.ko But in fact there are only these two modules in /net/ipv4 ubuntu@aitu20pi42:~$ ls /lib/modules/5.13.0-1017-raspi/kernel/net/ipv4 gre.ko udp_tunnel.ko there is no netfilter directory in either /ipv4 or /ipv6 or /bridge ubuntu@aitu20pi42:~$ ls /lib/modules/5.13.0-1017-raspi/kernel/net/ipv6 ip6_tunnel.ko ip6_udp_tunnel.ko tunnel6.ko. While trying to resolve my problem I came across suggestions that said to try reinstalling the linux-modules package (because that's where they are?) so I've tried with linux-modules-5.13.0-1016-raspi and I've just upgraded to linux- modules-5.13.0-1017-raspi to no avail. I also came across this Bug #1942691 https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/1942691 and while I appreciate they are missing a different module; rpi-poe-fan, some of what they describe; "I can['t] even find it under the relevant path in /lib/modules." and "If I do not put the module in /etc/initramfs-tools/modules the module will not be there after a reboot (e.g. remove from the filesystem). And this is so for a lot of the other modules. I am booting from iSCSI and even the NFS modules are gone. As far as I know this wasn't the case in previous version." So I'm wondering if these issues are related and my problem is perhaps part of a wider problem? I know my problem originally manifested itself as an issue with microk8s and I'm not convinced that it is solely down to a missing ip_tables modules but I don't think its just a microk8s problem because if I try to do anything with the firewall for example ubuntu@aitu20pi42:~$ sudo ufw status ERROR: Couldn't determine iptables version or ubuntu@aitu20pi42:~$ sudo iptables -P FORWARD ACCEPT iptables/1.8.7 Failed to initialize nft: Protocol not supported I get the same problem but ufw is just a wrapper around iptables and since ufw is installed it seems reasonable to expect that its dependencies are installed also. I'm obviously not a linux expert but I'm not alone in thinking that I should be able to find a whole bunch of *.ko files beneath /lib/modules/**/ or more than I can presently. If you need any more information from me, to investigate this further, then please let me know what commands to run and I'll report back what I find. System info below. ======================================== Welcome to Ubuntu 21.10 (GNU/Linux 5.13.0-1017-raspi aarch64) System load: 1.13 Temperature: 37.0 C Usage of /: 4.7% of 223.19GB Processes: 142 Memory usage: 2% Users logged in: 0 Swap usage: 0% IPv4 address for eth0: 192.168.1.58 ubuntu@aitu20pi42:~$ lsb_release -rd Description: Ubuntu 21.10 Release: 21.10 ** Affects: linux-raspi (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-raspi in Ubuntu. https://bugs.launchpad.net/bugs/1962053 Title: Modules missing from package install Status in linux-raspi package in Ubuntu: New Bug description: Sorry I'm new to Ubuntu but I have been trying to get microK8s to work on my Raspi Pi4/8Gb for a while now - the instructions are simple enough and I have K8s and Docker running and working on other OS so... But no matter what I try I can't get a stable set of services running. Having investigated this I think the problem could be something to do with this: The microk8s inspect command reports iptables/1.8.7 Failed to initialize nft: Protocol not supported ERROR: Couldn't determine iptables version Following various threads on the internet people suggest checking if iptables is part of the kernel or a module ubuntu@aitu20pi42:~$ grep -i iptables /boot/config-$(uname -r) CONFIG_IP_NF_IPTABLES=m CONFIG_IP6_NF_IPTABLES=m # iptables trigger is under Netfilter config (LED target) So checking if the iptables module is installed / present ubuntu@aitu20pi42:~$ modinfo ip_tables modinfo: ERROR: Module ip_tables not found. ubuntu@aitu20pi42:~$ modprobe ip_tables modprobe: FATAL: Module ip_tables not found in directory /lib/modules/5.13.0-1017-raspi From the package file list and what I have read I would expect to find a file /lib/modules/5.13.0-1017-raspi/kernel/net/ipv4/netfilter/ip_tables.ko But in fact there are only these two modules in /net/ipv4 ubuntu@aitu20pi42:~$ ls /lib/modules/5.13.0-1017-raspi/kernel/net/ipv4 gre.ko udp_tunnel.ko there is no netfilter directory in either /ipv4 or /ipv6 or /bridge ubuntu@aitu20pi42:~$ ls /lib/modules/5.13.0-1017-raspi/kernel/net/ipv6 ip6_tunnel.ko ip6_udp_tunnel.ko tunnel6.ko. While trying to resolve my problem I came across suggestions that said to try reinstalling the linux-modules package (because that's where they are?) so I've tried with linux-modules-5.13.0-1016-raspi and I've just upgraded to linux- modules-5.13.0-1017-raspi to no avail. I also came across this Bug #1942691 https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/1942691 and while I appreciate they are missing a different module; rpi-poe- fan, some of what they describe; "I can['t] even find it under the relevant path in /lib/modules." and "If I do not put the module in /etc/initramfs-tools/modules the module will not be there after a reboot (e.g. remove from the filesystem). And this is so for a lot of the other modules. I am booting from iSCSI and even the NFS modules are gone. As far as I know this wasn't the case in previous version." So I'm wondering if these issues are related and my problem is perhaps part of a wider problem? I know my problem originally manifested itself as an issue with microk8s and I'm not convinced that it is solely down to a missing ip_tables modules but I don't think its just a microk8s problem because if I try to do anything with the firewall for example ubuntu@aitu20pi42:~$ sudo ufw status ERROR: Couldn't determine iptables version or ubuntu@aitu20pi42:~$ sudo iptables -P FORWARD ACCEPT iptables/1.8.7 Failed to initialize nft: Protocol not supported I get the same problem but ufw is just a wrapper around iptables and since ufw is installed it seems reasonable to expect that its dependencies are installed also. I'm obviously not a linux expert but I'm not alone in thinking that I should be able to find a whole bunch of *.ko files beneath /lib/modules/**/ or more than I can presently. If you need any more information from me, to investigate this further, then please let me know what commands to run and I'll report back what I find. System info below. ======================================== Welcome to Ubuntu 21.10 (GNU/Linux 5.13.0-1017-raspi aarch64) System load: 1.13 Temperature: 37.0 C Usage of /: 4.7% of 223.19GB Processes: 142 Memory usage: 2% Users logged in: 0 Swap usage: 0% IPv4 address for eth0: 192.168.1.58 ubuntu@aitu20pi42:~$ lsb_release -rd Description: Ubuntu 21.10 Release: 21.10 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/1962053/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp