{
"status": {
"conditions": [
{
"type": "RuntimeReady",
"status": true,
"reason": "",
"message": ""
},
{
"type": "NetworkReady",
"status": true,
"reason": "",
"message": ""
}
]
},
"cniconfig": {
"PluginDirs": [
"c:/k/azurecni/bin"
],
"PluginConfDir": "c:/k/azurecni/netconf",
"PluginMaxConfNum": 1,
"Prefix": "eth",
"Networks": [
{
"Config": {
"Name": "azure",
"CNIVersion": "0.3.0",
"Plugins": [
{
"Network": {
"type": "azure-vnet",
"capabilities": {
"dns": true,
"portMappings": true
},
"ipam": {
"type": "azure-vnet-ipam"
},
"dns": {
"nameservers": [
"10.0.0.10",
"168.63.129.16"
],
"search": [
"svc.cluster.local"
]
}
},
"Source": "{\"AdditionalArgs\":[{\"Name\":\"EndpointPolicy\",\"Value\":{\"ExceptionList\":[\"10.0.0.0
/8\",\"10.240.0.0/12\"],\"Type\":\"OutBoundNAT\"}},{\"Name\":\"EndpointPolicy\",\"Value\":{\"DestinationPrefix\":\"
10.0.0.0/16\",\"NeedEncap\":true,\"Type\":\"ROUTE\"}},{\"Name\":\"EndpointPolicy\",\"Value\":{\"Action\":\"Block\",
\"Direction\":\"Out\",\"Priority\":200,\"Protocols\":\"6\",\"RemoteAddresses\":\"168.63.129.16/32\",\"RemotePorts\"
:\"80\",\"RuleType\":\"Switch\",\"Type\":\"ACL\"}},{\"Name\":\"EndpointPolicy\",\"Value\":{\"Action\":\"Allow\",\"D
irection\":\"In\",\"Priority\":65500,\"Type\":\"ACL\"}},{\"Name\":\"EndpointPolicy\",\"Value\":{\"Action\":\"Allow\
",\"Direction\":\"Out\",\"Priority\":65500,\"Type\":\"ACL\"}}],\"bridge\":\"azure0\",\"capabilities\":{\"dns\":true
,\"portMappings\":true},\"dns\":{\"Nameservers\":[\"10.0.0.10\",\"168.63.129.16\"],\"Search\":[\"svc.cluster.local\
"]},\"ipam\":{\"type\":\"azure-vnet-ipam\"},\"mode\":\"bridge\",\"type\":\"azure-vnet\"}"
}
],
"Source": "{\r\n \"cniVersion\": \"0.3.0\",\r\n \"name\": \"azure\",\r\n \"adapterName\": \"\
",\r\n \"plugins\": [\r\n {\r\n \"type\": \"azure-vnet\",\r\n
\"mode\": \"bridge\",\r\n \"bridge\": \"azure0\",\r\n
\"capabilities\": {\r\n \"portMappings\": true,\r\n
\"dns\": true\r\n },\r\n
\"ipam\": {\r\n \"type\": \"azure-vnet-ipam\"\r\n
},\r\n \"dns\": {\r\n \"Nameservers\": [\r\n
\"10.0.0.10\",\r\n
\"168.63.129.16\"\r\n ],\r\n
\"Search\": [\r\n \"svc.cluster.local\"\r\n
]\r\n },\r\n \"Additi
onalArgs\": [\r\n {\r\n
\"Name\": \"EndpointPolicy\",\r\n \"Value\": {\r\n
\"Type\": \"OutBoundNAT\",\r\n
\"ExceptionList\": [\r\n
\"10.0.0.0/8\",\r\n
\"10.240.0.0/12\"\r\n
]\r\n }\r\n
},\r\n {\r\n
\"Name\": \"EndpointPolicy\",\r\n \"Value\": {\r\n
\"Type\": \"ROUTE\",\r\n
\"DestinationPrefix\": \"10.0.0.0/16\",\r\n
\"NeedEncap\": true\r\n
}\r\n },\r\n {\r\n
\"Name\": \"EndpointPolicy\",\r\n
\"Value\": {\r\n \"Type\": \"
ACL\",\r\n \"Protocols\": \"6\",\r\n
\"Action\": \"Block\",\r\n
\"Direction\": \"Out\",\r\n
\"RemoteAddresses\": \"168.63.129.16/32\",\r\n
\"RemotePorts\": \"80\",\r\n \"Priority\": 200
,\r\n \"RuleType\": \"Switch\"\r\n
}\r\n },\r\n
{\r\n \"Name\": \"EndpointPol
icy\",\r\n \"Value\": {\r\n
\"Type\": \"ACL\",\r\n
\"Action\": \"Allow\",\r\n \"Direction\": \"In\"
,\r\n \"Priority\": 65500\r\n
}\r\n },\r\n
{\r\n \"Name\": \"EndpointPolicy\"
,\r\n \"Value\": {\r\n
\"Type\": \"ACL\",\r\n \"Ac
tion\": \"Allow\",\r\n \"Direction\": \"Out\",\r\
n \"Priority\": 65500\r\n
}\r\n }\r\n
]\r\n }\r\n ]\r\n}\r\n"
},
"IFName": "eth0"
}
]
},
"config": {
"containerd": {
"snapshotter": "windows",
"defaultRuntimeName": "default",
"defaultRuntime": {
"runtimeType": "io.containerd.runhcs.v1",
"runtimeEngine": "",
"PodAnnotations": null,
"ContainerAnnotations": null,
"runtimeRoot": "",
"options": {
"Debug": true,
"DebugType": 2,
"SandboxImage": "mcr.microsoft.com/oss/kubernetes/pause:3.4.1-windows-1809-amd64",
"SandboxIsolation": 0,
"SandboxPlatform": "windows/amd64"
},
"privileged_without_host_devices": false,
"baseRuntimeSpec": ""
},
"untrustedWorkloadRuntime": {
"runtimeType": "",
"runtimeEngine": "",
"PodAnnotations": null,
"ContainerAnnotations": null,
"runtimeRoot": "",
"options": null,
"privileged_without_host_devices": false,
"baseRuntimeSpec": ""
},
"runtimes": {
"default": {
"runtimeType": "io.containerd.runhcs.v1",
"runtimeEngine": "",
"PodAnnotations": null,
"ContainerAnnotations": null,
"runtimeRoot": "",
"options": {
"Debug": true,
"DebugType": 2,
"SandboxImage": "mcr.microsoft.com/oss/kubernetes/pause:3.4.1-windows-1809-amd64",
"SandboxIsolation": 0,
"SandboxPlatform": "windows/amd64"
},
"privileged_without_host_devices": false,
"baseRuntimeSpec": ""
},
"runhcs-wcow-process": {
"runtimeType": "io.containerd.runhcs.v1",
"runtimeEngine": "",
"PodAnnotations": null,
"ContainerAnnotations": null,
"runtimeRoot": "",
"options": {
"Debug": true,
"DebugType": 2,
"SandboxImage": "mcr.microsoft.com/oss/kubernetes/pause:3.4.1-windows-1809-amd64",
"SandboxPlatform": "windows/amd64"
},
"privileged_without_host_devices": false,
"baseRuntimeSpec": ""
}
},
"noPivot": false,
"disableSnapshotAnnotations": false,
"discardUnpackedLayers": true
},
"cni": {
"binDir": "c:/k/azurecni/bin",
"confDir": "c:/k/azurecni/netconf",
"maxConfNum": 1,
"confTemplate": ""
},
"registry": {
"configPath": "",
"mirrors": {
"docker.io": {
"endpoint": [
"https://registry-1.docker.io"
]
}
},
"configs": null,
"auths": null,
"headers": null
},
"imageDecryption": {
"keyModel": "node"
},
"disableTCPService": true,
"streamServerAddress": "127.0.0.1",
"streamServerPort": "0",
"streamIdleTimeout": "4h0m0s",
"enableSelinux": false,
"selinuxCategoryRange": 0,
"sandboxImage": "mcr.microsoft.com/oss/kubernetes/pause:3.4.1-windows-1809-amd64",
"statsCollectPeriod": 10,
"systemdCgroup": false,
"enableTLSStreaming": false,
"x509KeyPairStreaming": {
"tlsCertFile": "",
"tlsKeyFile": ""
},
"maxContainerLogSize": 16384,
"disableCgroup": false,
"disableApparmor": false,
"restrictOOMScoreAdj": false,
"maxConcurrentDownloads": 3,
"disableProcMount": false,
"unsetSeccompProfile": "",
"tolerateMissingHugetlbController": false,
"disableHugetlbController": false,
"ignoreImageDefinedVolumes": false,
"netnsMountsUnderStateDir": false,
"containerdRootDir": "C:\\Program Files\\Git\\var\\lib\\containerd-test",
"containerdEndpoint": "//./pipe//run/containerd-test/containerd",
"rootDir": "C:\\Program Files\\Git\\var\\lib\\containerd-test\\io.containerd.grpc.v1.cri",
"stateDir": "C:\\Program Files\\Git\\run\\containerd-test\\io.containerd.grpc.v1.cri"
},
"golang": "go1.16.4",
"lastCNILoadStatus": "OK"
}
Description
If the containerd process ended abruptly, and restarted afterwards, any previously running Containers / Pods can no longer de stopped / removed. Attempting to do so, on the next containerd restart, the following message can be seen by using crictl:
ctr can still be used, and it can be used to kill the remaining tasks. Doing so, on the next containerd restart, it will become usable again.
Steps to reproduce the issue:
On windows:
Files:
pod.json:
container.json:
Describe the results you received:
Output on Windows:
Describe the results you expected:
On Linux, this isn't an issue, the test
TestContainerdRestartensures that it works properly.What version of containerd are you using:
Any other relevant information (runC version, CRI configuration, OS/Kernel version, etc.):
runc --versioncrictl infouname -a