Skip to content
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

mso_schema_site delete does not work when schema is not saved. (DCNE-55) #287

Closed
anvitha-jain opened this issue Jul 23, 2024 · 0 comments · Fixed by #293
Closed

mso_schema_site delete does not work when schema is not saved. (DCNE-55) #287

anvitha-jain opened this issue Jul 23, 2024 · 0 comments · Fixed by #293
Labels
bug Something isn't working jira-sync Sync this issue to Jira

Comments

@anvitha-jain
Copy link
Collaborator

anvitha-jain commented Jul 23, 2024

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

MSO version

  • V 4.3(1008)

APIC version and APIC Platform for Site Level Resources

  • V5.2 and on-prem/cloud-aws/cloud-azure/all.

Affected Resource(s)

  • mso_schema_site

Terraform Configuration Files

refer to mso_schema_site_contract_service_graph (main.tf) in example folder
run terraform apply on main.tf  without resource "mso_schema_site_contract_service_graph" "site_contract_service_graph" {...}
and try to remove mso_schema_site after apply -> this will remove the resource from state file but not from the UI.

Debug Output

HTTP response unique string POST h ttps://173.36.219.35/mso/api/v1/task {"'errMessage":"Template TEMPLATE1ANV undeploy not allowed. Reason: Template not deployed on any sites"}

Actual Behavior

The site has to be disassociated from the schema

Steps to Reproduce

  1. terraform apply

Important Factoids

This only occurs if there are site level parameters for the objects that are not configured on the site level.
But the mso_schema_site is removed from the terraform state file.

References

  • #0000
Screenshot 2024-07-19 at 11 25 27 AM
@anvitha-jain anvitha-jain added the bug Something isn't working label Jul 23, 2024
@anvitha-jain anvitha-jain changed the title mso_schema_site DELETE does not work when schema is not saved. mso_schema_site delete does not work when schema is not saved. Jul 23, 2024
@samiib samiib added the jira-sync Sync this issue to Jira label Aug 12, 2024
@github-actions github-actions bot changed the title mso_schema_site delete does not work when schema is not saved. mso_schema_site delete does not work when schema is not saved. (DCNE-55) Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jira-sync Sync this issue to Jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants