Why are you using cookies? Try without and see if it works.

Kobi Laredo
Cloud Systems Engineer | (408) 409-KOBI
On Aug 5, 2015 8:42 AM, "Ray Sun" <xiaoq...@gmail.com> wrote:

> Cephers,
> I try to use haproxy as a load balancer for my radosgw, but I always got
> 405 not allowed when I run s3cmd md s3://mys3 on my haproxy node. But it's
> ok on radosgw node. I think this is related to the DNS server, but I can't
> find any document to explain it. Please help.
>
> haproxy.cfg
> global
> log /dev/log local0
> log /dev/log local1 notice
> chroot /var/lib/haproxy
> user haproxy
> group haproxy
> daemon
>   stats socket /var/lib/haproxy/stats level admin
>
> defaults
> log global
> mode http
> option httplog
> option dontlognull
>   timeout connect 5000
>   timeout client 50000
>   timeout server 50000
>
> frontend http_frontend
> bind *:8080
> mode http
> option httpclose
> option forwardfor
> default_backend web_server
>
> backend web_server
> mode http
> balance roundrobin
> cookie RADOSGWLB insert indirect nocache
> server node-78cb.econe.com node-78cb.econe.com:80 check cookie
> node-78cb.econe.com
> #server node-8d80.econe.com node-8d80.econe.com:80 check cookie
> node-8d80.econe.com
>
> ----------------------
> DEBUG: signature-v4 headers: {'x-amz-content-sha256':
> 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
> 'Authorization': 'AWS4-HMAC-SHA256
> Credential=YUY2HWDKIP3D5T9OCO47/20150805/US/s3/aws4_request,SignedHeaders=host;x-amz-content-sha256;x-amz-date,Signature=b94711f50e21de6f6d00bdcc095b2ed575d9d690fd8f9c73a256cb2e8226c640',
> 'x-amz-date': '20150805T153856Z'}
> DEBUG: Processing request, please wait...
> DEBUG: get_hostname(mys3): mys3.seed.econe.com:8080
> DEBUG: ConnMan.get(): creating new connection:
> http://mys3.seed.econe.com:8080
> DEBUG: non-proxied HTTPConnection(mys3.seed.econe.com:8080)
> DEBUG: format_uri(): /
> DEBUG: Sending request method_string='PUT', uri='/',
> headers={'x-amz-content-sha256':
> 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
> 'Authorization': 'AWS4-HMAC-SHA256
> Credential=YUY2HWDKIP3D5T9OCO47/20150805/US/s3/aws4_request,SignedHeaders=host;x-amz-content-sha256;x-amz-date,Signature=b94711f50e21de6f6d00bdcc095b2ed575d9d690fd8f9c73a256cb2e8226c640',
> 'x-amz-date': '20150805T153856Z'}, body=(0 bytes)
> DEBUG: Response: {'status': 405, 'headers': {'content-length': '82',
> 'set-cookie': 'RADOSGWLB=node-78cb.econe.com; path=/', 'accept-ranges':
> 'bytes', 'connection': 'close', 'date': 'Wed, 05 Aug 2015 15:38:56 GMT',
> 'content-type': 'application/xml'}, 'reason': 'Method Not Allowed', 'data':
> '<?xml version="1.0"
> encoding="UTF-8"?><Error><Code>MethodNotAllowed</Code></Error>'}
> DEBUG: ConnMan.put(): connection put back to pool (
> http://mys3.seed.econe.com:8080#1)
> DEBUG: S3Error: 405 (Method Not Allowed)
> DEBUG: HttpHeader: content-length: 82
> DEBUG: HttpHeader: set-cookie: RADOSGWLB=node-78cb.econe.com; path=/
> DEBUG: HttpHeader: accept-ranges: bytes
> DEBUG: HttpHeader: connection: close
> DEBUG: HttpHeader: date: Wed, 05 Aug 2015 15:38:56 GMT
> DEBUG: HttpHeader: content-type: application/xml
> DEBUG: ErrorXML: Code: 'MethodNotAllowed'
> ERROR: S3 error: 405 (MethodNotAllowed):
>
> Best Regards
> -- Ray
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to