Tuesday, 2019-10-15

*** gmmaha has quit IRC03:38
*** gmmaha has joined #kata-dev03:40
*** gmmaha has quit IRC03:45
*** gmmaha has joined #kata-dev03:49
*** sameo has joined #kata-dev05:09
*** igordc has quit IRC06:10
*** pcaruana has joined #kata-dev06:30
*** sgarzare has joined #kata-dev06:50
*** sameo has quit IRC06:56
*** jodh has joined #kata-dev06:58
*** sameo has joined #kata-dev07:33
*** davidgiluk has joined #kata-dev08:03
*** jugs1 is now known as jugs11:43
brtknrany kata devs around? the invite behind this link is no longer active:  bit.ly/KataSlack12:18
stefanhabrtknr: Apparently I can invite people.  Privmsg me an email address and I'll give it a try.12:42
brtknrbharat@stackhpc.com :)12:43
stefanhabrtknr: Done12:43
brtknrstefanha: thanks, got it12:43
kata-irc-bot<xu> http://bit.ly/katacontainersslack12:43
kata-irc-bot<xu> could change to this one12:44
*** devimc has joined #kata-dev13:10
brtknrthanks xu13:20
*** lpetrut has joined #kata-dev13:21
brtknranyone else attempted qemu-virtiofsd with kata-deploy?13:23
*** fuentess has joined #kata-dev13:29
*** pcaruana has quit IRC13:32
*** canyounot has joined #kata-dev13:32
brtknrFailed create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox runtime: no runtime for "kata-qemu-virtiofs" is configured13:33
*** pcaruana has joined #kata-dev14:04
*** dklyle has quit IRC14:18
*** dklyle has joined #kata-dev14:43
brtknrstefanha: could you shed light on this: https://seashells.io/v/354m9xEX14:55
brtknrI've managed to get a bit further by inserting qemu-virtiofs as an additional shim in kata deploy14:56
stefanhabrtknr: It suggests that qemu-virtiofsd closed the vhost-user UNIX domain socket.  It probably means qemu-virtiofsd terminated with an error.14:57
stefanhabrtknr: virtiofsd should be launched with --syslog -d so you get details in the journal14:58
stefanhabrtknr: Sometimes it's useful to replace binaries that kata-runtime executes with wrapper scripts so you can change the command-line options, strace the process, etc.14:59
brtknrhttps://seashells.io/p/QpZGvq2N15:00
stefanhabrtknr: Nothing obvious in that output.15:00
brtknrmaybe this one: https://seashells.io/p/9Anf6HZY15:00
*** devimc has quit IRC15:02
stefanhabrtknr: I think debugging isn't enabled in virtiofsd.  There should be more output like "virtio_loop: Waiting for VU event"15:02
stefanhabrtknr: Are you sure virtiofsd is running with the -d option?  The -d option should be set by kata-runtime if hypervisor.qemu enable_debug = true.15:03
stefanha(in /etc/kata-containers/configuration.toml)15:03
brtknrthat is set to true15:03
stefanhabrtknr: In that case you could move the binary aside and put a wrapper script there:15:04
stefanha#!/bin/bash15:04
stefanhaexec strace -f -o /tmp/virtiofsd.log path/to/virtiofsd.orig "$@"15:04
stefanhaThe strace output will show what the virtiofsd process is doing.15:05
stefanhaI use this trick with kata-runtime when I want to debug what QEMU, virtiofsd, etc are doing.  This way you can interpose between kata-runtime and the binaries it launches.15:06
*** jodh has quit IRC15:06
kata-irc-bot<greg.bock> I had trouble getting args to parse right when I tried this a few months ago. Does using exec help with that?15:06
kata-irc-bot<greg.bock> hmm, actually i was trying to add args in my wrapper maybe that was the issue.15:08
stefanhagreg.bock: exec doesn't help but using exactly "$@" helps with shell word splitting.15:10
brtknrstefanha:  https://seashells.io/p/eYFfGRtq15:11
stefanhabrtknr: Ah, a seccomp error15:14
kata-irc-bot<greg.bock> Yeah I think I had tried all manner of dereferencing and quoting and eventually just patched the code15:15
stefanhabrtknr: I wonder if the environment in which your virtiofsd binary is being launched does not allow seccomp for some reason.15:16
*** canyounot is now known as theinternet15:16
*** theinternet is now known as canyounot15:16
stefanhabrtknr: I think your host has an older kernel version.15:18
stefanhabrtknr: There is a patch to fix this:15:18
stefanhabrtknr: virtio-fs-v0.3 requires a host kernel that supports the seccomp SCMP_ACT_KILL_PROCESS feature.15:19
stefanhabrtknr: Newer virtio-fs code has a fallback for older kernels.15:20
brtknrstefanha: aha15:21
stefanhabrtknr: Which host kernel version are you running?  uname -r15:21
brtknr3.10.0-1062.1.2.el7.x86_6415:21
stefanhabrtknr: Upstream added the SCMP_ACT_KILL_PROCESS feature in 4.1415:21
brtknrits centos 7.715:21
stefanhaok15:21
stefanhabrtknr: Are you already in a position where you can recompile virtiofsd?15:22
stefanhaIf yes, then I can link a patch.15:22
brtknri can definitely try :)15:22
stefanhabrtknr: Are you currently using a virtiofsd binary distributed by Kata Containers?15:23
brtknrstefanha: i am15:23
brtknrversion 7.2915:23
stefanhaOkay, that explains it.  Because if you recompile virtiofsd on your CentOS 7.7 host then seccomp will succeed,15:23
stefanhait's just that your binary was probably compiled on a build host with a newer kernel.15:24
stefanhaSo no virtiofsd patch is even required.15:24
brtknrstefanha: oh, so i just need to recompile and thats all?15:24
stefanhaBTW the latest virtio-fs code falls back at runtime so even older kernels are supported.  It's just virtio-fs-v0.3 that doesn't fall back.15:24
stefanhabrtknr: Yep15:24
brtknrfatal error: sys/capability.h: No such file or directory15:28
brtknrstefanha:15:28
stefanhabrtknr: yum install libcap-devel15:30
*** igordc has joined #kata-dev15:37
brtknrstefanha: aaaaah it seems to be working15:38
stefanhabrtknr: \o/15:38
brtknreven the  dd if=/dev/zero of=path/to/beegfs/foo.dat oflag=direct bs=4k count=1000 doesnt collapse15:39
*** sameo has quit IRC15:52
*** devimc has joined #kata-dev16:13
*** igordc has quit IRC16:31
*** sameo has joined #kata-dev16:50
*** sgarzare has quit IRC16:56
*** lpetrut has quit IRC17:01
*** igordc has joined #kata-dev18:36
*** canyounot has quit IRC19:05
*** canyounot has joined #kata-dev19:07
*** canyounot has quit IRC19:07
*** canyounot has joined #kata-dev19:09
*** davidgiluk has quit IRC19:11
*** canyounot has quit IRC19:13
*** canyounot has joined #kata-dev19:14
*** canyounot has joined #kata-dev19:15
*** sameo has quit IRC19:28
*** eernst has joined #kata-dev20:00
*** eernst has quit IRC20:04
*** pcaruana has quit IRC20:25
*** pcaruana has joined #kata-dev20:34
*** canyounot is now known as canyounot|gone20:46
*** canyounot|gone has quit IRC20:46
*** pcaruana has quit IRC20:51
*** devimc has quit IRC22:35
*** fuentess has quit IRC22:56

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!