Actions
Bug #82075
open
RN
RN
rgw: distinct S3 error codes and error_ret in ops log
Bug #82075:
rgw: distinct S3 error codes and error_ret in ops log
Due date:
% Done:
0%
Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Description
Summary¶
Operators correlate RGW ops logs (error_code, http_status) with client and proxy behavior. Several common failure modes map to UnknownError (HTTP 500) even though the daemon log shows a specific op status (e.g. -104 ECONNRESET after a load balancer reset during PUT). That makes dashboards and runbooks harder: quota rejections show QuotaExceeded while connection resets look like generic server failures.
Multipart and resharding cases share the same problem when internal errno or ERR_* values are not in rgw_http_s3_errors.
Proposal¶
- Add RGW-specific
ERR_RGW_*codes andrgw_http_error_map_key()to map transporterrno(e.g.ECONNRESET,EPIPE) to distinct S3Codestrings (ConnectionReset,BrokenPipe, …) instead ofUnknownError. MapEIOtoInternalError;ERR_BUSY_RESHARDINGtoBucketResharding(503). - Preserve the original internal value in ops logs: new
error_retfield onrgw_log_entry(encode struct v17), set froms->err.ret. - Use
ceph::from_error_code()forrgw::io::Exceptioninrecv_body/dump_bodyand selectedRGWPutObjpaths. - Document fields and codes in
doc/radosgw/ops-log.rst;PendingReleaseNotesbullet.
Testing¶
unittest_rgw_http_errors: map keys,set_req_state_errforECONNRESET,rgw_log_entryv17 round-trip.- Built and run in test environment (10/10 pass).
Notes¶
- New
Codestrings are for observability; they are not AWS S3 API extensions. Clients behind proxies may still see 502 without RGW XML. EBUSYon multipart lock remainsServiceUnavailable(503); useerror_ret=-16to distinguish from resharding.
RN Updated by Ramin Najarbashi about 1 month ago
- Assignee set to Ramin Najarbashi
RN Updated by Ramin Najarbashi about 1 month ago
- Pull request ID set to 73055
RN Updated by Ramin Najarbashi about 1 month ago
- Status changed from New to Fix Under Review
Fix in review: https://github.com/ceph/ceph/pull/73055 (S3 error codes + ops log error_ret). Status → Fix Under Review.
Actions