terraform-provider-citrixadc
terraform-provider-citrixadc copied to clipboard
[BUG] snmpmanager imcomplete
Bug Report
Describe the bug SNMP Managers (citrixadc_snmpmanager) not fully set.
To Reproduce Steps to reproduce the behaviour:
- 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"
}
- which terraform command I am getting the error
terrafrom apply
- 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.
...
- 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.
Try this instead
resource "citrixadc_snmpmanager" "citrixadm_snmpmanager" { ipaddress = var.sys_citrixadm_ipaddress netmask = "255.255.255.255" }