-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 Use tcpdump httprequest find something wrong #386
Comments
@wangmingshuai can you explain a bit more? |
@alimoeeny hi , thank you for focus Before i start the registry,i use “tcpdump -i eno16777736 tcp port 80 -w newtcpdump” the capture some data,then i use “docker run -it --net=host -v /data/config:/etc/ceph registry:2 /etc/ceph/config.yml”,since i don't have valid accesskey and secretkey of aws s3, registry log print 403 forbidden. But,when using wireshark to analysis the tcpdump ,i found the http request should be: then,i want to find something, in s3/s3.go line 1154: actually,i want to use ceph-radosgw as the storage of registry v2,but registry abandon the way of "ceph-s3 " ,so i use the way of "s3",then i add a region in aws/regions.go ,and register it in aws/aws.go,when i start my registry ,the log show 400 bad request,just because the wrong thing we see in the tcpdump file;also ceph do not support "x-amz-copy-source-range",any idea? |
in s3/s3.go line 1108 : ... i use the code below instead the code above , it worked! hreq, _ := http.NewRequest(req.method, u.String(), nil) .... return hreq,nil can you find something? @alimoeeny |
So, @wangmingshuai I am not sure if I understand the problem. But in either case, if you want to send a pull request that solves the problem, specially if you can provide a test for it as well, I'd be very happy to accept it. |
@alimoeeny hi now ,you use wireshark to analysis the dump file "tcpdump", you can find some bad requests: |
@alimoeeny |
hresp, err := c.Do(hreq)
hreq:
Full Request URI with double hosts,how can I fix this?
The text was updated successfully, but these errors were encountered: