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

Using features {} with azurerm provisioner < v2.0 causes crash. #5898

Closed
ghost opened this issue Feb 25, 2020 · 2 comments
Closed

Using features {} with azurerm provisioner < v2.0 causes crash. #5898

ghost opened this issue Feb 25, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 25, 2020

This issue was originally opened by @azilber as hashicorp/terraform#24211. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

Terraform v0.12.20
+ provider.azurerm v1.44.0
+ provider.template v2.1.2

Terraform Configuration Files

provider "azurerm" {
    version = "~> 1.44.0"
    subscription_id = var.subscription_id
   features {}
}

Crash Output

Crash Snippet 2020/02/25 22:47:07 [ERROR] module.portal0: eval: *terraform.EvalConfigProvider, err: rpc error: code = Unavailable desc = transport is closing 2020/02/25 22:47:07 [ERROR] module.portal0: eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing 2020/02/25 22:47:07 [ERROR] module.portal0: eval: *terraform.EvalOpFilter, err: rpc error: code = Unavailable desc = transport is closing 2020/02/25 22:47:07 [ERROR] module.portal0: eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing 2020/02/25 22:47:07 [TRACE] [walkRefresh] Exiting eval tree: module.portal0.provider.azurerm 2020/02/25 22:47:07 [TRACE] vertex "module.portal0.provider.azurerm": visit complete 2020/02/25 22:47:07 [TRACE] dag/walk: upstream of "module.portal0.data.azurerm_image.custom" errored, so skipping 2020/02/25 22:47:07 [TRACE] dag/walk: upstream of "module.portal0.data.azurerm_subnet.main" errored, so skipping 2020/02/25 22:47:07 [TRACE] dag/walk: upstream of "module.portal0.provider.azurerm (close)" errored, so skipping 2020/02/25 22:47:07 [TRACE] dag/walk: upstream of "root" errored, so skipping 2020-02-25T22:47:07.197+0800 [DEBUG] plugin: plugin exited

Expected Behavior

"An execution plan has been generated and is shown below."

Actual Behavior

Crash

Steps to Reproduce

  1. terraform init
  2. terraform plan

Additional Context

The features {} block is an azurerm v2.0 feature. I had accidently left it in the provider section. Terraform misses this, and passes it along to the azurerm provider which causes it to crash.
Terraform should be catching this and throwing an error.

@tombuildsstuff
Copy link
Contributor

Duplicate of #5897

@tombuildsstuff tombuildsstuff marked this as a duplicate of #5897 Feb 26, 2020
@ghost
Copy link
Author

ghost commented Mar 28, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant