-
Notifications
You must be signed in to change notification settings - Fork 59
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 #1062
Comments
Running into this same thing terraform { resource "citrixadc_lbvserver" "tf_lbvserver" { Defaults to 2 mins instead of 0. Setting it to some other timeout value works, changing it back to 0 produces this error │ Error: [ERROR] netscaler-provider: Error updating lbvserver vst-HS-ServiceName-ServiceComponent-INT-M1 Any idea on when the provider will get corrected to allow COOKIEINSERT 0? |
I dont know what has changed or how to "fix" this. Until recently when using cookieinsert with a timeout = 0 made the cookie a session cookie. I ran into the same issue while back but i noticed this is a change in the Netscaler software and not a terraform provider / nitro api issue. You can no longer set timeout = 0 in gui or cli either. This change raises another question: How do we implement session cookies and not a cookie with a fixed expiry time ? |
@kaiAsmOne, @reckio123, @Toasty-Roach What is the netscaler version you are using?
|
show version |
@sumanth-lingappa, @rohit-myali I believe the issue can be identified here in the resource_citrixadc_lbvserver.go code -- Line 137 sepcifically. Notes from the Git Blame: The comments clearly show that timeout does not support 0 value, however with CookieInsert it does. |
@Toasty-Roach : you need to upgrade your netscaler ASAP. The CVE with 9.3 score.. @sumanth-lingappa : To answer you question it was the 13.1 version we had to upgrade to this summer due to the other CVE with a really high like 9+ something.. It does not matter anymore. i tried with 13.1 49.15 and i can set timeout to 0 again and get a session cookie in the Netscaler GUI / CLI.. I can also confirm what @Toasty-Roach says.. i can not set timeout = 0.. And it is the terreform provider when using proper netscaler build. (I used quite a few hours earlier this summer chasing why this was not working until i noticed the same issue was present in gui / cli. I currently have all my apps set to cookietimeout = 60 minutes and i would love to get session cookies again using the terraform provider) |
Hello @reckio123 @kaiAsmOne |
This is an issue on provider version 1.39.0 again. Setting a COOKIEINSERT persistence timeout of 0 is not honored. |
If you apply the following lb configuration that leverage 0 that is a valid timeout for COOKIEINSERT, the provider does not configured it and uses the default 2 minites.
terraform {
required_providers {
citrixadc = {
source = "citrix/citrixadc"
version = "1.35.0"
}
}
}
provider "citrixadc" {
endpoint = "https://192.168.0.141"
username = "nsroot"
password = "Citrix123"
insecure_skip_verify = true
}
resource "citrixadc_lbvserver" "sf_vip" {
name = "SF_VIP"
ipv46 = "10.10.10.11"
port = 443
servicetype = "SSL"
persistencetype = "COOKIEINSERT"
timeout = 0
}
terraform apply -auto-approve
The text was updated successfully, but these errors were encountered: