firecracker-containerd: runtime/service_integ_test: Shouldn't use lsblk to validate
We currently use lsblk to validate that the stub drives have been created. However, we are lsblk is tied to the Debian image and the output, which we use for validation, is prone to change. A better and longer term solution would be write a piece of software that does something similarly to lsblk but has a strict output. This executable should be injected into the root image.
Something like:
Name Size StubDrive
vda 1M N
vdb 512B Y
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- Make integration tests distro-agnostic This change introduces our own lsblk(8) equivalent, which makes the integration test distro-agonostic and be able to run without util-linux. Fixes #203. Signe... — committed to kzys/firecracker-containerd by kzys 5 years ago
- Make integration tests distro-agnostic This change introduces our own lsblk(8) equivalent, which makes the integration test distro-agonostic and be able to run without util-linux. Fixes #203. Signe... — committed to kzys/firecracker-containerd by kzys 5 years ago
- Merge pull request #203 from xibz/tidy Running go mod tidy to remove old testify version — committed to fangn2/firecracker-containerd by xibz 4 years ago
Thanks. Yes! options=bind works
We can just use a module like https://godoc.org/github.com/google/cadvisor/utils/sysfs without building a standalone tool and parsing its output.