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

[BUG] snmpmanager imcomplete

Open adc-nerd opened this issue 1 year ago • 2 comments

Bug Report

Describe the bug SNMP Managers (citrixadc_snmpmanager) not fully set.

To Reproduce Steps to reproduce the behaviour:

  1. ressource file
resource "citrixadc_snmpmanager" "tf_snmp01" {
  ipaddress          = "1.1.1.1"
}
resource "citrixadc_snmpmanager" "tf_snmp02" {
  ipaddress          = "1.1.1.2"
}
resource "citrixadc_snmpmanager" "tf_snmp03" {
  ipaddress          = "1.1.1.3"
}
resource "citrixadc_snmpmanager" "tf_snmp04" {
  ipaddress          = "1.1.1.4"
}
resource "citrixadc_snmpmanager" "tf_snmp05" {
  ipaddress          = "1.1.1.5"
}
resource "citrixadc_snmpmanager" "tf_snmp06" {
  ipaddress          = "1.1.1.6"
}
resource "citrixadc_snmpmanager" "tf_snmp07" {
  ipaddress          = "1.1.1.7"
}
resource "citrixadc_snmpmanager" "tf_snmp08" {
  ipaddress          = "1.1.1.8"
}
resource "citrixadc_snmpmanager" "tf_snmp09" {
  ipaddress          = "1.1.1.9"
}
resource "citrixadc_snmpmanager" "tf_snmp10" {
  ipaddress          = "1.1.1.10"
}
resource "citrixadc_snmpmanager" "tf_snmp11" {
  ipaddress          = "1.1.1.11"
}
resource "citrixadc_snmpmanager" "tf_snmp12" {
  ipaddress          = "1.1.1.12"
}
  1. which terraform command I am getting the error
terrafrom apply
  1. Terraform output
...
 Error: Provider produced inconsistent result after apply

When applying changes to citrixadc_snmpmanager.tf_snmp03, 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.

Error: Provider produced inconsistent result after apply

When applying changes to citrixadc_snmpmanager.tf_snmp05, 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.
...
  1. Error I am facing on NetScaler You may find some errors in ns.log - set commands seems to be incomplete.

Expected behaviour Set/unset of multiple SNMP Managers.

Environment (please fill the following information):

  • OS: Windows
  • Terraform: v1.5.5
  • citrixadc: v1.36.0

Additional context There seems to be also a problem with the optional netmask argument. Sometimes provider states replacement without any changes to the ressource files.

adc-nerd avatar Aug 21 '23 10:08 adc-nerd

Try this instead

resource "citrixadc_snmpmanager" "citrixadm_snmpmanager" { ipaddress = var.sys_citrixadm_ipaddress netmask = "255.255.255.255" }

kaiAsmOne avatar Nov 21 '23 20:11 kaiAsmOne