Re: [ceph-users] rgw s3website issue
Hi Yehuda, What is the difference between two ? Aren't the static websites same as s3 as s3 hosts static websites only . Hi Robin, I am using the master only. The document would be great. I am thinking it is a config issue only. With your document, it should get cleared up. How does the resolve actually happen ? Does it need to listen on port number 80 too ? Thanks a lot for your time, Gaurav On Mon, May 30, 2016 at 5:54 AM, Robin H. Johnsonwrote: > On Sun, May 29, 2016 at 05:17:14PM +0530, Gaurav Bafna wrote: >> Hi Cephers, >> >> I am unable to create bucket hosting a webstite in my vstart cluster. >> >> When I do this in boto : >> >> website_bucket.configure_website('index.html','error.html') >> >> I get : >> >> boto.exception.S3ResponseError: S3ResponseError: 405 Method Not Allowed > What release are you running? The fix for this is only merged in master > presently, the backport has not been merged yet: > https://github.com/ceph/ceph/pull/9245 > > You'll also want: > https://github.com/ceph/ceph/pull/9354 > > The names must be actual hostnames, not IPs, unless you happen to have > some magic so that http://foo.10.140.13.22/ happens to resolve. > > I promise to write up a public document tommorow on running s3website on > your own environments (I _strongly_ recommend two separate IPs for it). > > -- > Robin Hugh Johnson > Gentoo Linux: Dev, Infra Lead, Foundation Trustee & Treasurer > E-Mail : robb...@gentoo.org > GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 > GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136 -- Gaurav Bafna 9540631400 ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] rgw s3website issue
On Sun, May 29, 2016 at 4:47 AM, Gaurav Bafnawrote: > Hi Cephers, > > I am unable to create bucket hosting a webstite in my vstart cluster. > > When I do this in boto : > > website_bucket.configure_website('index.html','error.html') > > I get : > > boto.exception.S3ResponseError: S3ResponseError: 405 Method Not Allowed > > > Here is my ceph.conf for radosgw: > > rgw frontends = fastcgi, civetweb port=8010 > > rgw enable static website = true > > rgw dns name = 10.140.13.22 > > rgw dns s3website name = 10.140.13.22 > > > Here are the logs in rgw : > > 2016-05-29 00:00:47.191297 7ff404ff9700 1 == starting new request > req=0x7ff404ff37d0 = > > 2016-05-29 00:00:47.191325 7ff404ff9700 2 req 1:0.28::PUT > /s3website/::initializing for trans_id = > tx1-005749967f-101f-default > > 2016-05-29 00:00:47.191330 7ff404ff9700 10 host=10.140.13.22 > > 2016-05-29 00:00:47.191338 7ff404ff9700 20 subdomain= > domain=10.140.13.22 in_hosted_domain=1 in_hosted_domain_s3website=1 > Could it be that the endpoint is configured to serve both S3 and static websites? Yehuda > 2016-05-29 00:00:47.191350 7ff404ff9700 5 the op is PUT > > 2016-05-29 00:00:47.191395 7ff404ff9700 20 get_handler > handler=32RGWHandler_REST_Bucket_S3Website > > 2016-05-29 00:00:47.191399 7ff404ff9700 10 > handler=32RGWHandler_REST_Bucket_S3Website > > 2016-05-29 00:00:47.191401 7ff404ff9700 2 req 1:0.000104:s3:PUT > /s3website/::getting op 1 > > 2016-05-29 00:00:47.191410 7ff404ff9700 10 > RGWHandler_REST_S3Website::error_handler err_no=-2003 http_ret=405 > > 2016-05-29 00:00:47.191412 7ff404ff9700 20 No special error handling today! > > 2016-05-29 00:00:47.191415 7ff404ff9700 20 handler->ERRORHANDLER: > err_no=-2003 new_err_no=-2003 > > 2016-05-29 00:00:47.191504 7ff404ff9700 2 req 1:0.000207:s3:PUT > /s3website/::op status=0 > > 2016-05-29 00:00:47.191510 7ff404ff9700 2 req 1:0.000213:s3:PUT > /s3website/::http status=405 > > 2016-05-29 00:00:47.191511 7ff404ff9700 1 == req done > req=0x7ff404ff37d0 op status=0 http_status=405 == > > > Code wise I see that put_op is not defined for > RGWHandler_REST_S3Website class but is defined for > RGWHandler_REST_Bucket_S3 class . > > Can somebody please help me out ? > > > > > -- > Gaurav Bafna > 9540631400 > ___ > 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
[ceph-users] rgw s3website issue
Hi Cephers, I am unable to create bucket hosting a webstite in my vstart cluster. When I do this in boto : website_bucket.configure_website('index.html','error.html') I get : boto.exception.S3ResponseError: S3ResponseError: 405 Method Not Allowed Here is my ceph.conf for radosgw: rgw frontends = fastcgi, civetweb port=8010 rgw enable static website = true rgw dns name = 10.140.13.22 rgw dns s3website name = 10.140.13.22 Here are the logs in rgw : 2016-05-29 00:00:47.191297 7ff404ff9700 1 == starting new request req=0x7ff404ff37d0 = 2016-05-29 00:00:47.191325 7ff404ff9700 2 req 1:0.28::PUT /s3website/::initializing for trans_id = tx1-005749967f-101f-default 2016-05-29 00:00:47.191330 7ff404ff9700 10 host=10.140.13.22 2016-05-29 00:00:47.191338 7ff404ff9700 20 subdomain= domain=10.140.13.22 in_hosted_domain=1 in_hosted_domain_s3website=1 2016-05-29 00:00:47.191350 7ff404ff9700 5 the op is PUT 2016-05-29 00:00:47.191395 7ff404ff9700 20 get_handler handler=32RGWHandler_REST_Bucket_S3Website 2016-05-29 00:00:47.191399 7ff404ff9700 10 handler=32RGWHandler_REST_Bucket_S3Website 2016-05-29 00:00:47.191401 7ff404ff9700 2 req 1:0.000104:s3:PUT /s3website/::getting op 1 2016-05-29 00:00:47.191410 7ff404ff9700 10 RGWHandler_REST_S3Website::error_handler err_no=-2003 http_ret=405 2016-05-29 00:00:47.191412 7ff404ff9700 20 No special error handling today! 2016-05-29 00:00:47.191415 7ff404ff9700 20 handler->ERRORHANDLER: err_no=-2003 new_err_no=-2003 2016-05-29 00:00:47.191504 7ff404ff9700 2 req 1:0.000207:s3:PUT /s3website/::op status=0 2016-05-29 00:00:47.191510 7ff404ff9700 2 req 1:0.000213:s3:PUT /s3website/::http status=405 2016-05-29 00:00:47.191511 7ff404ff9700 1 == req done req=0x7ff404ff37d0 op status=0 http_status=405 == Code wise I see that put_op is not defined for RGWHandler_REST_S3Website class but is defined for RGWHandler_REST_Bucket_S3 class . Can somebody please help me out ? -- Gaurav Bafna 9540631400 ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com