Skip to content
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]: Provider produced inconsistent result after apply #1234

Open
im-dim opened this issue Jan 24, 2025 · 0 comments
Open

[Bug]: Provider produced inconsistent result after apply #1234

im-dim opened this issue Jan 24, 2025 · 0 comments
Labels

Comments

@im-dim
Copy link

im-dim commented Jan 24, 2025

Terraform Core Version

1.10.5.

citrixadc Provider Version

1.42.0

Operating system

MAC OS

Affected Resource(s)

Error thrown when trying to bind citrixadc_appfwpolicy to a vserver.

│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.citrix_waf_config["XXX"].citrixadc_vpnvserver_vpnsessionpolicy_binding.appfw["a.b.c_VServer"],
│ provider "provider[\"registry.terraform.io/citrix/citrixadc\"].primary" 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.

Actually, based on CLI config, the operation was completed (below) but terraform fails.

bind vpn vserver a.b.c_VServer -policy appfw -priority 80 -gotoPriorityExpression END -type REQUEST

Image

Equivalent NetScaler CLI Command

bind vpn vserver a.b.c_VServer -policy appfw -priority 80 -gotoPriorityExpression END -type REQUEST

Expected Behavior

terraform completes without errors

Actual Behavior

terraform fails

Relevant Error/Panic Output Snippet

│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.citrix_waf_config["XXX"].citrixadc_vpnvserver_vpnsessionpolicy_binding.appfw["a.b.c_VServer"],
│ provider "provider[\"registry.terraform.io/citrix/citrixadc\"].primary" 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

resource "citrixadc_appfwpolicy" "appfw" {

  provider = citrixadc.primary

  name        = "${local.appfw_product_name}_appfw"
  profilename = citrixadc_appfwprofile.appfw.name
  rule        = "HTTP.REQ.URL.SUFFIX.EQ(\"a.b.c\")"
}

resource "citrixadc_vpnvserver_vpnsessionpolicy_binding" "appfw" {

  provider = citrixadc.primary

  name     = "a.b.c_VServer"
  policy   = citrixadc_appfwpolicy.appfw.name
  priority = 80
  gotopriorityexpression = "END"
  bindpoint              = "REQUEST"

  depends_on = [citrixadc_appfwpolicy.appfw]
}

Steps to Reproduce

Try to bind appfw policy to a vserver

Debug Output

No response

Panic Output

No response

Important Factoids

based on CLI config, the operation was completed (below) but terraform fails.

bind vpn vserver a.b.c_VServer -policy appfw -priority 80 -gotoPriorityExpression END -type REQUEST

References

No response

@im-dim im-dim added the bug label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant