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

Deleting identity domain fails #1781

Open
F21 opened this issue Feb 28, 2023 · 7 comments · May be fixed by #1782
Open

Deleting identity domain fails #1781

F21 opened this issue Feb 28, 2023 · 7 comments · May be fixed by #1782
Labels
bug In-Progress Terraform Team is working on the reproduce & fix

Comments

@F21
Copy link

F21 commented Feb 28, 2023

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 "me too" comments, 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 and Provider Version

Terraform v1.3.9
on linux_amd64

  • provider registry.terraform.io/hashicorp/oci v4.109.0

Affected Resource(s)

oci_identity_domain

Terraform Configuration Files

resource "oci_identity_domain" "test" {
  compartment_id = oci_identity_compartment.my_compartment.id
  description    = "test"
  display_name   = "test"
  home_region    = "ap-melbourne-1"
  license_type   = "free"
}

Debug Output

oci_identity_domain.secrets: Destroying... [id=ocid1.domain.oc1..aaaaaaasnipped]
╷
│ Error: 412-PreConditionFailed, Cannot perform DELETE_DOMAIN operation on Domain with Status CREATED
│ Suggestion: Please retry or contact support for help with service: Identity Domain
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_domain
│ API Reference: https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/DeleteDomain
│ Request Target: DELETE https://identity.ap-melbourne-1.oci.oraclecloud.com/20160918/domains/ocid1.domain.oc1..aaaaaaaasnipped
│ Provider version: 4.108.1, released on 2023-02-21.
│ Service: Identity Domain
│ Operation Name: DeleteDomain
│ OPC request ID: cd1cb3dc0ea24fd56d88fb4c23fd8215/F2snipped

Panic Output

None

Expected Behavior

Destroying an identity domain should work properly.

Actual Behavior

Destroying an identity domain returns the following error: Error: 412-PreConditionFailed, Cannot perform DELETE_DOMAIN operation on Domain with Status CREATED

Steps to Reproduce

  1. terraform apply
  2. terraform destroy

Important Factoids

None

References

API Docs: https://docs.oracle.com/en-us/iaas/api/#/en/identity/20160918/Domain/DeleteDomain

@F21 F21 added the bug label Feb 28, 2023
@ravinitp ravinitp added the In-Progress Terraform Team is working on the reproduce & fix label Mar 29, 2023
@ravinitp
Copy link
Member

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.

@rakeshnikam13
Copy link

rakeshnikam13 commented Apr 17, 2023

The domain details passed in DELETE API do not exists. Can you please retry with correct details.

@F21
Copy link
Author

F21 commented Apr 17, 2023

@rakeshnikam13 I removed the ocid of the domain in the logs for privacy reasons. As stated in the issue, the reason the delete is failing is because the provider does not deactivate the domain first before deleting, which causes it to fail.

This is fixed in my PR #1782

@rakeshnikam13
Copy link

@F21 Thanks for fixing the issue. Can we close this ticket?

@F21
Copy link
Author

F21 commented Apr 20, 2023

@rakeshnikam13 PR #1782 is still open and has not been merged. Maybe we should close this issue after that's been merged?

@rajatjain1996
Copy link

Any update on this ?
Can the above PR be merged?

@aaker
Copy link

aaker commented Apr 25, 2024

This still seems to be an issue. Any update on when this issue will be addressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug In-Progress Terraform Team is working on the reproduce & fix
Projects
None yet
5 participants