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

Pooled Capacity Allocation causes Netscaler reboot

Open kaiAsmOne opened this issue 3 years ago • 3 comments

Hi,

When trying to allocate pooled capacity Netscaler will crash on both allocation and later on state refresh . Furthermore the terraform nscapacity & nslicense does not support the required arguments for

1: Username and password to pass to license server (ADM Server) 2: ADM Profile to register device under

kaiAsmOne avatar Oct 21 '21 10:10 kaiAsmOne

I'm going to +1 the above post. I noticed this exact behavior and ultimately commented out the resource I was testing with until I had time to come back to it to investigate more.

andrewhadam avatar Oct 22 '21 02:10 andrewhadam

The reboots are part of the expected behavior.

There is one warm reboot before reading the state of the nscapacity resource. This is there because changes made to nscapacity are not visible before a warm reboot is issued.

As for username and password they are not required to connect to the license server. The NITRO API and nscli do not provide arguments for them.

The ADM profile to register the device under is part of the ADM functionality. We currently do not support ADM with terraform.

giorgos-nikolopoulos avatar Oct 22 '21 11:10 giorgos-nikolopoulos

If you have citrixadc_nscapacity / citrixadc_nslicenseserver in your config, terraform script will time out during reboot and furthermore it will continue to reboot the netscaler everytime you do a state refresh.

It would be rational to be able to register a netscaler correctly with ADM when deploying it, due to the fact that Netscaler in Pooled Capacity have a dependency to ADM. Pooled Capacity is a licensing mode Citrix advertise for cloud.

kaiAsmOne avatar Oct 26 '21 07:10 kaiAsmOne

It would be nice to be able to allocate a pooled capacity license

Currently this is not possible due to above mentioned:

If you have citrixadc_nscapacity / citrixadc_nslicenseserver in your config, terraform script will time out during netscaler-reboot and furthermore it will continue to reboot the netscaler everytime you do a state refresh.

kaiAsmOne avatar Nov 04 '22 09:11 kaiAsmOne

Hello @kaiAsmOne , We have fixed the nscapacity resource and released it to terraform registry v1.28.0. Link to docs here Please test the resource from your configuration and let us know if you face any issue. If you face no error then please close this issue.!!

Thanks, Rohit

rohit-myali avatar Dec 20 '22 07:12 rohit-myali

Hi,

I have been very busy with workloads lately. I have not had the chance to test this out until 14 days ago. I can now completely deploy and configure a Netscaler HA cluster with more or less all services in Azure.

(i do some work with curl since i do not want to terraform import in a pipeline)

However the license part is something i still struggle with.

I tried with the 1.33.0 provider and it still does not work.

My config is as follows. Maybe my code is not correct ?

Configure License server

resource "citrixadc_nslicenseserver" "tf_licenseserver" { servername = "1.2.3.4" port = 27000 }

Pooled Capacity Allocation

resource "citrixadc_nscapacity" "tf_pooled" { bandwidth = 1000 unit = "Mbps" edition = "Platinum" }

kaiAsmOne avatar May 16 '23 13:05 kaiAsmOne