firecracker-go-sdk icon indicating copy to clipboard operation
firecracker-go-sdk copied to clipboard

Intermittent LoadSnapshot integration test and examples failures due to bad rootfs.

Open austinvazquez opened this issue 3 years ago • 1 comments

For testing CreateSnapshot and LoadSnapshot support in the SDK, we started utilizing firecracker's devtool to create a microVM rootfs and SSH key for spinning up microVMs we could run commands inside using SSH.

It would be nice to have these artifacts publicly available via S3 bucket for download compared to building it at runtime.

austinvazquez avatar Jul 06 '22 21:07 austinvazquez

The load snapshot integration test can sometimes fail with the following:

=== CONT  TestLoadSnapshot

    machine_test.go:2134: 

        	Error Trace:	/local/home/buildkite-agent/builds/ip-10-0-0-177-12/firecracker-microvm/firecracker-go-sdk/machine_test.go:2134

        	            				/local/home/buildkite-agent/builds/ip-10-0-0-177-12/firecracker-microvm/firecracker-go-sdk/machine_test.go:2260

        	Error:      	Received unexpected error:

        	            	dial tcp 10.168.0.3:22: connect: no route to host

        	Test:       	TestLoadSnapshot

time="2022-08-31T15:03:28Z" level=info msg="Sent instance shutdown request: [PUT /actions][204] createSyncActionNoContent "

This is a result of a bug in Firecracker's devtool causing the rootfs build to silently fail.

austinvazquez avatar Aug 31 '22 15:08 austinvazquez

As #488 merged, this issue can be closed as resolved.

fangn2 avatar Mar 23 '23 23:03 fangn2