Description
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.
- Retry the same command:
oci network vcn delete --vcn-id $VCN_ID --force
# Succeeds immediately (resource already deleted)
Expected Behaviour
The CLI should distinguish between:
- 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.
Description
oci network vcn deleteintermittently returns aRequestException: The connection to endpoint timed outerror, 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
oci network vcn delete --vcn-id $VCN_ID --forceExpected Behaviour
The CLI should distinguish between:
A clear message like:
Actual Behaviour
The error message
The connection to endpoint timed outis identical to a real failure, leading users to:Impact
During a large infrastructure teardown session, we saw this timeout repeatedly on
vcn deletecommands. Each time, the delete actually succeeded but we had to verify manually, adding unnecessary friction to the workflow.Suggested Fix
"The request timed out. The operation may have completed. Verify with 'oci <resource> get' before retrying."