Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Kata can't handle the exception when qemu exit abnormally #1074

Closed
zhiminghufighting opened this issue Dec 25, 2018 · 4 comments
Closed

Kata can't handle the exception when qemu exit abnormally #1074

zhiminghufighting opened this issue Dec 25, 2018 · 4 comments
Labels
bug Incorrect behaviour

Comments

@zhiminghufighting
Copy link

Description of problem

When qemu(or qemu-lite) exits abnormally or be forcedly killed after kata container is launched,

  1. if kata is launched by docker, the docker-containerd-shim will never exit as qemu(or qemu-lite) exit;
    2)if kata is launched by k8s + cri-containerd, the docker-containerd-shim will never exit as qemu(or qemu-lite) exit;

comparison vs docker runc:
if a container is launched by docker runc and the container process is forcedly killed, docker-containerd-shim will exit as the container process exit;

Expected result

docker-containerd-shim will exit as qemu(or qemu-lite) exit or qemu is forced killed;

Actual result

the docker-containerd-shim will never exit as qemu(or qemu-lite) exit or qemu is forcedly killed


This issue can be observed on every Linux environment whatever the OS version or hardware config or kata config;

@zhiminghufighting
Copy link
Author

This issue is found by exception test scenario. Please confirm if it is an real issue or not and what's the right behavior vs docker runc under that extremely condition.

@zhiminghufighting
Copy link
Author

@gnawux @egernst do we have the notification mechanism for kata when hypervisor exit? thanks!

@egernst
Copy link
Member

egernst commented Jan 7, 2019

I think this is a bug, @zhiminghufighting.

To clarify, you can reproduce this with both shim and CLI impl of Kata?

@zhiminghufighting
Copy link
Author

@egernst sorry to miss your info, it can be reproduced on kata 1.5/1.6 based on docker.
cmd : docker run --rm -ti -d centos
then kill qemu process and use 'ps' to show running process, you can see docker-containerd-shim still there. It should exit with qemu exit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Incorrect behaviour
Projects
None yet
Development

No branches or pull requests

3 participants