Project

General

Profile

Bug #20971

rgw opslog didn't compatible with s3

Added by Jiaying Ren over 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08/10/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

rgw opslog uri didn't record the query string and http version,which didn't match AWS S31:

root@ceph-node1# (git::fix-full-uri) curl -v -X GET 'http://localhost:8000/111/666666666666666666666?id=3'

root@ceph-node1# (git::fix-full-uri) ./bin/radosgw-admin -c ceph.conf log show --object=2017-08-10-16-8795f271-b4aa-4f30-8602-55b6daf1f523.4106.1-111

{
"bucket": "111",
"time": "2017-08-10 08:20:10.168400Z",
"time_local": "2017-08-10 16:20:10.168400",
"remote_addr": "",
"user": "anonymous",
"operation": "GET",
"uri": "/111/666666666666666666666",
"http_status": "403",
"error_code": "AccessDenied",
"bytes_sent": 213,
"bytes_received": 0,
"object_size": 0,
"total_time": 1568719,
"user_agent": "curl/7.29.0",
"referrer": ""
}

[1] http://docs.aws.amazon.com/AmazonS3/latest/dev/LogFormat.html Section Request-URI


Related issues

Copied to Ceph - Backport #22622: luminous: rgw opslog didn't compatible with s3 Resolved

History

#1 Updated by Jiaying Ren over 1 year ago

Fixed:

root@ceph-node1# (git::fix-full-uri) ./bin/radosgw-admin -c ceph.conf log {
"bucket_id": "8795f271-b4aa-4f30-8602-55b6daf1f523.4106.1",
"bucket_owner": "testid",
"bucket": "111",
"log_entries": [ {
"
}, {
"bucket": "111",
"time": "2017-08-10 08:20:10.168400Z",
"time_local": "2017-08-10 16:20:10.168400",
"remote_addr": "",
"user": "anonymous",
"operation": "GET",
"uri": "GET /111/666666666666666666666?id=3 HTTP/1.1",
"http_status": "403",
"error_code": "AccessDenied",
"bytes_sent": 213,
"bytes_received": 0,
"object_size": 0,
"total_time": 1568719,
"user_agent": "curl/7.29.0",
"referrer": ""
}
],
"log_sum": {
"bytes_sent": 213,
"bytes_received": 0,
"total_time": 3749027,
"total_entries": 2
}
}

https://github.com/ceph/ceph/pull/16958

#2 Updated by Jos Collin over 1 year ago

  • Status changed from New to In Progress

#3 Updated by Yuri Weinstein over 1 year ago

Jiaying Ren wrote:

https://github.com/ceph/ceph/pull/16958

merged

#4 Updated by Casey Bodley about 1 year ago

  • Status changed from In Progress to Pending Backport
  • Backport set to luminous

#5 Updated by Casey Bodley about 1 year ago

  • Copied to Backport #22622: luminous: rgw opslog didn't compatible with s3 added

#6 Updated by Nathan Cutler 12 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF