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

resource azurerm_hdinsight_hadoop_cluster causes destroy on subsequent apply #4386

Closed
ghost opened this issue Sep 19, 2019 · 3 comments
Closed

Comments

@ghost
Copy link

ghost commented Sep 19, 2019

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


Terraform Version

Terraform v0.12.6

Terraform Configuration Files

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
    location = "West Europe"
    }

resource "azurerm_storage_account" "example" {
  name                     = "hdinsightstor"
    resource_group_name      = "${azurerm_resource_group.example.name}"
      location                 = "${azurerm_resource_group.example.location}"
        account_tier             = "Standard"
          account_replication_type = "LRS"
          }

resource "azurerm_storage_container" "example" {
  name                  = "hdinsight"
    resource_group_name   = "${azurerm_resource_group.example.name}"
      storage_account_name  = "${azurerm_storage_account.example.name}"
        container_access_type = "private"
        }

resource "azurerm_hdinsight_hadoop_cluster" "example" {
  name                = "example-hdicluster"
    resource_group_name = "${azurerm_resource_group.example.name}"
      location            = "${azurerm_resource_group.example.location}"
        cluster_version     = "3.6"
          tier                = "Standard"

  component_version {
      hadoop = "2.7"
        }

  gateway {
      enabled  = true
          username = "acctestusrgw"
              password = "TerrAform123!"
                }

  storage_account {
      storage_container_id = "${azurerm_storage_container.example.id}"
          storage_account_key  = "${azurerm_storage_account.example.primary_access_key}"
              is_default           = true
                }

  roles {
      head_node {
            vm_size  = "Standard_D3_V2"
                  username = "acctestusrvm"
                        password = "AccTestvdSC4daf986!"
                            }

    worker_node {
          vm_size               = "Standard_D4_V2"
                username              = "acctestusrvm"
                      password              = "AccTestvdSC4daf986!"
                            target_instance_count = 3
                                }

    zookeeper_node {
          vm_size  = "Standard_D3_V2"
                username = "acctestusrvm"
                      password = "AccTestvdSC4daf986!"
                          }
                            }
                            }

Debug Output

https://gist.github.com/laktech/20d2da573cc54e96b4715b66c5c1102e

Crash Output

Expected Behavior

subsequent terraform plan should report that nothing needs to be done.

Actual Behavior

terraform plan reports that hdinsigth cluster needs to be destroyed and terraform apply destroyes the cluster.

Steps to Reproduce

terraform apply
terraform apply

Additional Context

References

@tombuildsstuff
Copy link
Contributor

Fixed via #4489

@ghost
Copy link
Author

ghost commented Oct 4, 2019

This has been released in version 1.35.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 1.35.0"
}
# ... other configuration ...

@ghost
Copy link
Author

ghost commented Mar 29, 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 👉 hashibot-feedback@hashicorp.com. Thanks!

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

No branches or pull requests

1 participant