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 creating script_actions in azurerm_hdinsight_spark_cluster for HDInsight on Azure with Terraform #28242

Open
1 task done
lusee88 opened this issue Dec 10, 2024 · 4 comments · May be fixed by #28262
Open
1 task done

Comments

@lusee88
Copy link

lusee88 commented Dec 10, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.5.4

AzureRM Provider Version

3.116.0

Affected Resource(s)/Data Source(s)

azurerm_hdinsight_spark_cluster

Terraform Configuration Files

resource "azurerm_hdinsight_spark_cluster" "example" {
  name                = "example-hdicluster"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  cluster_version     = "5.0"
  tier                = "Standard"

  component_version {
    spark = "3.1"
  }

  gateway {
    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_A3"
      username = "acctestusrvm"
      password = "AccTestvdSC4daf986!"
      script_actions {
        name = "example-actions"
        uri  = var.example_actions_script_action_uri
      }
    }

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

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

Debug Output/Panic Output

Applied successfully

Expected Behaviour

Applies successfully with script actions in the UI

Actual Behaviour

Applies successfully but not script action was added

Steps to Reproduce

  1. Create the HDI cluster
  2. Add the script_actions block
  3. Run terraform apply again and see changes to script actions in terraform but not in UI

Important Factoids

No response

References

No response

@Chambras
Copy link
Contributor

Hi @lusee88 that terraform and azurerm provider combination is kind of old. Any chance you can try with a more up to date versions?

@jiaweitao001
Copy link
Contributor

Hi @lusee88 , thanks for opening this issue. I've tried to reproduce this issue, but the test result look OK to me. I've seen TF detected changes in the script_actions block, as well as the apply complete message you mentioned in the description. May I ask what exactly you are expecting?

@lusee88
Copy link
Author

lusee88 commented Dec 11, 2024

Hi @jiaweitao001 I see the same thing on the terraform side. My issue is after everything goes through on terraform successfully I do not see the script actions actually created in the UI

@jiaweitao001
Copy link
Contributor

@lusee88 , I see. I've successfully reproduced this behavior on my end, will try to fix it in a future version. Thank you again for reporting the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants