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" <xiaoquqi@xxxxxxxxx> 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.cfggloballog /dev/log local0log /dev/log local1 noticechroot /var/lib/haproxyuser haproxygroup haproxydaemonstats socket /var/lib/haproxy/stats level admindefaultslog globalmode httpoption httplogoption dontlognulltimeout connect 5000timeout client 50000timeout server 50000frontend http_frontendbind *:8080mode httpoption httpcloseoption forwardfordefault_backend web_serverbackend web_servermode httpbalance roundrobincookie RADOSGWLB insert indirect nocache----------------------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:8080DEBUG: ConnMan.get(): creating new connection: http://mys3.seed.econe.com:8080DEBUG: 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: 82DEBUG: HttpHeader: set-cookie: RADOSGWLB=node-78cb.econe.com; path=/DEBUG: HttpHeader: accept-ranges: bytesDEBUG: HttpHeader: connection: closeDEBUG: HttpHeader: date: Wed, 05 Aug 2015 15:38:56 GMTDEBUG: HttpHeader: content-type: application/xmlDEBUG: ErrorXML: Code: 'MethodNotAllowed'ERROR: S3 error: 405 (MethodNotAllowed):Best Regards
-- Ray
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com