netscaler / terraform-provider-netscalersdx

Manage (Configure) SDX via this terraform provider
https://registry.terraform.io/providers/netscaler/netscalersdx/latest/docs
1 stars 3 forks source link

[BUG] Upgrade from SDX 13.0 89.7 to 13.1 42.47 - seems incompatible with the citrixsdx_provision_vpx #7

Closed HS1542 closed 1 year ago

HS1542 commented 1 year ago

I wanted to make a terraform destroy/apply run for a pair of VPXs. The destroy command worked correct and is logged in the ns.log on the SVM as login and deletion of VPXs. The apply command does not work and produces the following printed error(Debug does not :

╷
│ Error: unable to createProvision VPX: failed: 400 Bad Request ({"errorcode":10008, "message":"Json Parsing Error"})
│
│   with citrixsdx_provision_vpx.vpx1,
│   on provision-vpx.tf line 1, in resource "citrixsdx_provision_vpx" "vpx1":
│    1: resource "citrixsdx_provision_vpx" "vpx1" {
│

I see no traces of tried login or commands in ns.log on the SVM In mps_service.log on the SVM I see the following logs:

4 May 23 13:07:45.681 +0200 [Debug] [TCPServerConnection (default[#565])]  HTTP Request from URI:/nitro/v1/config/ns, method:POST
4 May 23 13:07:45.681 +0200 [Error] [TCPServerConnection (default[#565])] Exception in uri_decode Reason: Bad URI syntax: URI encoding: not a hex digit
4 May 23 13:07:45.681 +0200 [Debug] [TCPServerConnection (default[#565])] convertHTTPRequestToMPSMessage ERROR errormessage = Json Parsing Error

The only known changes made since last run, is that the SDXs themselves have been upgraded from 13.0 89.7 to 13.1 42.47

HS1542 commented 1 year ago

Hello,

Just a quick bump as I really would like to see this solved. Thank you!

HS1542 commented 1 year ago

This can be closed as it was due to a non-documented limitation in regards to special characters for the "password" attribute. The Terraform project would generate a random string and populate the password attribute, but if the string contained the percentage '%' character, then the provision will fail with the given error.