Skip to content
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

Call DescribeInstance in GetVMInfo #251

Closed
haikuoliu opened this issue Aug 27, 2019 · 6 comments
Closed

Call DescribeInstance in GetVMInfo #251

haikuoliu opened this issue Aug 27, 2019 · 6 comments
Assignees

Comments

@haikuoliu
Copy link

Hi,

Right now the GetVMInfo API returns the VM info stored in firecracker-containerd runtime, but we want to check if the VM is responsive by invoking DescribeInstance (also cut another issue for implementing this) firecracker API, we could invoke firecracker API directly given that GetVMInfo returns firecracker socket, but I think it's probably better to invoke DescribeInstance in GetVMInfo API, and add the VM state in the response of GetVMInfo API. What do you think?

Thanks,
Haikuo

@samuelkarp
Copy link
Contributor

Are you looking for information from the DescribeInstance API (like the state of the VM?) or are you trying to use this as a probe or health check?

@haikuoliu
Copy link
Author

@samuelkarp I am trying to use it as a health check, to make sure both the firecracker-container shim and VM is responsive. We currently don't plan to use the state of VM or VM version as we are going to listen to the containerd events for the VM state, I guess it doesn't hurt to add VM state/VM version, but that depends on you.

@samuelkarp
Copy link
Contributor

samuelkarp commented Aug 27, 2019

If you're looking for a health check, I wouldn't want to change the behavior of GetVMInfo but rather for us to expose something that's intended for a health check (CheckVMMConnection? Ping? Something like that).

Do you care about controlling things like connection/response timeout?

@haikuoliu
Copy link
Author

A new API for checking VM connection sounds good, we don't really need a connection timeout parameter in the API, we can set a timeout for invoking CheckVMMConnection (or something similar) API.

@mxpv
Copy link
Contributor

mxpv commented Aug 27, 2019

@samuelkarp I was thinking that we could extend GetVMInfo with a few additional fields from DescribeInstance - like state and vmm_version . This would be still a "VM Info" as well as a way of health checker (as we get state right from firecracker's response).

@IRCody IRCody self-assigned this Dec 17, 2019
@haikuoliu
Copy link
Author

We will do this with a privileged container, closing this issue.

fangn2 pushed a commit to fangn2/firecracker-containerd that referenced this issue Mar 23, 2023
…-err

firecracker: fix dropped test error
fangn2 pushed a commit to fangn2/firecracker-containerd that referenced this issue Mar 23, 2023
* Since firecracker-microvm/firecracker#2125, `cargo build` doesn't build jailer by default. (firecracker-microvm#263)
* Fix Benchmark Goroutine (firecracker-microvm#259)
* Jailer configuration API cleanup and improved logging with Debug log level (firecracker-microvm#255)
* Firecracker is internally has an instance ID, but the SDK didn't have the way to configure the ID. This change connects Config.VMID to the instance ID. (firecracker-microvm#253)
* Fixed error that was not being test against in `TestWait` (firecracker-microvm#251)
* Fixes issue where socket path may not be defined since the config file has yet to be loaded (firecracker-microvm#230)
* Fixed error that was not being test against in `TestNewPlugin` (firecracker-microvm#225)
* Download Firecracker 0.21.1 and its jailer from Makefile (firecracker-microvm#218)

Signed-off-by: xibz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants