Closed edudppaz closed 1 month ago
@edudppaz Thank you for opening the issue. Our team will look into this and get back to you.
Just a comment regarding use of aci_fabric_node_member. When one switch needed to be replaced we got into trouble as Terraform wanted to remove the old switch, which did no longer exist. After this we changed to use serial number as key instead of hostname. The next time we had to replace a switch we had no problems, just imported the new switch into state after adding it to the fabric using the gui.
Community Note
Terraform Version
v1.5.6
APIC version and APIC Platform
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Upon destruction of the resource, the aci node should be removed from the fabric inventory.
Actual Behavior
A terraform apply reports the destruction of the resource, and the resource gets removed from the terraform state. However, the fabric node member is not removed from the fabric inventory.
Steps to Reproduce
terraform plan
terraform apply
Important Factoids
The proper API call to remove the node from inventory is:
https://<IP>/api/node/mo/uni/fabric/outofsvc.json
With body (example):
References
0000