This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 195
block device should be set rw before hotplug test if qemu version above 5.1 #3002
Labels
Comments
jongwu
added a commit
to jongwu/tests
that referenced
this issue
Oct 22, 2020
rw check on block device is enhanced in qemu 5.1. So block device should be set to rw using blockdev before hotplug test in docker. If not, block device hotplug test will fail. test case: docker run --rm --runtime kata-runtime --device /dev/loop0 ubuntu ls more info see https://patchew.org/QEMU/[email protected]/[email protected]/ Fixes: kata-containers#3002 Signed-off-by: Jianyong Wu <[email protected]>
jongwu
added a commit
to jongwu/tests
that referenced
this issue
Oct 22, 2020
rw check on block device is enhanced in qemu 5.1. So block device should be set to rw using blockdev before hotplug test in docker. If not, block device hotplug test will fail. test case: docker run --rm --runtime kata-runtime --device /dev/loop0 ubuntu ls more info see https://patchew.org/QEMU/[email protected]/[email protected]/ Fixes: kata-containers#3002 Signed-off-by: Jianyong Wu <[email protected]>
when I use the kubevirt-gpu-device-plugin to pass through NVIDIA GPU to the kata container, it seems also report the similar error.
But I have checked that the device plugin code has set the file to rw mode. |
I found it's failure when I set privileged is true but normal when I add ALL capabilities,that's is
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
using qemu 5.1+
docker run --rm --runtime kata-runtime --device /dev/loop0 ubuntu ls
error log:
docker: Error response from daemon: OCI runtime create failed: QMP command failed: 649: The device is not writable: Permission denied: unknown.
also refer to http://jenkins.katacontainers.io/job/kata-containers-runtime-ARM-18.04-PR/1845/consoleFull
test case:
[docker run --cidfile /tmp/cid416376284/NJtkQ8Id9H5gAEftsXIlRx7IDoshP1 --runtime kata-runtime --device /dev/loop2 --device /dev/loop3 --device /dev/loop4 --device /dev/loop5 --device /dev/loop6 --device /dev/loop7 --device /dev/loop8 --device /dev/loop9 --device /dev/loop10 --device /dev/loop11 --rm --name NJtkQ8Id9H5gAEftsXIlRx7IDoshP1 busybox stat /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5 /dev/loop6 /dev/loop7 /dev/loop8 /dev/loop9 /dev/loop10 /dev/loop11]
error log:
docker: Error response from daemon: OCI runtime create failed: rpc error: code = DeadlineExceeded desc = Timeout reached after 3s waiting for device 0:0:0:0/block: unknown.
The text was updated successfully, but these errors were encountered: