Microk8s cannot execute binary file - issue with the new Oracle Linux - kernel 5.4.17-2136.300.7.el8uek.x86_64

Hello,

I have an issue with microk8s after kernel update on Oracle Server Linux.
After the kernel update, Microk8s is not working at all.

Not working with the kernel (5.4.17-2136.300.7.el8uek.x86_64)

[root@myoralinux pepa]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.4"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.4"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:4:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.4
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.4

[root@myoralinux2 pepa]# uname -r
5.4.17-2136.300.7.el8uek.x86_64
[root@myoralinux2 pepa]# microk8s status
/snap/microk8s/2551/microk8s-status.wrapper: line 6: /snap/microk8s/2551/bin/uname: cannot execute binary file: Exec format error
root@myoralinux2 bin]# pwd
/snap/microk8s/2551/bin
[root@myoralinux2 bin]# ./uname
bash: ./uname: cannot execute binary file: Exec format error
[root@myoralinux2 bin]# file ./uname
./uname: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /snap/core18/current/lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2b4b6989bb8cf1061951e98ab1cc8e6130f6aa5c, for GNU/Linux 3.2.0, stripped

but, it is working with the previous kernel (5.4.17-2102.201.3.el8uek.x86_64)

[root@myoralinux2 pepa]# uname -r
5.4.17-2102.201.3.el8uek.x86_64
[root@myoralinux2 pepa]# 
[root@myoralinux2 pepa]# microk8s kubectl get all
NAME                 TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   10.152.183.1   <none>        443/TCP   15m
[root@myoralinux2 bin]# pwd
/snap/microk8s/current/bin
[root@myoralinux2 bin]# file uname
uname: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /snap/core18/current/lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2b4b6989bb8cf1061951e98ab1cc8e6130f6aa5c, for GNU/Linux 3.2.0, stripped
[root@myoralinux2 bin]# ./uname
Linux
[root@myoralinux2 bin]# 

I also tried a new clean installation (on new Oracle Linux virtual) but it also fails

[root@myoralinux pepa]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.4"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.4"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:4:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.4
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.4
[root@myoralinux pepa]# uname -r
5.4.17-2136.300.7.el8uek.x86_64
[root@myoralinux pepa]# snap install microk8s --classic
error: cannot perform the following tasks:
- Run install hook of "microk8s" snap if present (run hook "install":
-----
++ /snap/microk8s/2551/bin/uname -m
/var/lib/snapd/snap/microk8s/2551/meta/hooks/install: line 5: /snap/microk8s/2551/bin/uname: cannot execute binary file: Exec format error
+ ARCH=
-----)

Do you have any idea how can I solve this issue?

Thanks Pepa

This seems to be a regression in Oracle’s Unbreakable Enterprise Kernel (UEK). We’re seeing a similar issue with our binary tarball distribution of Percona Server for MySQL. I submitted a bug report about this here - let’s see if it will be investigated.