On Mon, Sep 16, 2013 at 9:47 AM, Pawel Stefanski <pejotes@xxxxxxxxx> wrote: > ceph version 0.67.3 (408cd61584c72c0d97b774b3d8f95c6b1b06341a) That one doesn't have the required fix, which will be in 0.67.4. Yehuda > > 16 wrz 2013 18:40, "Yehuda Sadeh" <yehuda@xxxxxxxxxxx> napisał(a): > >> On Mon, Sep 16, 2013 at 9:29 AM, Pawel Stefanski <pejotes@xxxxxxxxx> >> wrote: >> > hello! >> > >> > Thanks for answer! >> > >> > My mistake ;-), >> > Correct OPTIONS request in >> > http://pastebin.com/MmRtTgiZ >> >> >> That might have been fixed by the latest commit to dumpling. What >> version are you running? >> >> > also with Ceph -v. >> > static33 bucket was made on 0.67. >> > >> > best regards! >> > >> > >> > On Mon, Sep 16, 2013 at 5:46 PM, Yehuda Sadeh <yehuda@xxxxxxxxxxx> >> > wrote: >> >> >> >> On Mon, Sep 16, 2013 at 3:46 AM, Pawel Stefanski <pejotes@xxxxxxxxx> >> >> wrote: >> >> > hello all! >> >> > >> >> > Once again sorry for delay: >> >> > all dumps are in >> >> > http://pastebin.com/dBnEsWpW >> >> > >> >> > btw. I saw second commit to dumpling >> >> > http://tracker.ceph.com/issues/6078, >> >> > anything more changed ? >> >> > best regards! >> >> >> >> I pushed an extra fix to the CORS issues that you might have been >> >> seeing, so it's worth checking it out. >> >> >> >> As for the logs that you provide, you create a bucket named static33 >> >> on which you set CORS, but the OPTIONS request goes to a bucket named >> >> static3, so obviously it doesn't work. >> >> >> >> >> >> Yehuda >> >> > -- >> >> > pawel >> >> > >> >> > >> >> > On Fri, Sep 6, 2013 at 5:11 PM, Yehuda Sadeh <yehuda@xxxxxxxxxxx> >> >> > wrote: >> >> >> >> >> >> Can you provide a log that includes the bucket creation, CORS >> >> >> settings >> >> >> and the OPTIONS call? It'd be best if you could do it with also >> >> >> 'debug >> >> >> ms = 1'. >> >> >> >> >> >> Thanks, >> >> >> Yehuda >> >> >> >> >> >> On Fri, Sep 6, 2013 at 7:54 AM, Paweł Stefański <pejotes@xxxxxxxxx> >> >> >> wrote: >> >> >> > Sorry for delay, >> >> >> > >> >> >> > static3 bucket was created on 0.56 afair, I've tested the same >> >> >> > operation >> >> >> > with fresh bucket created now on dumpling, and the problem still >> >> >> > occurs. >> >> >> > >> >> >> > regards! >> >> >> > -- >> >> >> > pawel >> >> >> > >> >> >> > >> >> >> > On 04.09.2013 20:15, Yehuda Sadeh wrote: >> >> >> >> >> >> >> >> Is static3 a bucket that you created before the upgrade? Can you >> >> >> >> test >> >> >> >> it with newly created buckets? Might be that you're hitting some >> >> >> >> other >> >> >> >> issue. >> >> >> >> >> >> >> >> Thanks, >> >> >> >> Yehuda >> >> >> >> >> >> >> >> On Tue, Sep 3, 2013 at 11:19 PM, Pawel Stefanski >> >> >> >> <pejotes@xxxxxxxxx> >> >> >> >> wrote: >> >> >> >>> >> >> >> >>> hello! >> >> >> >>> >> >> >> >>> yes, dns name is configured and working perfectly, the bucket >> >> >> >>> (in >> >> >> >>> this >> >> >> >>> example static3) is found actually, but RGW can't read CORS >> >> >> >>> configuration >> >> >> >>> due some reason. >> >> >> >>> >> >> >> >>> 2013-09-04 08:07:46.082740 7ff4bf7ee700 2 req >> >> >> >>> 10:0.000275:s3:OPTIONS >> >> >> >>> /::getting op >> >> >> >>> 2013-09-04 08:07:46.082745 7ff4bf7ee700 2 req >> >> >> >>> 10:0.000280:s3:OPTIONS >> >> >> >>> /:options_cors:authorizing >> >> >> >>> 2013-09-04 08:07:46.082753 7ff4bf7ee700 2 req >> >> >> >>> 10:0.000287:s3:OPTIONS >> >> >> >>> /:options_cors:reading permissions >> >> >> >>> 2013-09-04 08:07:46.082790 7ff4bf7ee700 20 get_obj_state: >> >> >> >>> rctx=0x7ff4f8003400 obj=.rgw:static3 state=0x7ff4f8005968 >> >> >> >>> s->prefetch_data=0 >> >> >> >>> 2013-09-04 08:07:46.082810 7ff4bf7ee700 10 moving .rgw+static3 >> >> >> >>> to >> >> >> >>> cache >> >> >> >>> LRU >> >> >> >>> end >> >> >> >>> 2013-09-04 08:07:46.082819 7ff4bf7ee700 10 cache get: >> >> >> >>> name=.rgw+static3 : >> >> >> >>> hit >> >> >> >>> 2013-09-04 08:07:46.082840 7ff4bf7ee700 20 get_obj_state: >> >> >> >>> s->obj_tag >> >> >> >>> was >> >> >> >>> set >> >> >> >>> empty >> >> >> >>> 2013-09-04 08:07:46.082845 7ff4bf7ee700 20 Read xattr: >> >> >> >>> user.rgw.acl >> >> >> >>> 2013-09-04 08:07:46.082847 7ff4bf7ee700 20 Read xattr: >> >> >> >>> user.rgw.cors >> >> >> >>> 2013-09-04 08:07:46.082848 7ff4bf7ee700 20 Read xattr: >> >> >> >>> user.rgw.idtag >> >> >> >>> 2013-09-04 08:07:46.082849 7ff4bf7ee700 20 Read xattr: >> >> >> >>> user.rgw.manifest >> >> >> >>> 2013-09-04 08:07:46.082855 7ff4bf7ee700 10 moving .rgw+static3 >> >> >> >>> to >> >> >> >>> cache >> >> >> >>> LRU >> >> >> >>> end >> >> >> >>> 2013-09-04 08:07:46.082857 7ff4bf7ee700 10 cache get: >> >> >> >>> name=.rgw+static3 : >> >> >> >>> hit >> >> >> >>> 2013-09-04 08:07:46.082898 7ff4bf7ee700 20 rgw_get_bucket_info: >> >> >> >>> old >> >> >> >>> bucket >> >> >> >>> info, bucket=static3(@.rgw.buckets2[99137.2]) owner pejotes >> >> >> >>> 2013-09-04 08:07:46.082921 7ff4bf7ee700 15 Read >> >> >> >>> AccessControlPolicy<AccessControlPolicy >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>pejotes</ID><DisplayName>ofe</DisplayName></Owner><AccessControlList><Grant><Grantee >> >> >> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> xsi:type="Group"><URI>http://acs.amazonaws.com/groups/global/AllUsers</URI></Grantee><Permission>FULL_CONTROL</Permission></Grant><Grant><Grantee >> >> >> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> xsi:type="CanonicalUser"><ID>pejotes</ID><DisplayName>ofe</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy> >> >> >> >>> 2013-09-04 08:07:46.082943 7ff4bf7ee700 15 Read >> >> >> >>> AccessControlPolicy<AccessControlPolicy >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>pejotes</ID><DisplayName>ofe</DisplayName></Owner><AccessControlList><Grant><Grantee >> >> >> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> xsi:type="Group"><URI>http://acs.amazonaws.com/groups/global/AllUsers</URI></Grantee><Permission>FULL_CONTROL</Permission></Grant><Grant><Grantee >> >> >> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> xsi:type="CanonicalUser"><ID>pejotes</ID><DisplayName>ofe</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy> >> >> >> >>> 2013-09-04 08:07:46.082951 7ff4bf7ee700 2 req >> >> >> >>> 10:0.000486:s3:OPTIONS >> >> >> >>> /:options_cors:verifying op mask >> >> >> >>> 2013-09-04 08:07:46.082955 7ff4bf7ee700 20 required_mask= 1 >> >> >> >>> user.op_mask=7 >> >> >> >>> 2013-09-04 08:07:46.082957 7ff4bf7ee700 2 req >> >> >> >>> 10:0.000492:s3:OPTIONS >> >> >> >>> /:options_cors:verifying op permissions >> >> >> >>> 2013-09-04 08:07:46.082960 7ff4bf7ee700 2 req >> >> >> >>> 10:0.000495:s3:OPTIONS >> >> >> >>> /:options_cors:verifying op params >> >> >> >>> 2013-09-04 08:07:46.082963 7ff4bf7ee700 2 req >> >> >> >>> 10:0.000498:s3:OPTIONS >> >> >> >>> /:options_cors:executing >> >> >> >>> 2013-09-04 08:07:46.082966 7ff4bf7ee700 2 No CORS configuration >> >> >> >>> set >> >> >> >>> yet >> >> >> >>> for >> >> >> >>> this bucket >> >> >> >>> 2013-09-04 08:07:46.083105 7ff4bf7ee700 2 req >> >> >> >>> 10:0.000640:s3:OPTIONS >> >> >> >>> /:options_cors:http status=403 >> >> >> >>> 2013-09-04 08:07:46.083548 7ff4bf7ee700 1 ====== req done >> >> >> >>> req=0xbcd910 >> >> >> >>> http_status=403 ====== >> >> >> >>> >> >> >> >>> best regards! >> >> >> >>> -- >> >> >> >>> pawel >> >> >> >>> >> >> >> >>> >> >> >> >>> On Tue, Sep 3, 2013 at 5:17 PM, Yehuda Sadeh >> >> >> >>> <yehuda@xxxxxxxxxxx> >> >> >> >>> wrote: >> >> >> >>>> >> >> >> >>>> On Tue, Sep 3, 2013 at 3:40 AM, Pawel Stefanski >> >> >> >>>> <pejotes@xxxxxxxxx> >> >> >> >>>> wrote: >> >> >> >>>>> >> >> >> >>>>> hello! >> >> >> >>>>> >> >> >> >>>>> I've tried with wip-6078 and git dumpling builds and got the >> >> >> >>>>> same >> >> >> >>>>> error >> >> >> >>>>> during OPTIONS request. >> >> >> >>>>> >> >> >> >>>>> curl -v -X OPTIONS -H 'Access-Control-Request-Method: PUT' -H >> >> >> >>>>> "Origin: >> >> >> >>>>> http://XXXXX.pl" http://static3.XXXXX.pl/ >> >> >> >>>>> >> >> >> >>>>>> OPTIONS / HTTP/1.1 >> >> >> >>>>>> User-Agent: curl/7.31.0 >> >> >> >>>>>> Host: static3.XXXXX.pl >> >> >> >>>>>> Accept: */* >> >> >> >>>>>> Access-Control-Request-Method: PUT >> >> >> >>>>>> Origin: http://XXXXX.pl >> >> >> >>>>>> >> >> >> >>>>> < HTTP/1.1 403 Forbidden >> >> >> >>>>> < Date: Tue, 03 Sep 2013 09:34:39 GMT >> >> >> >>>>> * Server Apache/2.2.22 (Ubuntu) is not blacklisted >> >> >> >>>>> < Server: Apache/2.2.22 (Ubuntu) >> >> >> >>>>> < Accept-Ranges: bytes >> >> >> >>>>> < Content-Length: 78 >> >> >> >>>>> < Content-Type: application/xml >> >> >> >>>>> < >> >> >> >>>>> <?xml version="1.0" >> >> >> >>>>> encoding="UTF-8"?><Error><Code>AccessDenied</Code></Error> >> >> >> >>>>> >> >> >> >>>>> Of course CORS was set, but RGW can't find it, dump from log: >> >> >> >>>> >> >> >> >>>> >> >> >> >>>> Did you configure the virtual bucket name through host name >> >> >> >>>> correctly? >> >> >> >>>> For that you would have needed to set 'rgw dns name' in your >> >> >> >>>> ceph.conf. It seems as if it's not set and you're using it. >> >> >> >>>> >> >> >> >>>> Yehuda >> >> >> >>> >> >> >> >>> >> >> >> > >> >> > >> >> > >> > >> > _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com