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]: Issue 1113 / 1147 is not resolved. enhancement introduces new bug #1162

Open
kaiAsmOne opened this issue May 15, 2024 · 1 comment
Open
Labels
bug Needs-Info Further information is requested

Comments

@kaiAsmOne
Copy link

kaiAsmOne commented May 15, 2024

Terraform Core Version

1.5.7

citrixadc Provider Version

1.39.0

Operating system

Mac OS

Affected Resource(s)

I Have a working WAF Installation with bound WAF Signatures.
When upgrading to provider version => 1.38.0 the provider wants to replace all existing citrixadc_appfwsignatures with this change detected:

The Netscaler provider wants to change this on every run..

module.netscaler-adc-waf-fqdn_company_no.citrixadc_appfwsignatures.app_waf must be replaced
-/+ resource "citrixadc_appfwsignatures" "app_waf" {

  • action = (known after apply) # forces replacement
  • autoenablenewsignatures = (known after apply)
  • category = (known after apply)
  • enabled = (known after apply)
    ~ id = "waf_sig_fqdn.company.no" -> (known after apply)
  • mergedefault = (known after apply)
    name = "waf_sig_fqdn.company.no"
  • ruleid = (known after apply) # forces replacement
  • sha1 = (known after apply)
  • vendortype = (known after apply)
  • xslt = (known after apply)
    (5 unchanged attributes hidden)
    }

Resulting in

Error: Provider produced inconsistent result after apply

│ When applying changes to module.netscaler-adc-waf-fqdn_company_no.citrixadc_appfwsignatures.app_waf, provider "provider["registry.terraform.io/citrix/citrixadc"]" produced an unexpected new value: Root resource was present, but now
│ absent.

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Equivalent NetScaler CLI Command

https://developer-docs.netscaler.com/en-us/adc-nitro-api/13-1/configuration/appfw/appfwsignatures

Expected Behavior

A Working citrixadc_appfwsignatures

Actual Behavior

Resulting in

Error: Provider produced inconsistent result after apply

│ When applying changes to module.netscaler-adc-waf-fqdn_company_no.citrixadc_appfwsignatures.app_waf, provider "provider["registry.terraform.io/citrix/citrixadc"]" produced an unexpected new value: Root resource was present, but now
│ absent.

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

None

Steps to Reproduce

Configure a WAF Profile, Configure WAF Signatures. Upgrade provider to 1.38.0 and rerun existing working terraform code.
Re run terraform code and citrixadc_appfwsignatures detects a change it cannot resolve.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

@kaiAsmOne kaiAsmOne added the bug label May 15, 2024
@rohit-myali
Copy link
Contributor

rohit-myali commented May 20, 2024

Hello @kaiAsmOne

Is it forcing the changes everytime you try terraform apply? After you upgrade the terraform provider version, It should basically as for forcre chance once. Later terraform apply should not cause any changes.

Can you run the terraform command with NS_LOG=TRACE TF_LOG=TRACE TF_LOG_PATH=./tf.log to generate log file tf.log? Please paste the log file here

@rohit-myali rohit-myali added the Needs-Info Further information is requested label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs-Info Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants