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

[Bug]: GSLB backup vserver not configured on first attempt #1196

Open
gusmb opened this issue Aug 28, 2024 · 0 comments
Open

[Bug]: GSLB backup vserver not configured on first attempt #1196

gusmb opened this issue Aug 28, 2024 · 0 comments
Labels

Comments

@gusmb
Copy link

gusmb commented Aug 28, 2024

Terraform Core Version

1.8.5

citrixadc Provider Version

1.39.0

Operating system

RHEL7

Affected Resource(s)

  • citrixadc_gslbvserver

Equivalent NetScaler CLI Command

add gslb vserver [ < other params > ] -backupVServer

Expected Behavior

Return terraform state with the expected backupvserver config

Actual Behavior

Terraform state shows:

backupvserver = null

Only after running "terraform apply" a second time, the backupvserver field is populated

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "citrixadc_gslbvserver" "gslb-1" {
  provider        = citrixadc.PARTITION
  name            = "GV_VSERVER1"
  state           = "ENABLED"
  edr             = "ENABLED"
  mir             = "DISABLED"
  lbmethod        = "ROUNDROBIN"
  persistencetype = "NONE"
  servicetype     = "TCP"
}

resource "citrixadc_gslbvserver" "gslb-2" {
  provider        = citrixadc.PARTITION
  name            = "GV_VSERVER2"
  state           = "ENABLED"
  edr             = "ENABLED"
  mir             = "DISABLED"
  lbmethod        = "ROUNDROBIN"
  persistencetype = "NONE"
  backupvserver   = "GV_VSERVER1"
  servicetype     = "TCP"
  depends_on      = [citrixadc_gslbvserver.gslb-1]
}

Steps to Reproduce

  1. Run terraform apply
  2. Terraform state show citrixadc_gslbvserver.gslb-2 shows null value for backup vserver
  3. Run terraform apply --> Shows a pending change to configure backupvserver param only
  4. Terraform state show citrixadc_gslbvserver.gslb-2 shows the correct state
  5. Run terraform apply --> Now there are no changes to the infrastructure

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

@gusmb gusmb added the bug label Aug 28, 2024
@github-staff github-staff deleted a comment from ViniciusSCG Oct 1, 2024
@github-staff github-staff deleted a comment from ViniciusSCG Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@gusmb and others