weizhouapache commented on issue #7942:
URL: https://github.com/apache/cloudstack/issues/7942#issuecomment-1707780692

   we have found the root cause
   ```
   diff --git 
a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtConnection.java
 b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/
   +resource/LibvirtConnection.java
   index c70a72f399c..0f8031e3aaa 100644
   --- 
a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtConnection.java
   +++ 
b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtConnection.java
   @@ -21,6 +21,7 @@ import java.util.Map;
   
    import org.apache.log4j.Logger;
    import org.libvirt.Connect;
   +import org.libvirt.Library;
    import org.libvirt.LibvirtException;
   
    import com.cloud.hypervisor.Hypervisor;
   @@ -44,6 +45,7 @@ public class LibvirtConnection {
            if (conn == null) {
                s_logger.info("No existing libvirtd connection found. Opening a 
new one");
                conn = new Connect(hypervisorURI, false);
   +            Library.initEventLoop();
                s_logger.debug("Successfully connected to libvirt at: " + 
hypervisorURI);
                s_connections.put(hypervisorURI, conn);
            } else {
   ```
   
   @harikrishna-patnala is working on the fix.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to