-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: failed to connect: failed to connect to libvirt on the remote host: ssh: rejected: connect failed (open failed) #1121
Comments
This is not a bug at all. The error you are getting is coming directly from the OS. It's saying it wasn't able to open a tcp/ip connection, let alone an ssh one. I am not sure what your first log output is, but it appears to be a red herring from what I can tell. |
@memetb |
The code that is emitting the logs you are showing is here:
Can you do me a favor and post:
|
Are you sure? Looks like the code that is emitting the error is here when it trying to connect to unix socket.
Because the error log is
|
@mhtr from all I'm seeing, my gut is saying that this is some sort of proper ssh authentication error that isn't verbose enough: meaning the behaviour is correct, but we're just not seeing why it's failing. The plugin clearly isn't segfaulting, and it seems it is attempting to make a connection with the correct parameters. It would really help out if you could isolate the issue by carrying over things one by one. That is, take this starting query string:
And start by:
Let me know what you discover. Fyi: |
I found the problem. It's because of |
System Information
Linux distribution
Debian 12
Terraform version
Provider and libvirt versions
with fix from 1117
Description of Issue/Question
Failed to connect to libvirt on the remote host when run
terraform plan
, but with virsh everything is okSetup
Additional information:
In logs on libvirt_host I see that terraform_host is connected via ssh
But I have error with connecting to libvirt
debug logs:
The text was updated successfully, but these errors were encountered: