Skip to content
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

Error: Resource node has no configuration attached #32045

Closed
vanmash opened this issue Oct 19, 2022 · 4 comments
Closed

Error: Resource node has no configuration attached #32045

vanmash opened this issue Oct 19, 2022 · 4 comments
Labels
bug duplicate issue closed because another issue already tracks this problem

Comments

@vanmash
Copy link

vanmash commented Oct 19, 2022

Terraform Version

Terraform v1.3.2
on windows_amd64

Terraform Configuration Files

azurerm_log_analytics_workspace.log deleted from the configuration

Debug Output

2022-10-19T18:20:37.0897421Z ##[section]Starting: TerraformTaskV32
2022-10-19T18:20:37.1079607Z ==============================================================================
2022-10-19T18:20:37.1080082Z Task : Terraform
2022-10-19T18:20:37.1080882Z Description : Execute terraform commands to manage resources on AzureRM, Amazon Web Services(AWS) and Google Cloud Platform(GCP)
2022-10-19T18:20:37.1081446Z Version : 3.209.19
2022-10-19T18:20:37.1081761Z Author : Microsoft Corporation
2022-10-19T18:20:37.1082181Z Help : Learn more about this task
2022-10-19T18:20:37.1082684Z ==============================================================================
2022-10-19T18:20:37.5854318Z [command]C:\a_tool\terraform\1.3.2\x64\terraform.exe providers
2022-10-19T18:20:38.8644365Z
2022-10-19T18:20:38.8645193Z Providers required by configuration:
2022-10-19T18:20:38.8645563Z .
2022-10-19T18:20:38.8646112Z ├── provider[registry.terraform.io/hashicorp/azurerm]
2022-10-19T18:20:38.8647788Z └── provider[registry.terraform.io/hashicorp/random]
2022-10-19T18:20:38.8648052Z
2022-10-19T18:20:38.8648402Z Providers required by state:
2022-10-19T18:20:38.8648796Z
2022-10-19T18:20:38.8649204Z provider[registry.terraform.io/hashicorp/azurerm]
2022-10-19T18:20:38.8649450Z
2022-10-19T18:20:38.8649856Z provider[registry.terraform.io/hashicorp/random]
2022-10-19T18:20:38.8650090Z
2022-10-19T18:20:38.8694112Z [command]C:\a_tool\terraform\1.3.2\x64\terraform.exe apply -no-color -auto-approve C:\a\4\s/terraform/46546.tfplan
2022-10-19T18:20:51.1860395Z 2022-10-19T18:20:51.183Z [ERROR] vertex "azurerm_key_vault_secret.workspace_id" error: Resource node has no configuration attached
2022-10-19T18:20:51.1862597Z 2022-10-19T18:20:51.184Z [ERROR] vertex "azurerm_key_vault_secret.workspace_key" error: Resource node has no configuration attached
2022-10-19T18:20:51.1870730Z azurerm_log_analytics_workspace.log: Destroying... [id=/subscriptions/<>resourceGroups/rg-temp-stage/providers/Microsoft.OperationalInsights/workspaces/log-temp-stage]
2022-10-19T18:20:54.0331825Z azurerm_log_analytics_workspace.log: Destruction complete after 3s
2022-10-19T18:20:55.4054280Z
2022-10-19T18:20:55.4055136Z Error: Resource node has no configuration attached
2022-10-19T18:20:55.4055376Z
2022-10-19T18:20:55.4055804Z The graph node for azurerm_key_vault_secret.workspace_id has no configuration
2022-10-19T18:20:55.4056586Z attached to it. This suggests a bug in Terraform's apply graph builder;
2022-10-19T18:20:55.4056877Z please report it!
2022-10-19T18:20:55.4056971Z
2022-10-19T18:20:55.4057198Z Error: Resource node has no configuration attached
2022-10-19T18:20:55.4057334Z
2022-10-19T18:20:55.4057577Z The graph node for azurerm_key_vault_secret.workspace_key has no
2022-10-19T18:20:55.4057929Z configuration attached to it. This suggests a bug in Terraform's apply graph
2022-10-19T18:20:55.4058213Z builder; please report it!
2022-10-19T18:20:55.4709589Z ##[error]Error: The process 'C:\a_tool\terraform\1.3.2\x64\terraform.exe' failed with exit code 1
2022-10-19T18:20:55.4747398Z ##[section]Finishing: TerraformTaskV32

Expected Behavior

azurerm_log_analytics_workspace.log was removed from the configuration and should be destroyed

Actual Behavior

terraform apply fails

Steps to Reproduce

terraform init
terraform apply

Additional Context

run in Azure DevOps pipeline using Terraform task

Successful on the second run

References

No response

@vanmash vanmash added bug new new issue not yet triaged labels Oct 19, 2022
@jbardin
Copy link
Member

jbardin commented Oct 19, 2022

Duplicate of #31850

@jbardin jbardin marked this as a duplicate of #31850 Oct 19, 2022
@jbardin jbardin closed this as completed Oct 19, 2022
@crw crw added duplicate issue closed because another issue already tracks this problem and removed new new issue not yet triaged labels Oct 19, 2022
@crw crw closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2022
@vanmash
Copy link
Author

vanmash commented Oct 20, 2022

Hey James @jbardin,
#31850 is closed, does it mean it is solved already?

@jbardin
Copy link
Member

jbardin commented Oct 20, 2022

Yes, the issue has been resolved. You can see the closing PR #31990 linked from the bottom of the issue.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug duplicate issue closed because another issue already tracks this problem
Projects
None yet
Development

No branches or pull requests

3 participants