CiscoISE / terraform-provider-ciscoise

Terraform Provider for Cisco ISE
https://registry.terraform.io/providers/CiscoISE/ciscoise/latest/docs
MIT License
10 stars 4 forks source link

Error- ciscoise_node_services_profiler_probe_config (Resource) #13

Closed ragu2k8 closed 2 years ago

ragu2k8 commented 2 years ago

config:


resource "ciscoise_node_services_profiler_probe_config" "configure_profiling_probe" {
  for_each = local.ISE_PSN_MAP
  parameters {
    hostname           = each.key
    active_directory   {
      days_before_rescan = 1
    }
    http  {
      interfaces  {
        interface  = "GigabitEthernet 0"
      }
    }
    dhcp  {
      interfaces  {
        interface  = "GigabitEthernet 0"
      }
      port = 67
    }
    radius = []
    nmap = []
    dns {
      timeout =  2
    }
    snmp_query {
      retries = 2
      timeout = 1000
      event_timeout = 30
    }

  }
  depends_on = [data.ciscoise_node_group_node_create.register_to_nodegroup]
}

Error:


ciscoise_node_services_profiler_probe_config.configure_profiling_probe["isnode1"]: Creating...
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to ciscoise_node_services_profiler_probe_config.configure_profiling_probe["isnode1"], provider "provider[\"registry.terraform.io/ciscoise/ciscoise\"]" 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.

API payload works:

{
"activeDirectory": 
{ "daysBeforeRescan": 1 },
"nmap": null,
"pxgrid": null,
"radius": [],
"snmpQuery": { "eventTimeout": 30, "retries": 2, "timeout": 1000 },
"snmpTrap": null,
"dhcp": { "interfaces": [{"interface":"GigabitEthernet 0"}],
 "port": 67 },
 "dns": { "timeout": 2 }, 
"dhcpSpan": { "interfaces": [{"interface":"GigabitEthernet 0"}] },
"http": { "interfaces": [{"interface":"GigabitEthernet 0"}] },
"netflow": { "interfaces": [{"interface":"GigabitEthernet 0"}], "port": 9996 },
"snmpQuery": { "eventTimeout": 30, "retries": 2, "timeout": 1000 } 
}
ragu2k8 commented 2 years ago

@wastorga any help?

wastorga commented 2 years ago

It seems that the problem was the Terraform id of that resource. Version 0.1.0-rc.2 is currently in the process of publishing.