Skip to content
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

Support new modular libvirt daemons #1025

Closed
michaelbeaumont opened this issue Jul 26, 2023 · 5 comments
Closed

Support new modular libvirt daemons #1025

michaelbeaumont opened this issue Jul 26, 2023 · 5 comments

Comments

@michaelbeaumont
Copy link
Collaborator

michaelbeaumont commented Jul 26, 2023

Provider and libvirt versions

$ terraform-provider-libvirt -version
0.7.1

libvirt 9.5.0


Description of Issue/Question

Setup

There's a new modular architecture for the libvirt daemons that's not supported by this provider.

Steps to Reproduce Issue

There is no longer a /var/run/libvirt/libvirt-sock with this setup, so any attempt to use the provider via the unix socket fails.

For example using qemu+ssh I was running into ssh: rejected: connect failed (open failed)

@michaelbeaumont
Copy link
Collaborator Author

Actually there's now virtproxyd as described here that provides the old socket. It works after enabling that socket and service!

@kastl-ars
Copy link

Just stumbled upon this. In your case, this is valid as you like to connect via SSH. But enabling the proxy on local machine just to use this provider seems like an ugly workaround.

So this would be nice to have without the proxy workaround.

@michaelbeaumont
Copy link
Collaborator Author

@kastl-ars I don't know, I think it's not really a workaround, it's the official way to get a socket interface

@kastl-ars
Copy link

@kastl-ars I don't know, I think it's not really a workaround, it's the official way to get a socket interface

Hi @michaelbeaumont

the documentation says this:

If connections from remote hosts need to be supported the proxy daemon must be enabled and started

This explicitly mentions "remote hosts". That is way I called it a workaround.

Local connections using virsh are working even with the proxy daemon disabled, as there are lots of sockets available. My guess is that the libvirt provider "just needs to be told" to look in a different place for the socket...

@michaelbeaumont
Copy link
Collaborator Author

I'm not enough of an expert in libvirt here but from my understanding, the issue is that there are multiple sockets now. Is it clear that we only need say, the qemud socket? I don't know. Also we'd need digitalocean/go-libvirt#171 anyway, because the API calls happen in go-libvirt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants