ironcore-dev / libvirt-provider

Libvirt provider implementation of the IronCore compute interface
https://ironcore-dev.github.io/libvirt-provider/
Apache License 2.0
4 stars 5 forks source link

Missing Connection After Restart of libvirtd #307

Closed so-sahu closed 1 month ago

so-sahu commented 1 month ago

Description:

When libvirtd is restarted, libvirt-provider loses connection and cannot recover it without a restart of the program.

Recommendation:

To improve this situation, we can consider the following approaches:

  1. Create an HTTP server with a handler to check the libvirt connection status
  2. Implement a liveness probe to monitor the health of the libvirt connection and handle reconnection as needed.

This will ensure that the libvirt-provider maintains a stable connection to libvirtd even after restarts.