Hi Marc,

It looks to me, from the naming of the test users here, as if you are
being guided by the information here:

  http://docs.ceph.com/docs/master/radosgw/multitenancy/

which I think is the right starting point.  The distinction is that
the "test" in "test$tester1" and "test2" in "test2$tester3" are
distinct tenants, and the bit I -think- you're looking for is the
syntax for identifying the tenant explicitly in a URL.

"In case of S3, a colon character is used to separate tenant and bucket"

Matt

On Wed, Mar 28, 2018 at 8:14 AM, Marc Roos <m.r...@f1-outsourcing.eu> wrote:
>
> I created these users with radosgw-admin
> [
>     "test2$tester3",
>     "test$tester1",
>     "test$tester2"
> ]
>
> test$tester1 has created bucket test, and in this bucket file test.txt
>
> test$tester2 cannot create a bucket test
>
> test2$tester3 has created bucket test, and in this bucket file test.txt
>
> There must be something in this http://objects.local/test/test.txt that
> identifies if I would like to have the test.txt file of $tester1 or
> $tester3? Maybe something like
> http://objects.local/test/test.txt?ACCESSKEY=tester3key ?
>
> This is what I get now
> <Error>
> <Code>NoSuchBucket</Code>
> <BucketName>test</BucketName>
> <RequestId>tx000000000000000000101-005abb84b5-2d8dc8-default</RequestId>
> <HostId>2d8dc8-default-default</HostId>
> </Error>
>
>
>
> -----Original Message-----
> From: Wido den Hollander [mailto:w...@42on.com]
> Sent: woensdag 28 maart 2018 13:45
> To: ceph-users@lists.ceph.com
> Subject: Re: [ceph-users] Getting a public file from radosgw
>
>
>
> On 03/28/2018 12:53 PM, Marc Roos wrote:
>> There must be in the wget/curl url some userid/unique identification
>> not? Otherwise it could be anybodies test bucket/file?
>
> Let's say you have 'objects.local' as hostname.
>
> You can then fetch the object:
>
> - http://test.objects.local/test.txt
> - http://objects.local/test/test.txt
>
> Both should work.
>
> Wido
>
>>
>>
>> [marc@os0 ~]$ s3cmd info s3://test/test.txt s3://test/test.txt
>> (object):
>>    File size: 15
>>    Last mod:  Wed, 28 Mar 2018 10:49:00 GMT
>>    MIME type: text/plain
>>    Storage:   STANDARD
>>    MD5 sum:   120ea8a25e5d487bf68b5f7096440019
>>    SSE:       none
>>    policy:    none
>>    cors:      none
>>    ACL:       *anon*: READ
>>    ACL:       Test1 User: FULL_CONTROL
>>    URL:       http://192.168.1.111:7480/test/test.txt
>> [marc@os0 ~]$ s3cmd info s3://test/
>> s3://test/ (bucket):
>>    Location:  us-east-1
>>    Payer:     BucketOwner
>>    Expiration Rule: none
>>    policy:    none
>>    cors:      none
>>    ACL:       *anon*: READ
>>    ACL:       Test1 User: FULL_CONTROL
>>    URL:       http://192.168.1.111:7480/test/
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Wido den Hollander [mailto:w...@42on.com]
>> Sent: woensdag 28 maart 2018 12:05
>> To: ceph-users@lists.ceph.com
>> Subject: Re: [ceph-users] Getting a public file from radosgw
>>
>>
>>
>> On 03/28/2018 11:59 AM, Marc Roos wrote:
>>>
>>>
>>>
>>>
>>>
>>> Do you have maybe some pointers, or example? ;)
>>>
>>
>> When you upload using s3cmd try using the -P flag, that will set the
>> public-read ACL.
>>
>> Wido
>>
>>> This XML file does not appear to have any style information
>>> associated
>>
>>> with it. The document tree is shown below.
>>>
>>>
>> <Error><Code>NoSuchBucket</Code><BucketName>test</BucketName><RequestI
>> d>
>>>
>> tx0000000000000000000bb-005abb6720-2d8dc8-default</RequestId><HostId>2
>> d8
>>> dc8-default-default</HostId></Error>
>>>
>>>
>>> -----Original Message-----
>>> From: Jaroslaw Owsiewski [mailto:jaroslaw.owsiew...@allegro.pl]
>>> Sent: woensdag 28 maart 2018 11:49
>>> To: Marc Roos
>>> Cc: ceph-users
>>> Subject: Re: [ceph-users] Getting a public file from radosgw
>>>
>>> Yes. File should have "public-read" permissions.
>>>
>>> Regards
>>> --
>>> Jarek
>>>
>>> 2018-03-28 11:41 GMT+02:00 Marc Roos <m.r...@f1-outsourcing.eu>:
>>>
>>>
>>>
>>>
>>>      Is it possible to get a file directly from a bucket without
>>>      authenticating
>>>
>>>      With something like wget
>>> https://radosgw.example.com/user/bucket/file
>>> <https://radosgw.example.com/user/bucket/file>  or
>>>      https://radosgw.example.com/uniqueid
>>> <https://radosgw.example.com/uniqueid>
>>>      _______________________________________________
>>>      ceph-users mailing list
>>>      ceph-users@lists.ceph.com
>>>      http://lists.ceph.com/listinfo.cgi/ceph-users-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 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 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
>
>



-- 

Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-821-5101
fax.  734-769-8938
cel.  734-216-5309
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to