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]: LB timeout 0 not being honored - see CLOSED ISSUE #1062 - The problem exists in provider 1.39.0 #1169

Open
kevinmarino opened this issue May 30, 2024 · 0 comments
Labels

Comments

@kevinmarino
Copy link

Terraform Core Version

1.8.4

citrixadc Provider Version

1.39.0

Operating system

Windows

Affected Resource(s)

resource "citrixadc_lbvserver" "vip" {
name = "VIP"
ipv46 = "10.10.10.10"
port = 443
servicetype = "SSL"
persistencetype = "COOKIEINSERT"
timeout = 0
}

Equivalent NetScaler CLI Command

add lb vserver VIP SSL 10.10.10.10 443 -persistenceType COOKIEINSERT -timeout 0

Expected Behavior

The timeout value of the persistence type CookieInsert should be set to 0.

Actual Behavior

After applying the terraform code the cookieinsert persistence value is defaulted to 2. If you try and change the timeout value to 0 it will error out.

Relevant Error/Panic Output Snippet

Terraform will perform the following actions:

  # module.adc-az-vpx-sandbox-1_add_lbvserver_azure_east["VST-HS-SERVICENAME-SERVICECOMPONENT-INT"].citrixadc_lbvserver.module_tf_lbvserver will be updated in-place
  ~ resource "citrixadc_lbvserver" "module_tf_lbvserver" {
        id                                 = "vst-HS-servicename-servicecomponent-INT-M1"
        name                               = "vst-HS-servicename-servicecomponent-INT-M1"
      ~ timeout                            = 2 -> 0
        # (95 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
module.adc-az-vpx-sandbox-1_add_lbvserver_azure_east["VST-HS-SERVICENAME-SERVICECOMPONENT-INT"].citrixadc_lbvserver.module_tf_lbvserver: Modifying... [id=vst-HS-servicename-servicecomponent-INT-M1]
╷
│ Error: [ERROR] netscaler-provider: Error updating lbvserver vst-HS-servicename-servicecomponent-INT-M1
│
│   with module.adc-az-vpx-sandbox-1_add_lbvserver_azure_east["VST-HS-SERVICENAME-SERVICECOMPONENT-INT"].citrixadc_lbvserver.module_tf_lbvserver,
│   on modules\add-lbvserver\main.tf line 13, in resource "citrixadc_lbvserver" "module_tf_lbvserver":
│   13: resource "citrixadc_lbvserver" "module_tf_lbvserver" {

Terraform Configuration Files

terraform {
required_providers {
citrixadc = {
source = "citrix/citrixadc"
version = "1.39.0"
}
}
}

provider "citrixadc" {
endpoint = "https://10.10.10.5"
username = var.adc_admin_username
password = var.adc_admin_password
insecure_skip_verify = true
}

resource "citrixadc_lbvserver" "vip" {
name = "VIP"
ipv46 = "10.10.10.10"
port = 443
servicetype = "SSL"
persistencetype = "COOKIEINSERT"
timeout = 0
}

Steps to Reproduce

Create a LB Vserver resource with cookieinsert persistence and set a timeout value of 0. Run the apply and validate the timeout is defaulted to 2, re-run the apply to have it update to 0 and get an error.

Debug Output

No response

Panic Output

No response

Important Factoids

See #1062 - For this previous issue in 1.35.0 which was corrected in 1.37.0 build but has since become a problem again in 1.39.0 build.

References

Previous ISSUE and CLOSED information: #1062

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

1 participant