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
{{ message }}
Repository navigation
VCN delete reports connection timeout but operation actually succeeds in the background #1112
oci network vcn delete intermittently returns a RequestException: The connection to endpoint timed out error, but the actual delete operation succeeds in the background. Naive retries then succeed immediately with "already deleted" rather than failing. This makes the timeout error misleading — it reports a failure when the operation actually completed.
Steps to Reproduce
Create a VCN with no attached gateways.
Delete the VCN:
oci network vcn delete --vcn-id $VCN_ID --force
Observe intermittent timeout errors:
RequestException: The connection to endpoint timed out.
Request timed out (the operation may have succeeded) — suggest the user verify state before retrying.
Operation failed (the API returned an error) — the delete did not happen.
A clear message like:
Request timed out. The delete operation may have completed in the background.
Verify with: oci network vcn get --vcn-id $VCN_ID
Actual Behaviour
The error message The connection to endpoint timed out is identical to a real failure, leading users to:
Retry naively (which succeeds immediately, wasting time on unnecessary retries).
Or worse, assume the delete failed and take incorrect remediation steps.
Impact
During a large infrastructure teardown session, we saw this timeout repeatedly on vcn delete commands. Each time, the delete actually succeeded but we had to verify manually, adding unnecessary friction to the workflow.
Suggested Fix
Distinguish "request timed out" from "operation failed" in the error output.
When a timeout occurs on a delete/update operation, include guidance to verify state before retrying: "The request timed out. The operation may have completed. Verify with 'oci <resource> get' before retrying."
Consider implementing a short post-timeout verification check (e.g., poll the resource state once after timeout) to give a definitive answer.
Activity