terraform-provider-citrixadc icon indicating copy to clipboard operation
terraform-provider-citrixadc copied to clipboard

Issue w/ New LDAP Policy Binding

Open andrewhadam opened this issue 2 years ago • 3 comments

I went to use the new policy binding that was released in the latest released and almost immediately stumbled upon a bug I wanted to report. Code example is as follows:

main.tf -

resource "citrixadc_systemglobal_authenticationldappolicy_binding" "default_ldap_policies_bindings" {
  for_each       = var.ldap_groups
  policyname     = each.value.policy_name
  globalbindtype = "SYSTEM_GLOBAL"
  feature        = "SYSTEM"
  priority       = each.value.priority
}

variables.tf - 

variable "ldap_groups" {
  type = map(object({
    ldapaction_name = string
    policy_name     = string
    searchfilter    = string
    priority        = number
  }))
  default = {
    "test" = {
      ldapaction_name = "test_ldapact"
      policy_name     = "test_ldappol"
      searchfilter    = "(omitted)"
      priority        = 100
    }
  }
}

When it goes to apply, I get the following error

│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ citrixadc_systemglobal_authenticationldappolicy_binding.default_ldap_policies_bindings["test "],
│ provider "provider[\"registry.terraform.io/citrix/citrixadc\"]" produced an
│ unexpected new value: Root resource was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

It does look like if I individually target an apply, the object does get made on the Netscaler but the provider returns the above error and causes our deployment pipeline to fail.

andrewhadam avatar Apr 27 '22 15:04 andrewhadam

@rohit-myali - Take a look into this.

vadharm avatar Apr 29 '22 05:04 vadharm

Any update here?

andrewhadam avatar May 31 '22 12:05 andrewhadam

Hello @andrewhadam I'm not observing any error with same configuration. Can u provide us more info regarding the error. Please provide the log file of the error.

rohit-myali avatar May 31 '22 14:05 rohit-myali

Hello @andrewhadam , Thanks for reaching out to us !! I don't observe any such error with the same configuration..! Can you drop us an email at [email protected], we will take it forward from there. Also specify the ADC version you are using.

Thanks, Rohit

rohit-myali avatar Sep 28 '22 14:09 rohit-myali