-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unable to get remote libvirt uri to work #168
Comments
I guess it's "upstream": dmacvicar/terraform-provider-libvirt#1040 |
@artiommocrenco The upstream says it works in 0.7.1 which corresponds to 0.4.0 in Pulumi. Does that version work for you? |
It was my first day using pulumi, so I wasn't sure how to downgrade. But in terraform, I checked yesterday and yes 0.7.1 is the newest working version for me. So pulumi 0.4.0 should be working, will rewrite from tf later |
Closing based on the comment above |
What happened?
Pulumi and this provider always try to use my local libvirt connection.
I tried setting the pulumi config value for libvirt uri, also tried setting the
LIBVIRT_DEFAULT_URI
withexport
, no matter what I try for python, I'm not able to get remote libvirt uri to work. It's always creating resources locally. I tried nuking the stack several times, refreshing, destroying everything - but it didn't help.In the same terminal window, when I run
virsh
, I'm getting expected behavior when changingLIBVIRT_DEFAULT_URI
. Also,virt-manager
works fine too with different connections I have.When I unset the env var, and unset the config value, I do get the error:
Then, I set it, and the error goes away:
Then, in the same shell of course, I run
pulumi up -d
and I get this message among others (same when using the config variable):However, the resource is created locally and not remotely. I tried running wireshark, I can see no ssh traffic when using pulumi this way.
Example
Output of
pulumi about
CLI
Version 3.89.0
Go Version go1.21.3
Go Compiler gc
Plugins
NAME VERSION
libvirt 0.4.1
python unknown
Host
OS arch
Version "rolling"
Arch x86_64
This project is written in python: executable='/usr/bin/python3' version='3.11.5'
Found no pending operations associated with prod
Backend
Name laptop
URL file://~
User user
Organizations
Token type personal
Dependencies:
NAME VERSION
pip 23.3.1
pulumi-libvirt 0.4.1
setuptools 68.2.2
wheel 0.41.2
Pulumi locates its logs in /tmp by default
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: