Skip to content

directory_services_v2 creates directory if terraform apply is re run plugin crashes #747

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

Open
jasonchittenden opened this issue Feb 14, 2025 · 0 comments · May be fixed by #768
Open

directory_services_v2 creates directory if terraform apply is re run plugin crashes #747

jasonchittenden opened this issue Feb 14, 2025 · 0 comments · May be fixed by #768

Comments

@jasonchittenden
Copy link

Nutanix Cluster Information

Terraform Version

  • nutanix_directory_services_v2

Terraform Configuration Files

terraform {
  required_providers {
    nutanix = {
      source  = "nutanix/nutanix"
      version = "2.0.0"
    }
  }
}

#defining nutanix configuration
provider "nutanix" {
  username = var.nutanix_username
  password = var.nutanix_password
  endpoint = var.nutanix_endpoint
  port     = 9440
  insecure = true
}




# Add Directory Service .
resource "nutanix_directory_services_v2" "ig-directory" {
  name           = "OUR_DIRECTORY_NAME"
  url            = "ldaps://ldap.ourladpserver:636"
  directory_type = "ACTIVE_DIRECTORY"
  domain_name    = "our.domain"
  group_search_type = "NON_RECURSIVE"
  service_account {
    username = var.service_account_username
    password = var.service_account_password
  }
}

Debug Output

Panic Output

https://gist.github.com/jasonchittenden/8a781a40791301c242e18df21c61ab3c

Expected Behavior

I expected the terraform apply to complete making no changes or code below outputs etc to be shown

Actual Behavior

Crashes running terraform apply after directory has already been created by terraform

Steps to Reproduce

  1. terraform apply to create terraform appy after caused crash

Important Factors

  • #0000 <!---Github Issue number --->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants