* RGW Swift questions
@ 2014-08-14 14:27 Luis Pabón
2014-08-14 15:02 ` Yehuda Sadeh
0 siblings, 1 reply; 5+ messages in thread
From: Luis Pabón @ 2014-08-14 14:27 UTC (permalink / raw)
To: Yehuda Sadeh, ceph-devel@vger.kernel.org
Hi Yehuda,
I am starting work on RGW and have a few questions:
* Why is the command 'user create' when I am sending '--subuser'. Seems
confusing. Is there a reason why we are not to use 'subuser create'?
* If I use "user create --subuser", the JSON returned shows the entry
for "subusers" is empty. What is subusers for? (This is related to the
previous question)
* Where do I place the OpenStack Tenant information?
* Is there a document which describes how to setup RGW for OpenStack Swift?
* The radosgw-admin help screen does not explain which options to use
for certain commands. Is this something that we should fix?
* On page: http://ceph.com/docs/master/radosgw/swift/auth/ , clicking on
"see radosgw-admin" does not work.
Please let me know if these are already answered in some document.
Regards,
Luis
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RGW Swift questions
2014-08-14 14:27 RGW Swift questions Luis Pabón
@ 2014-08-14 15:02 ` Yehuda Sadeh
2014-08-14 16:00 ` Luis Pabon
0 siblings, 1 reply; 5+ messages in thread
From: Yehuda Sadeh @ 2014-08-14 15:02 UTC (permalink / raw)
To: Luis Pabón; +Cc: ceph-devel@vger.kernel.org
On Thu, Aug 14, 2014 at 7:27 AM, Luis Pabón <lpabon@redhat.com> wrote:
>
> Hi Yehuda,
> I am starting work on RGW and have a few questions:
>
> * Why is the command 'user create' when I am sending '--subuser'. Seems
> confusing. Is there a reason why we are not to use 'subuser create'?
A subuser needs to have the containing user in order to be created.
The 'user create' command generates ones. The order of things would be
to create a user, then create a subuser for that user. By specifying
--subuser=.. on the user creation it should do both.
> * If I use "user create --subuser", the JSON returned shows the entry for
> "subusers" is empty. What is subusers for? (This is related to the previous
> question)
So I assume the subuser wasn't created?
The rgw user model follows the S3 user model which is a bit different
from the swift one. In S3 there's basically a single tenant, multiple
users. With swift there are multiple tenants (originally referred to
as 'accounts'), each have different users that share a similar view of
the system (e.g., share list of containers, etc.). The more natural
(although not perfect) mapping is by having an rgw user map to a swift
account. That's why we needed to add a second level of identification,
the subuser.
> * Where do I place the OpenStack Tenant information?
The tenant id should be the user name.
> * Is there a document which describes how to setup RGW for OpenStack Swift?
Not that I'm aware of. Basically rgw is set to work with both S3 and
Swift out of the box. Here's how to integrate with keystone:
http://ceph.com/docs/master/radosgw/keystone/
> * The radosgw-admin help screen does not explain which options to use for
> certain commands. Is this something that we should fix?
We should certainly improve documentation. This can either go into the
man page, or a complete rework of the usage help.
> * On page: http://ceph.com/docs/master/radosgw/swift/auth/ , clicking on
> "see radosgw-admin" does not work.
I opened issue #9116.
Thanks,
Yehuda
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RGW Swift questions
2014-08-14 15:02 ` Yehuda Sadeh
@ 2014-08-14 16:00 ` Luis Pabon
2014-08-14 16:40 ` Yehuda Sadeh
0 siblings, 1 reply; 5+ messages in thread
From: Luis Pabon @ 2014-08-14 16:00 UTC (permalink / raw)
To: Yehuda Sadeh; +Cc: ceph-devel
Thanks for the quick turnaround Yehuda. I have just a few more comments below:
----- Original Message -----
From: "Yehuda Sadeh" <yehuda@redhat.com>
To: "Luis Pabón" <lpabon@redhat.com>
Cc: ceph-devel@vger.kernel.org
Sent: Thursday, August 14, 2014 11:02:06 AM
Subject: Re: RGW Swift questions
On Thu, Aug 14, 2014 at 7:27 AM, Luis Pabón <lpabon@redhat.com> wrote:
>
> Hi Yehuda,
> I am starting work on RGW and have a few questions:
>
> * Why is the command 'user create' when I am sending '--subuser'. Seems
> confusing. Is there a reason why we are not to use 'subuser create'?
A subuser needs to have the containing user in order to be created.
The 'user create' command generates ones. The order of things would be
to create a user, then create a subuser for that user. By specifying
--subuser=.. on the user creation it should do both.
[LP] Great, thank you
> * If I use "user create --subuser", the JSON returned shows the entry for
> "subusers" is empty. What is subusers for? (This is related to the previous
> question)
So I assume the subuser wasn't created?
The rgw user model follows the S3 user model which is a bit different
from the swift one. In S3 there's basically a single tenant, multiple
users. With swift there are multiple tenants (originally referred to
as 'accounts'), each have different users that share a similar view of
the system (e.g., share list of containers, etc.). The more natural
(although not perfect) mapping is by having an rgw user map to a swift
account. That's why we needed to add a second level of identification,
the subuser.
[LP] I will have to check why it is empty.
> * Where do I place the OpenStack Tenant information?
The tenant id should be the user name.
[LP] Cool, thanks. So if the tenant is the user name in RGW, what is the Swift user
map to?
> * Is there a document which describes how to setup RGW for OpenStack Swift?
Not that I'm aware of. Basically rgw is set to work with both S3 and
Swift out of the box. Here's how to integrate with keystone:
http://ceph.com/docs/master/radosgw/keystone/
> * The radosgw-admin help screen does not explain which options to use for
> certain commands. Is this something that we should fix?
We should certainly improve documentation. This can either go into the
man page, or a complete rework of the usage help.
> * On page: http://ceph.com/docs/master/radosgw/swift/auth/ , clicking on
> "see radosgw-admin" does not work.
I opened issue #9116.
Thanks,
Yehuda
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RGW Swift questions
2014-08-14 16:00 ` Luis Pabon
@ 2014-08-14 16:40 ` Yehuda Sadeh
2014-08-14 16:52 ` Luis Pabón
0 siblings, 1 reply; 5+ messages in thread
From: Yehuda Sadeh @ 2014-08-14 16:40 UTC (permalink / raw)
To: Luis Pabon; +Cc: ceph-devel
On Thu, Aug 14, 2014 at 9:00 AM, Luis Pabon <lpabon@redhat.com> wrote:
> Thanks for the quick turnaround Yehuda. I have just a few more comments below:
>
> ----- Original Message -----
> From: "Yehuda Sadeh" <yehuda@redhat.com>
> To: "Luis Pabón" <lpabon@redhat.com>
> Cc: ceph-devel@vger.kernel.org
> Sent: Thursday, August 14, 2014 11:02:06 AM
> Subject: Re: RGW Swift questions
>
> On Thu, Aug 14, 2014 at 7:27 AM, Luis Pabón <lpabon@redhat.com> wrote:
>>
>> Hi Yehuda,
>> I am starting work on RGW and have a few questions:
>>
>> * Why is the command 'user create' when I am sending '--subuser'. Seems
>> confusing. Is there a reason why we are not to use 'subuser create'?
>
> A subuser needs to have the containing user in order to be created.
> The 'user create' command generates ones. The order of things would be
> to create a user, then create a subuser for that user. By specifying
> --subuser=.. on the user creation it should do both.
>
> [LP] Great, thank you
>
>> * If I use "user create --subuser", the JSON returned shows the entry for
>> "subusers" is empty. What is subusers for? (This is related to the previous
>> question)
>
> So I assume the subuser wasn't created?
> The rgw user model follows the S3 user model which is a bit different
> from the swift one. In S3 there's basically a single tenant, multiple
> users. With swift there are multiple tenants (originally referred to
> as 'accounts'), each have different users that share a similar view of
> the system (e.g., share list of containers, etc.). The more natural
> (although not perfect) mapping is by having an rgw user map to a swift
> account. That's why we needed to add a second level of identification,
> the subuser.
>
> [LP] I will have to check why it is empty.
>
>
>> * Where do I place the OpenStack Tenant information?
> The tenant id should be the user name.
>
> [LP] Cool, thanks. So if the tenant is the user name in RGW, what is the Swift user
> map to?
It maps into the subuser.
Yehuda
>
>> * Is there a document which describes how to setup RGW for OpenStack Swift?
>
> Not that I'm aware of. Basically rgw is set to work with both S3 and
> Swift out of the box. Here's how to integrate with keystone:
> http://ceph.com/docs/master/radosgw/keystone/
>
>> * The radosgw-admin help screen does not explain which options to use for
>> certain commands. Is this something that we should fix?
>
> We should certainly improve documentation. This can either go into the
> man page, or a complete rework of the usage help.
>
>> * On page: http://ceph.com/docs/master/radosgw/swift/auth/ , clicking on
>> "see radosgw-admin" does not work.
>
> I opened issue #9116.
>
>
> Thanks,
> Yehuda
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RGW Swift questions
2014-08-14 16:40 ` Yehuda Sadeh
@ 2014-08-14 16:52 ` Luis Pabón
0 siblings, 0 replies; 5+ messages in thread
From: Luis Pabón @ 2014-08-14 16:52 UTC (permalink / raw)
To: Yehuda Sadeh; +Cc: ceph-devel
Great thanks!
- Luis
On 08/14/2014 12:40 PM, Yehuda Sadeh wrote:
> On Thu, Aug 14, 2014 at 9:00 AM, Luis Pabon <lpabon@redhat.com> wrote:
>> Thanks for the quick turnaround Yehuda. I have just a few more comments below:
>>
>> ----- Original Message -----
>> From: "Yehuda Sadeh" <yehuda@redhat.com>
>> To: "Luis Pabón" <lpabon@redhat.com>
>> Cc: ceph-devel@vger.kernel.org
>> Sent: Thursday, August 14, 2014 11:02:06 AM
>> Subject: Re: RGW Swift questions
>>
>> On Thu, Aug 14, 2014 at 7:27 AM, Luis Pabón <lpabon@redhat.com> wrote:
>>> Hi Yehuda,
>>> I am starting work on RGW and have a few questions:
>>>
>>> * Why is the command 'user create' when I am sending '--subuser'. Seems
>>> confusing. Is there a reason why we are not to use 'subuser create'?
>> A subuser needs to have the containing user in order to be created.
>> The 'user create' command generates ones. The order of things would be
>> to create a user, then create a subuser for that user. By specifying
>> --subuser=.. on the user creation it should do both.
>>
>> [LP] Great, thank you
>>
>>> * If I use "user create --subuser", the JSON returned shows the entry for
>>> "subusers" is empty. What is subusers for? (This is related to the previous
>>> question)
>> So I assume the subuser wasn't created?
>> The rgw user model follows the S3 user model which is a bit different
>> from the swift one. In S3 there's basically a single tenant, multiple
>> users. With swift there are multiple tenants (originally referred to
>> as 'accounts'), each have different users that share a similar view of
>> the system (e.g., share list of containers, etc.). The more natural
>> (although not perfect) mapping is by having an rgw user map to a swift
>> account. That's why we needed to add a second level of identification,
>> the subuser.
>>
>> [LP] I will have to check why it is empty.
>>
>>
>>> * Where do I place the OpenStack Tenant information?
>> The tenant id should be the user name.
>>
>> [LP] Cool, thanks. So if the tenant is the user name in RGW, what is the Swift user
>> map to?
> It maps into the subuser.
>
> Yehuda
>
>>> * Is there a document which describes how to setup RGW for OpenStack Swift?
>> Not that I'm aware of. Basically rgw is set to work with both S3 and
>> Swift out of the box. Here's how to integrate with keystone:
>> http://ceph.com/docs/master/radosgw/keystone/
>>
>>> * The radosgw-admin help screen does not explain which options to use for
>>> certain commands. Is this something that we should fix?
>> We should certainly improve documentation. This can either go into the
>> man page, or a complete rework of the usage help.
>>
>>> * On page: http://ceph.com/docs/master/radosgw/swift/auth/ , clicking on
>>> "see radosgw-admin" does not work.
>> I opened issue #9116.
>>
>>
>> Thanks,
>> Yehuda
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-08-14 16:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 14:27 RGW Swift questions Luis Pabón
2014-08-14 15:02 ` Yehuda Sadeh
2014-08-14 16:00 ` Luis Pabon
2014-08-14 16:40 ` Yehuda Sadeh
2014-08-14 16:52 ` Luis Pabón
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.