-
Notifications
You must be signed in to change notification settings - Fork 71
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
Provider produced inconsistent result after apply - bug in the provider, which should be reported #288
Comments
Hi @eliassal 👋 Thank you for reporting this issue and sorry you are running into trouble here. While this error may have started with (new) usage of the
There appear to be two errors there:
Both of these issues may very well be due to how the Terraform configuration is setup, but the Since this doesn't immediately appear (or suggest to appear) to be an issue with this provider, which has very little surface area, I'm going to close this issue. There may be a few other threads to pull at though:
Hope this helps and apologies there is not much more help we can provide as maintainers of this provider. |
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 CLI and Provider Versions
TF version = "~> 3.0"
Provider lat version
Terraform Configuration
Expected Behavior
Added triggers to resource "null_resource" in order that creating image in acr happens when I change some elements in the main.tf such as RG location or subnet adress space.
Actual Behavior
I am working with azure, I added the following block to main.tf (after creating needed resources RG, acr......)
When I changed the location of the resource group and redid
terraform apply
I got this errorazurerm_container_registry.acr-prod: Still creating... [10s elapsed]
azurerm_container_registry.acr-dev: Still creating... [10s elapsed]
2023-12-08T11:50:46.812+0100 [ERROR] provider.terraform-provider-azurerm_v3.83.0_x5.exe: Response contains error diagnostic: diagnostic_detail="" diagnostic_severity=ERROR tf_req_id=2b7ab797-16a7-82d2-4b74-f11cc8a8c19a @module=sdk.proto tf_rpc=ApplyResourceChange
diagnostic_summary=
| creating Registry (Subscription: "XXXXXXX-XXXX-460d-8e3b-XXXXXXX"
| Resource Group Name: "rg-acrdemo"
| Registry Name: "acrprodregistrysieraclab001"): polling after Create: unexpected status 404 with error: ResourceNotFound: The Resource 'Microsoft.ContainerRegistry/registries/acrprodregistrysieraclab001' under resource group 'rg-acrdemo' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
@caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 tf_proto_version=5.4 tf_provider_addr=provider tf_resource_type=azurerm_container_registry timestamp="2023-12-08T11:50:46.812+0100"
2023-12-08T11:50:46.849+0100 [ERROR] vertex "azurerm_container_registry.acr-prod" error: creating Registry (Subscription: "f151ee3f-4725-460d-8e3b-82512dfda843"
Resource Group Name: "rg-acrdemo"
Registry Name: "acrprodregistrysieraclab001"): polling after Create: unexpected status 404 with error: ResourceNotFound: The Resource 'Microsoft.ContainerRegistry/registries/acrprodregistrysieraclab001' under resource group 'rg-acrdemo' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
2023-12-08T11:50:47.365+0100 [ERROR] vertex "azurerm_container_registry.acr-dev" error: Provider produced inconsistent result after apply
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to azurerm_container_registry.acr-dev, provider "provider["registry.terraform.io/hashicorp/azurerm"]" produced an unexpected new value: Root object was present,
│ but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: creating Registry (Subscription: "XXXXXXX-XXXX-460d-8e3b-XXXXXXX"
│ Resource Group Name: "rg-acrdemo"
│ Registry Name: "acrprodregistrysieraclab001"): polling after Create: unexpected status 404 with error: ResourceNotFound: The Resource 'Microsoft.ContainerRegistry/registries/acrprodregistrysieraclab001' under resource group 'rg-acrdemo' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
│
│ with azurerm_container_registry.acr-prod,
│ on main.tf line 20, in resource "azurerm_container_registry" "acr-prod":
│ 20: resource "azurerm_container_registry" "acr-prod" {
Steps to Reproduce
terraform apply
2 - 4 Resources created
3 - Change the RG location
4 - Reapply
terraform apply
How much impact is this issue causing?
High
Logs
No response
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: