weaveworks / ignite

Ignite a Firecracker microVM
https://ignite.readthedocs.org
Apache License 2.0
3.49k stars 226 forks source link

Handle error when the backend storage is uninitialized #807

Closed darkowlzz closed 3 years ago

darkowlzz commented 3 years ago

VM, image and kernel list return error when the backend storage is uninitialized (/var/lib/firecracker/{vm,image,kernel} don't exist).

FATA[0000] open /var/lib/firecracker/kernel: no such file or directory
...
FATA[0000] open /var/lib/firecracker/image: no such file or directory

This was fixed for VM in #778. This change improves the error check.