Friday, 2021-10-08

kata-irc-bot<shuo.chen> hey guys, I met an issue with virtio-scsi to pass the virtual block device. From the pod start command, I do mkfs.ext4 /dev/xda && mkdir /local_disk0 && mount /dev/xda /local_disk0 , the /dev/xda is the virtual block device I passed in. But then I found out that the first two part of the command finished while the mount part returns `mount: /local_disk0: permission denied.`, I try to remove the third part and then manually login to04:51
kata-irc-botthe pod and run the exact same command and the mount works fine. Any thoughts? Is there any timing issue04:51
kata-irc-bot<shuo.chen> ok, it ends up that i have to set the container to privileged container so that i can mount disk from container start command. But with unpriviledged container, i can login to the pod and do the mount manually, is it something we expect or not?05:55
kata-irc-bot<bergwolf> No, I don't think so. I would expect container start command and exec to have the same privilege w.r.t. device access. Could you open an issue on github to track it?06:41
kata-irc-bot<shuo.chen> yeah, let me reproduce it with a simpler yaml file and create the issue if it is kata related.06:47

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!