Skip to content

[Bug]: Incorrect validation of the created nsip resource for a non-zero traffic domain. #1265

@malibayev

Description

@malibayev

Terraform Core Version

1.12.2

citrixadc Provider Version

1.43.1

Operating system

Linux alpine/centos

Affected Resource(s)

citrixadc_nsip

Equivalent NetScaler CLI Command

add ns ip 10.102.4.123 255.255.255.0 -type SNIP -vServer DISABLED -td 1234
show ns ip 10.102.4.123 -td 1234

Expected Behavior

The nsip was created in traffic domain 1234 with the type SNIP.
The "show ns ip 10.102.4.123 -td 1234" command should display the parameters of the created resource in traffic domain 1234.

Actual Behavior

The nsip was created in traffic domain 1234 with the type SNIP.
But the "show ns ip" command is executed within the default traffic domain (0), so Netscaler returns a response indicating that the resource does not exist.

Relevant Error/Panic Output Snippet

Error: Provider produced inconsistent result after apply
When applying changes to module.network.citrixadc_nsip.tf_nsip, provider "provider[\"registry.terraform.io/citrix/citrixadc\"]" produced an unexpected new value: Root object was present, but now absent.
This is a bug in the provider, which should be reported in the provider's own issue tracker.

Terraform Configuration Files

Image
In the packet trace, POST requests are visible with a JSON payload that includes the td (traffic domain) parameter. This is followed by a GET request without the td parameter, to which NetScaler responds with a 404 Not Found.

Steps to Reproduce

The nsip resource needs to be created in non-zero traffic domain.
resource "citrixadc_nsip" "tf_nsip" {
ipaddress = "10.102.4.123"
type = "SNIP"
vserver = "DISABLED"
netmask = "255.255.255.0"
td = "1234"
}

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions