-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firerunner vsock connection fails but controller works #13
Comments
It's not always the case that VM would exit. Sometimes the VM seems to be stuck and can only be terminated with |
It is also possible for the following to happen: [davidliu@sns59] ./target/debug/firerunner --kernel ../images/vmlinux --rootfs images/nodejs.ext4 --appfs loremjs.ext4
Connection from VsockAddr { port: 1024, cid: 42 }
vsock connection seems to be successful but nothing seems to go through. and the vm just hangs. Not sure if this is related at all to @tan-yue 's problem with vsock when booting from a snapshot...?? Maybe our currently implementation around vsock is just broken... |
Problem is "resolved" after system reboot. So likely there's something wrong with vsock states in the kernel module. function VM can run and output results but now I see: [luzhuo@Jasper] ./target/debug/firerunner --kernel vmlinux --rootfs images/nodejs.ext4 --appfs images/loremjs.ext4 < single_req.json
Connection from VsockAddr { port: 1024, cid: 42 }
{"request":{"function":"lorempy2","payload":{}},"sentence":"Sunt non sit ullamco adipisicing officia ipsum in ad commodo."}
thread 'main' panicked at 'Failed to kill child: Sys(ESRCH)', src/libcore/result.rs:999:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. This is panic is happening with Amit's images. (previously, I had this panic issue with images that i created (#11),but it went away when testing with Amit's images. ) |
We are almost definitely getting rid of vsock, so probably not worth debugging |
Calling a function through
firerunner
directly fails with zero output:$ cat single_req.json | ./target/debug/firerunner --kernel vmlinux --rootfs images/nodejs.ext4 --appfs images/loremjs.ext4 ^C $
No messaging showing vsock connection succeeds. And after a while the VM exits so ctrl-C just kills the firerunner process.
However, controller works fine:
This is related to #12 . Need to improve code around vsock handling.
The text was updated successfully, but these errors were encountered: