-
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
Feature Request: Prevent Removal of Server Object if Bound to any Service Group #1114
Comments
@stefanschlipfi, thank you posting the request. Can you please help us with the terraform scripts to reproduce the scenario? This will help us to reproduce your issue and can faster support your request. Thank you |
On NSadd server sv_appserver_1 192.168.100.1
add serviceGroup lb_sg_test_1_443 SSL
add serviceGroup lb_sg_test_2_443 SSL
bind serviceGroup lb_sg_test_1_443 sv_appserver_1 443
bind serviceGroup lb_sg_test_2_443 sv_appserver_1 443 Terraformresouces.tf for Servicegroup: test_1resource "citrixadc_server" "sv_appserver_1" {
name = "sv_appserver_1"
ipaddress = "192.168.100.1"
}
resource "citrixadc_servicegroup" "lb_sg_test_1_443" {
servicegroupname = "lb_sg_test_1_443"
servicetype = "SSL"
}
resource "citrixadc_servicegroup_servicegroupmember_binding" "lb_sg_test_1_443_appserver_1_binding" {
servicegroupname = "lb_sg_test_1_443"
servername = "sv_appserver_1"
port = 443
weight = 1
} resouces.tf for Servicegroup: test_2resource "citrixadc_server" "sv_appserver_1" {
name = "sv_appserver_1"
ipaddress = "192.168.100.1"
}
resource "citrixadc_servicegroup" "lb_sg_test_2_443" {
servicegroupname = "lb_sg_test_2_443"
servicetype = "SSL"
}
resource "citrixadc_servicegroup_servicegroupmember_binding" "lb_sg_test_2_443_appserver_1_binding" {
servicegroupname = "lb_sg_test_2_443"
servername = "sv_appserver_2"
port = 443
weight = 1
} Problemnow if I remove with Terraform or with the CLI:
I am wondering why there is no exception to prevent unintended removal of servers |
@sumanth-lingappa Thanks a lot. |
@stefanschlipfi I am trying to understand your code and issue here. resource "citrixadc_servicegroup_servicegroupmember_binding" "lb_sg_test_1_443_appserver_1_binding" { |
Hi, |
Problem
When using the Citrix ADC Terraform provider, I've encountered an issue where if I have multiple service groups bound to one server, Terraform removes the server without any warning.
Soulution
I would like to request the addition of a new flag or feature that allows the server object to be prevented from being removed if it is bound to any other servicegroup. This would help prevent unintended removal of servers that are still in use by other service groups.
Thank you for considering this feature request.
The text was updated successfully, but these errors were encountered: