oracle / oci-ansible-collection

Oracle Cloud Infrastructure Ansible Collection provides an easy way to provision and manage resources in Oracle Cloud using Ansible.
https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/ansible.htm
Other
173 stars 97 forks source link

Delete OCI File Storage Snapshot gave 409 error #282

Closed phamp890 closed 6 months ago

phamp890 commented 6 months ago

Issue Report

Describe the issue

409 error occurs when deleting OCI file storage snapshot

TASK [Delete snapshot] *************************************************************************************************************************
Friday 10 May 2024  21:52:58 +0200 (0:00:00.027)       0:00:05.746 ************
fatal: [X.X.X.X -> localhost]: FAILED! => {"changed": false, "error_code": "Conflict", "http_response_status": "409", "module_documentation": 
"Refer to this link https://docs.oracle.com/en-us/iaas/tools/oci-ansible-collection/latest/collections/oracle/oci/oci_file_storage_snapshot_module.html", 
"msg": "Deleting resource failed with exception: Another Snapshot is currently being provisioned, try again later", 
"opc_request_id": "XXXXXXXXXX", "operation_name": "delete_snapshot", "request_endpoint": 
"DELETE https://filestorage.oraclecloud.com/XXXXXX/snapshots/ocid1.snapshot.oc1..xxxxxxEXAMPLExxxxxx", "service_name":
"file_storage", "time": "2024-05-10T19:52:59.613934+00:00", "troubleshooting_tips": 
"Refer to troubleshooting guide https://docs.oracle.com/en-us/iaas/tools/oci-ansible-collection/latest/guides/troubleshooting-guide.html"}
changed: [X.X.X.X -> localhost]

Expected behavior

Snapshot got deleted but did not expect getting 409 error. https://docs.oracle.com/en-us/iaas/Content/File/Reference/known-issues-for-file-storage.htm Explain I might encounter Compartment Quotas feature. But then it is strange snapshot got deleted.

Environment

Ansible playbook to reproduce the issue

- name: Delete snapshot
  oracle.oci.oci_file_storage_snapshot:
    snapshot_id: "ocid1.snapshot.oc1..xxxxxxEXAMPLExxxxxx"
    state: absent
phamp890 commented 6 months ago

I'm not getting 409 error anymore. Seems like it was "Compartment Quotas feature" causing 409 error. Closing this ticket.