Skip to content

aci_rest_managed resource fails with 400 on destroy (DCNE-380) #1336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
juchowan opened this issue Apr 23, 2025 · 0 comments
Open

aci_rest_managed resource fails with 400 on destroy (DCNE-380) #1336

juchowan opened this issue Apr 23, 2025 · 0 comments
Labels
bug jira-sync Sync this issue to Jira

Comments

@juchowan
Copy link

Community Note

  • 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

Terraform Version

APIC version and APIC Platform

  • V 4.2-6.1

Affected Resource(s)

  • aci_rest_managed

Terraform Configuration Files

resource "aci_rest_managed" "fvFabricExtConnP" {
  dn         = "uni/tn-infra/fabricExtConnP-1"
  class_name = "fvFabricExtConnP"
  content = {
    id     = "1"
    name   = "IPN"
    rt     = "extended:as2-nn4:5:16"
    siteId = "1"
  }
}

resource "aci_rest_managed" "fvPeeringP" {
  dn          = "${aci_rest_managed.fvFabricExtConnP.dn}/peeringP"
  class_name  = "fvPeeringP"
  escape_html = false
  content = {
    type     = "automatic_with_rr"
  }
}

Debug Output

Panic Output

Expected Behavior

it's not possible to delete peering profile from fabric, rest_managed resources should ignore 400 for destroy as some objects cannot be destroyed, it seems that this was accidentally changed:
#1264

Actual Behavior

Error: The post rest request failed

│ Response Status Code: 400, Error Code: 1, Error Message: Intra Site Peering Profile cannot be deleted..

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@akinross akinross added bug jira-sync Sync this issue to Jira labels Apr 23, 2025
@github-actions github-actions bot changed the title aci_rest_managed resource fails with 400 on destroy aci_rest_managed resource fails with 400 on destroy (DCNE-380) Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug jira-sync Sync this issue to Jira
Projects
None yet
Development

No branches or pull requests

2 participants