Loading...
Loading...
### Terraform Version ```shell Terraform v1.16.0 on windows_amd64 ``` ### Terraform Configuration Files **providers.tf** ```terraform terraform { required_providers { nutanix = { source = "nutanix/nutanix" version = "2.4.3-beta1" } terracurl = { source = "devops-rob/terracurl" version = "1.2.2" } infoblox = { source = "infobloxopen/infoblox" version = "~> 2.12.0" } ibm = { source = "IBM-Cloud/ibm" version = ">= 1.12.0" } } } ``` **.terraformrc** ```terraform # Try mirror first, fall back to direct for anything not mirrored provider_installation { network_mirror { url = "https://terraform-mirror.mycompany.com/providers/" } direct { exclude = ["hashicorp/*","infobloxopen/*","nutanix/*","ansible/*","devops-rob/*"] } } ``` ### Debug Output ``` $ TF_LOG=Debug terraform init 2026-09-01T15:36:40.047-0400 [INFO] Terraform version: 1.16.0 2026-09-01T15:36:40.050-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.108.0 2026-09-01T15:36:40.050-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.24.0 2026-09-01T15:36:40.050-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.2.1 2026-09-01T15:36:40.050-0400 [DEBUG] using github.com/zclconf/go-cty v1.18.1 2026-09-01T15:36:40.050-0400 [INFO] Go runtime version: go1.26.4 2026-09-01T15:36:40.050-0400 [INFO] CLI args: []string{"C:\\Users\\user\\.tenv\\Terraform\\1.16.0\\terraform", "init"} 2026-09-01T15:36:40.064-0400 [DEBUG] Attempting to open CLI config file: C:\Users\user\AppData\Roaming\terraform.rc 2026-09-01T15:36:40.065-0400 [INFO] Loading CLI configuration from C:\Users\user\AppData\Roaming\terraform.rc 2026-09-01T15:36:40.066-0400 [DEBUG] Explicit provider installation configuration is set 2026-09-01T15:36:40.067-0400 [INFO] CLI command args: []string{"init"} Initializing the backend... 2026-09-01T15:36:40.072-0400 [DEBUG] checking for provisioner in "." 2026-09-01T15:36:40.073-0400 [DEBUG] checking for provisioner in "C:\\Users\\user\\.tenv\\Terraform\\1.16.0" 2026-09-01T15:36:40.075-0400 [DEBUG] Starting graph walk: walkInit Initializing provider plugins... - Finding infobloxopen/infoblox versions matching "~> 2.12.0"... 2026-09-01T15:36:40.076-0400 [DEBUG] Querying available versions of provider registry.terraform.io/infobloxopen/infoblox at network mirror https://terraform-mirror.mycompany.com/providers/ 2026-09-01T15:36:40.076-0400 [DEBUG] GET https://terraform-mirror.mycompany.com/providers/registry.terraform.io/infobloxopen/infoblox/index.json - Finding ibm-cloud/ibm versions matching ">= 1.12.0"... 2026-09-01T15:36:40.592-0400 [DEBUG] Querying available versions of provider registry.terraform.io/ibm-cloud/ibm at network mirror https://terraform-mirror.mycompany.com/providers/ 2026-09-01T15:36:40.592-0400 [DEBUG] GET https://terraform-mirror.mycompany.com/providers/registry.terraform.io/ibm-cloud/ibm/index.json 2026-09-01T15:36:40.705-0400 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json 2026-09-01T15:36:40.830-0400 [DEBUG] GET https://registry.terraform.io/v1/providers/ibm-cloud/ibm/versions - Finding nutanix/nutanix versions matching "2.4.3-beta1"... 2026-09-01T15:36:40.911-0400 [DEBUG] Querying available versions of provider registry.terraform.io/nutanix/nutanix at network mirror https://terraform-mirror.mycompany.com/providers/ 2026-09-01T15:36:40.912-0400 [DEBUG] GET https://terraform-mirror.mycompany.com/providers/registry.terraform.io/nutanix/nutanix/index.json - Finding devops-rob/terracurl versions matching "1.2.2"... 2026-09-01T15:36:41.254-0400 [DEBUG] Querying available versions of provider registry.terraform.io/devops-rob/terracurl at network mirror https://terraform-mirror.mycompany.com/providers/ 2026-09-01T15:36:41.254-0400 [DEBUG] GET https://terraform-mirror.mycompany.com/providers/registry.terraform.io/devops-rob/terracurl/index.json 2026-09-01T15:36:41.364-0400 [DEBUG] Finding package URL for registry.terraform.io/infobloxopen/infoblox v2.12.0 on windows_amd64 via network mirror https://terraform-mirror.mycompany.com/providers/ 2026-09-01T15:36:41.364-0400 [DEBUG] GET https://terraform-mirror.mycompany.com/providers/registry.terraform.io/infobloxopen/infoblox/2.12.0.json - Installing infobloxopen/infoblox v2.12.0... - Installed infobloxopen/infoblox v2.12.0 (verified checksum) 2026-09-01T15:36:43.932-0400 [DEBUG] Finding package URL for registry.terraform.io/ibm-cloud/ibm v2.5.0 on windows_amd64 via network mirror https://terraform-mirror.mycompany.com/providers/ 2026-09-01T15:36:43.932-0400 [DEBUG] GET https://terraform-mirror.mycompany.com/providers/registry.terraform.io/ibm-cloud/ibm/2.5.0.json 2026-09-01T15:36:44.041-0400 [DEBUG] Finding package URL for registry.terraform.io/nutanix/nutanix v2.4.3-beta1 on windows_amd64 via network mirror https://terraform-mirror.mycompany.com/providers/ 2026-09-01T15:36:44.042-0400 [DEBUG] GET https://terraform-mirror.mycompany.com/providers/registry.terraform.io/nutanix/nutanix/2.4.3-beta1.json - Installing nutanix/nutanix v2.4.3-beta1... - Installed nutanix/nutanix v2.4.3-beta1 (verified checksum) 2026-09-01T15:36:46.879-0400 [DEBUG] Finding package URL for registry.terraform.io/devops-rob/terracurl v1.2.2 on windows_amd64 via network mirror https://terraform-mirror.mycompany.com/providers/ 2026-09-01T15:36:46.879-0400 [DEBUG] GET https://terraform-mirror.mycompany.com/providers/registry.terraform.io/devops-rob/terracurl/1.2.2.json - Installing devops-rob/terracurl v1.2.2... - Installed devops-rob/terracurl v1.2.2 (verified checksum) ╷ │ Error: Failed to install provider │ │ Error while installing ibm-cloud/ibm v2.5.0: failed to query provider mirror https://terraform-mirror.mycompany.com/providers/ for registry.terraform.io/ibm-cloud/ibm: provider │ mirror does not have archive index for previously-reported registry.terraform.io/ibm-cloud/ibm version 2.5.0 ``` ### Expected Behavior I am attempting to host a Terraform Provider network mirror at my company for commonly used Terraform providers. However, I want employees at my company to have the ability to download new providers from the Terraform Registry as well, if they so require. Examples of commonly used providers at my company are: `nutanix`, `terracurl`, and `infoblox`. These providers are currently hosted on my Network Mirror. This is working great so far. However, I am attempting to test the "fall back" mechanism that if a provider is not available on the network mirror, it should download from Terraform Registry. I am testing with the `ibm-cloud/ibm` provider as an example. I would expect that since I am not hosting the IBM provider on my Network Mirror, Terraform should see that is not available and download it from the Terraform Registry. However, it appears to be attempting to download from my network mirror despite the fact that it is not hosted there. ### Actual Behavior I am unable to install the `ibm-cloud` provider. I am getting the following error: ``` │ Error while installing ibm-cloud/ibm v2.5.0: failed to query provider mirror https://terraform-mirror.mycompany.com/providers/ for registry.terraform.io/ibm-cloud/ibm: provider │ mirror does not have archive index for previously-reported registry.terraform.io/ibm-cloud/ibm version 2.5.0 ``` It appears based on the logs that Terraform is correctly identifying that the ibm-cloud provider is NOT hosted on the network mirror, but attempting to download from the network mirror anyway. This *seems* like a bug to me, unless I am misunderstanding how to configure my `terraform.rc` file? ### Steps to Reproduce 1. Configure your `.terraformrc` or `terraform.rc` as per the example above (populating your Network Mirror address) 2. Configure a `providers.tf` file as per the example above 3. Execute: `terraform init` ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
BugZero Plan
Streamline upgrades with automated vendor bug scrubs
BugZero Prevent
Wish you caught this bug sooner? Get proactive today.