Repository navigation
Description
Description
I have installed Ubuntu 23.10 on my new Raspberry Pi 5 and added the Pi to my K3S Cluster.
Problem is that i can't succsfull start any container on the Pi 5 and i see this error:
Error: failed to create containerd container: get apparmor_parser version: strconv.Atoi: parsing "0~alpha2": invalid syntax
The parsing failed because the Version number of AppArmor includes "~alpha2", which is unexpected: 4.0.0~alpha2
There was a similar issue in Podman: podman-container-tools/podman#20278
Steps to reproduce the issue
- Try to start a container via k3s
Describe the results you received and expected
Error: failed to create containerd container: get apparmor_parser version: strconv.Atoi: parsing "0~alpha2": invalid syntax
What version of containerd are you using?
1.7.2
Any other relevant information
runc version 1.1.7-0ubuntu2
spec: 1.0.2-dev
go: go1.21.0
libseccomp: 2.5.4
{
"status": {
"conditions": [
{
"type": "RuntimeReady",
"status": true,
"reason": "",
"message": ""
},
{
"type": "NetworkReady",
"status": true,
"reason": "",
"message": ""
}
]
},
"cniconfig": {
"PluginDirs": [
"/var/lib/rancher/k3s/data/8ba10e6674ad2dd3b3ac1d08a029eecd6609e2c058d8e7dc7c6d7b959d1da765/bin"
],
"PluginConfDir": "/var/lib/rancher/k3s/agent/etc/cni/net.d",
"PluginMaxConfNum": 1,
"Prefix": "eth",
"Networks": [
{
"Config": {
"Name": "cni-loopback",
"CNIVersion": "0.3.1",
"Plugins": [
{
"Network": {
"type": "loopback",
"ipam": {},
"dns": {}
},
"Source": "{"type":"loopback"}"
}
],
"Source": "{\n"cniVersion": "0.3.1",\n"name": "cni-loopback",\n"plugins": [{\n "type": "loopback"\n}]\n}"
},
"IFName": "lo"
},
{
"Config": {
"Name": "cbr0",
"CNIVersion": "0.3.1",
"Plugins": [
{
"Network": {
"type": "flannel",
"ipam": {},
"dns": {}
},
"Source": "{"delegate":{"forceAddress":true,"hairpinMode":true,"isDefaultGateway":true},"type":"flannel"}"
},
{
"Network": {
"type": "portmap",
"capabilities": {
"portMappings": true
},
"ipam": {},
"dns": {}
},
"Source": "{"capabilities":{"portMappings":true},"type":"portmap"}"
}
],
"Source": "{\n "name":"cbr0",\n "cniVersion":"0.3.1",\n "plugins":[\n {\n "type":"flannel",\n "delegate":{\n "hairpinMode":true,\n "forceAddress":true,\n "isDefaultGateway":true\n }\n },\n {\n "type":"portmap",\n "capabilities":{\n "portMappings":true\n }\n }\n ]\n}\n"
},
"IFName": "eth0"
}
]
},
"config": {
"containerd": {
"snapshotter": "overlayfs",
"defaultRuntimeName": "runc",
"defaultRuntime": {
"runtimeType": "",
"runtimeEngine": "",
"PodAnnotations": null,
"ContainerAnnotations": null,
"runtimeRoot": "",
"options": null,
"privileged_without_host_devices": false,
"baseRuntimeSpec": ""
},
"untrustedWorkloadRuntime": {
"runtimeType": "",
"runtimeEngine": "",
"PodAnnotations": null,
"ContainerAnnotations": null,
"runtimeRoot": "",
"options": null,
"privileged_without_host_devices": false,
"baseRuntimeSpec": ""
},
"runtimes": {
"runc": {
"runtimeType": "io.containerd.runc.v2",
"runtimeEngine": "",
"PodAnnotations": null,
"ContainerAnnotations": null,
"runtimeRoot": "",
"options": null,
"privileged_without_host_devices": false,
"baseRuntimeSpec": ""
}
},
"noPivot": false,
"disableSnapshotAnnotations": true,
"discardUnpackedLayers": false
},
"cni": {
"binDir": "/var/lib/rancher/k3s/data/8ba10e6674ad2dd3b3ac1d08a029eecd6609e2c058d8e7dc7c6d7b959d1da765/bin",
"confDir": "/var/lib/rancher/k3s/agent/etc/cni/net.d",
"maxConfNum": 1,
"confTemplate": ""
},
"registry": {
"mirrors": {
"docker.io": {
"endpoint": [
"https://registry-1.docker.io"
],
"rewrite": null
}
},
"configs": null,
"auths": null,
"headers": null
},
"imageDecryption": {
"keyModel": ""
},
"disableTCPService": true,
"streamServerAddress": "127.0.0.1",
"streamServerPort": "10010",
"streamIdleTimeout": "4h0m0s",
"enableSelinux": false,
"selinuxCategoryRange": 1024,
"sandboxImage": "rancher/pause:3.1",
"statsCollectPeriod": 10,
"systemdCgroup": false,
"enableTLSStreaming": false,
"x509KeyPairStreaming": {
"tlsCertFile": "",
"tlsKeyFile": ""
},
"maxContainerLogSize": 16384,
"disableCgroup": false,
"disableApparmor": false,
"restrictOOMScoreAdj": false,
"maxConcurrentDownloads": 3,
"disableProcMount": false,
"unsetSeccompProfile": "",
"tolerateMissingHugetlbController": true,
"disableHugetlbController": true,
"ignoreImageDefinedVolumes": false,
"containerdRootDir": "/var/lib/rancher/k3s/agent/containerd",
"containerdEndpoint": "/run/k3s/containerd/containerd.sock",
"rootDir": "/var/lib/rancher/k3s/agent/containerd/io.containerd.grpc.v1.cri",
"stateDir": "/run/k3s/containerd/io.containerd.grpc.v1.cri"
},
"golang": "go1.16.10",
"lastCNILoadStatus": "OK"
}
Linux pi-04 6.5.0-1007-raspi #9-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 7 18:36:01 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
Show configuration if it is related to CRI plugin.
disabled_plugins = ["cri"]
#root = "/var/lib/containerd"
#state = "/run/containerd"
#subreaper = true
#oom_score = 0
#[grpc]
address = "/run/containerd/containerd.sock"
uid = 0
gid = 0
#[debug]
Activity
lengrongfu commentedon Dec 8, 2023
/assign
lengrongfu commentedon Dec 9, 2023
@ThisIsBenny I can't reproduce this problem.
ThisIsBenny commentedon Dec 9, 2023
I have downgraded the Apparmor Version to 3.0.8 on my Raspberry PI to unblock my setup, so I have now a different situation. What I have notice is that the apparmor_parser is still 4.0.0~alpha2.
thaJeztah commentedon Dec 9, 2023
The version parsing was removed in containerd 1.7 (probably could be removed from 1.6 as well, as it was not really used);
lengrongfu commentedon Dec 9, 2023
Then it is abnormal for contained version 1.7.2 in the issue to report this error.
lengrongfu commentedon Dec 9, 2023
looking this is not bug for containerd.