-
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
0.10.0-beta1 provider plugins download take long time #15481
Comments
Finally got an error:
|
Hi @iceycake! Sorry this is taking so long... Indeed this seems like strange behavior. Could you try downloading the relevant file for your OS and architecture directly from the repository to see if it's any faster from outside of Terraform's auto-installer? |
@apparentlymart The repository download speed is very slow. 4.5MB needs 5 mins? |
@iceycake honestly I can't really explain this. Your Github profile suggests you're in L.A., which would put you close to one of the Fastly CDN distribution points and likely pulling from the same one as several of our staff who are not seeing this problem. Unfortunately I'm not sure what to suggest here 😖 ... is there anything unusual about your Internet connection that might give a clue as to why your experience would be different from others? |
All the internet connections in our office is normal. Anyway, seems nothing much can do about it. It will be great if we can pre-fetch the plugins and hosted internally. I know terraform 0.10 supports |
Hi @iceycake, At the moment we've intentionally not allowed that since the auto-install is depending on some details of how the releases server generates indexes and we want to be able to change that in future releases as we improve things to support third-party plugin downloads, etc. This likely will become possible later, but we need to actually specify the requirements for a third-party-hosted repository before we can do it. In the mean time, as you saw it's possible to download the providers yourself and make them available to Terraform, though I understand that's less convenient. Along with |
Is there an easy way to download all the providers as a bundle now?
|
We expect that most users don't need all providers, since it's very rare to have a configuration that uses all of them. However, we did recently add a tool for automatically merging together a core terraform zip file with zero or more providers specified in a configuration file, which may make things easier for you. This tool is primarily aimed at situations where Terraform is running on a machine that can't access They will of course still be downloading from the same place as Terraform itself downloads them (it uses the same installation code, in fact) but at least at the end you will have a zip file that you can extract to get everything installed at once. |
Sounds good. Let me try that tool. |
The |
Why is this issue closed? It certainly isn't solved. Working around a network misconfiguration issue is a royal pain in the neck. The network misconfiguration should be corrected. The problem exists between roadrunner and lastly, so is likely a bad BGP advertisement coming from Lastly. It isn't going to fix itself without someone actually making demands of Lastly and/or roadrunner. I've already created a ticket at roadrunner, but the problem is likely at Lastly's end, or will at least require Lastly to assist with correction. Here's an example traceroute - no matter how many times I run it, it always hangs at that same hop:
|
Incidentally, since this problem appears to exist between a number of networks and Lastly, it is HIGHLY likely that the problem is a bad BGP or router config within Lastly's infrastructure unless all of the other people suffering this problem around the world are all on networks that peer with roadrunner to get to whatever address Lastly is advertising. That's possible, but highly improbable. Note - CDNs that can't get their own networking correct are likely CDNs one shouldn't be relying on for mission critical infrastructure tooling. There's a reason Akamai is 3x the size of the next biggest CDN. If the canned response to customers experiencing icredibly slow CDN access is "you have crap connectivity to our CDN" then surely that ought to be reason to change your CDN? After all, isn't the whole point of a CDN to put content CLOSE to users at the edge of the network, rather than to artificially increase the distance between them and the origin? If your CDN is the CAUSE of high latency, get rid of the damn CDN. |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
0.10.0-beta1
Steps to Reproduce
It takes a long time to download just template and aws plugins. The template plugin just 16M and it took > 15mins and aws plugins is still downloading after 30m.
Is this behavior normal?
The text was updated successfully, but these errors were encountered: