-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
S3 Backend fails to resolve mDNS address #32778
Comments
Can you try remove the trailing slash? I doubt it would make a difference, but looking at this post here they dont have a Also other thing, is that SSL cert valid for Finally, I know this is beating a dead horse, can you do an |
After some troubleshooting, I found a way to configure my system to make this work. I'm using
And add this to
Which made nslookup resolve IP correctly. Now I'm getting errors from terraform about certificate being not valid, but that's something that I can fix on my own. I would still consider this a bug, because terraform shouldn't necessarily rely only on DNS to work correctly. |
Hi @eaglesemanation, I'm glad you found a solution to your problem. It would be hard to come up with a universal solution to this for Terraform becauseTerraform isn't directly involved in the name resolution here at all. The AWS SDK is handling the connection, which in turn relies on the standard library for name resolution. In most cases it is up to the host operating system to be configured such that name resolution falls back to the correct underlying method, which is appears is what you have done (I know macOS does this by default already). I suspect that linking Terraform to the host libc might resolve what you expect given that the |
It may also be worth mentioning here that darwin binaries built with Go 1.20 are more integrated with the macOS DNS resolution system without needing CGO, etc. golang/go#12524 |
There is an issue for netdns to do mDNS resolution, and it's marked as Unplanned since 2019. Looks like to solve this somebody needs to either fix Go net lib, or AWS SDK, and either options sound quite daunting. So instead I'll probably request Fedora maintainers to enable mDNS by default. |
Thanks for reporting this, @eaglesemanation. Is there any difference in the behaviour of name resolution if you use a fully-qualified domain name, that is Also, can you re-run the Terraform operation with the environment variable |
@gdavison, Terraform is distributed as a statically linked binary, so will always be using |
@eaglesemanation Is this now resolved by #32688 ? |
It's been a while, and I'm not 100% sure that I've correctly reverted my fix to test it, but it seems to be working! Thanks for reminding me |
@eaglesemanation Given your feedback, I am going to close this issue. If I am mistaken in my understanding that this issue is resolved, please let me know. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/eaglesemanation/65ae127ad4fd928302c460cc8bdb8e67
Expected Behavior
Connect to MinIO S3 server hosted on my TrueNAS server
Actual Behavior
Terraform refuses to resolve mDNS address. Replacing it with IP address and falling back to HTTP works.
Steps to Reproduce
terraform init
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: