You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
After inital apply the configuration should not change.
Actual Behavior
The initial apply works fine and resources are being created. The next apply reports an update for the subject resource.
# aci_contract_subject.l3out_contr_l3out_contr_subj1 will be updated in-place
~ resource "aci_contract_subject" "l3out_contr_l3out_contr_subj1" {
id = "uni/tn-z_admin_ten/brc-l3out_contr/subj-l3out_contr_subj1"
name = "l3out_contr_subj1"
~ relation_vz_rs_subj_filt_att = [
- "uni/tn-z_admin_ten/flt-any_ip_fltr",
]
# (12 unchanged attributes hidden)
}
Basically, this removes the filter from the subject.
At the next apply the relation is created again because of the configuration in resource aci_contract_subject_filter.
It seems that these are 2 competing ways for the same configuration in ACI.
I'm not sure if this is a bug or if I'm not using the resources correctly.
Please advise.
Steps to Reproduce
terraform apply
terraform apply with no changes in Terraform config files. Relation to filter is deleted
terraform apply with no changes in Terraform config files. Relation to filter is created again
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Unexpected behaviour for aci_contract_subject
Unexpected behaviour for aci_contract_subject (DCNE-425)
May 15, 2025
Hi @dirkf98, thank you for making us aware. There is already another bug opened on this issue so linking this one to this so it might be able to get fixed in one go: #1342
Thanks for the quick reply.
As a workaround I've added the relation in the subject resource and Terraform does not attempt to remove the filter then.
It is the last line in this configuration:
Apologies for the short response before. This indeed is a workaround, and for now only way to do it.
It is a current limitation (bug) of the resources where children when not defined in the parent but separate and in the same configuration the are cyclical created/deleted. When we migrate the resource to plugin framework the problem should be resolved since we do not detect it as a change when not defined in the configuration. More is explained about the migration in https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/guides/migration. Off course the issue would then still persist in migrated resources when you define different configuration in parent and separated child resource.
Community Note
Terraform Version
Terraform v1.10.5
on linux_amd64
APIC version and APIC Platform
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
After inital apply the configuration should not change.
Actual Behavior
The initial apply works fine and resources are being created. The next apply reports an update for the subject resource.
Basically, this removes the filter from the subject.
At the next apply the relation is created again because of the configuration in resource
aci_contract_subject_filter
.It seems that these are 2 competing ways for the same configuration in ACI.
I'm not sure if this is a bug or if I'm not using the resources correctly.
Please advise.
Steps to Reproduce
terraform apply
terraform apply
with no changes in Terraform config files. Relation to filter is deletedterraform apply
with no changes in Terraform config files. Relation to filter is created againImportant Factoids
References
The text was updated successfully, but these errors were encountered: