Re: rdosgw swift subuser creation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks that worked - you were close: 
This is another document issue on http://ceph.com/docs/next/radosgw/config/ , --gen-secret parameter requirement isn't mentioned.
	Enabling Swift Access
		Allowing access to the object store with Swift (OpenStack Object Storage) compatible clients requires an additional step; 
		namely, the creation of a subuser and a Swift access key.
		          sudo radosgw-admin subuser create --uid=johndoe --subuser=johndoe:swift --access=full
		          sudo radosgw-admin key create --subuser=johndoe:swift --key-type=swift

radosgw-admin key create   --subuser=rados:swift   --key-type=swift --gen-secret
2013-09-27 14:46:40.202708 7f25c5d70780  0 WARNING: cannot read region map
{ "user_id": "rados",
  "display_name": "rados",
  "email": "non@xxxxxxxx",
  "suspended": 0,
  "max_buckets": 1000,
  "auid": 0,
  "subusers": [
        { "id": "rados:swift",
          "permissions": "full-control"}],
  "keys": [
        { "user": "rados",
          "access_key": "R5F0D2UCSK3618DJ829A",
          "secret_key": "PJR1rvV2+Xrzlwo+AZZKXextsDl45EaLljzopgjD"}],
  "swift_keys": [
        { "user": "rados:swift",
          "secret_key": "77iJvemrxWvYk47HW7pxsL+eHdA53AtLl2T0OyuG"}],
  "caps": [],
  "op_mask": "read, write, delete",
  "default_placement": "",
  "placement_tags": []}
-----Original Message-----
From: Matt McNulty [mailto:mattm@xxxxxxxxxx] 
Sent: Friday, September 27, 2013 4:40 PM
To: Snider, Tim; ceph-users@xxxxxxxxxxxxxx
Subject: Re:  rdosgw swift subuser creation

Hi Tim,

Try adding --gen-key to your create command (you should be able to create a key for the subuser you already created).

Thanks,
Matt

On 9/27/13 4:35 PM, "Snider, Tim" <Tim.Snider@xxxxxxxxxx> wrote:

>I created an rdosgw user and swift subuser and attempted to generate a 
>key for the swift user. Using the commands below. However the swift key 
>was empty when the command completed. What did I miss?
>
>root@controller21:/etc# radosgw-admin user create --uid=rados 
>--display-name=rados --email=non@xxxxxxxx
>2013-09-27 13:34:08.155162 7f984f0a5780  0 WARNING: cannot read region 
>map { "user_id": "rados",
>  "display_name": "rados",
>  "email": "non@xxxxxxxx",
>  "suspended": 0,
>  "max_buckets": 1000,
>  "auid": 0,
>  "subusers": [],
>  "keys": [
>        { "user": "rados",
>          "access_key": "R5F0D2UCSK3618DJ829A",
>          "secret_key": "PJR1rvV2+Xrzlwo+AZZKXextsDl45EaLljzopgjD"}],
>  "swift_keys": [],
>  "caps": [],
>  "op_mask": "read, write, delete",
>  "default_placement": "",
>  "placement_tags": []}
>
>root@controller21:/etc# radosgw-admin subuser create  --uid=rados
>--subuser=rados:swift   --key-type=swift --access=full
>2013-09-27 13:34:58.761911 7f5307c04780  0 WARNING: cannot read region 
>map { "user_id": "rados",
>  "display_name": "rados",
>  "email": "non@xxxxxxxx",
>  "suspended": 0,
>  "max_buckets": 1000,
>  "auid": 0,
>  "subusers": [
>        { "id": "rados:swift",
>          "permissions": "full-control"}],
>  "keys": [
>        { "user": "rados",
>          "access_key": "R5F0D2UCSK3618DJ829A",
>          "secret_key": "PJR1rvV2+Xrzlwo+AZZKXextsDl45EaLljzopgjD"}],
>  "swift_keys": [],
>  "caps": [],
>  "op_mask": "read, write, delete",
>  "default_placement": "",
>  "placement_tags": []}
>
>root@controller21:/etc# radosgw-admin key create   --subuser=rados:swift
> --key-type=swift
>2013-09-27 13:35:43.544005 7f599e672780  0 WARNING: cannot read region 
>map { "user_id": "rados",
>  "display_name": "rados",
>  "email": "non@xxxxxxxx",
>  "suspended": 0,
>  "max_buckets": 1000,
>  "auid": 0,
>  "subusers": [
>        { "id": "rados:swift",
>          "permissions": "full-control"}],
>  "keys": [
>        { "user": "rados",
>          "access_key": "R5F0D2UCSK3618DJ829A",
>          "secret_key": "PJR1rvV2+Xrzlwo+AZZKXextsDl45EaLljzopgjD"}],
>  "swift_keys": [
>        { "user": "rados:swift",
>          "secret_key": ""}],
>  "caps": [],
>  "op_mask": "read, write, delete",
>  "default_placement": "",
>  "placement_tags": []}
>
>Thanks,
>Tim
>
>Timothy Snider
>Strategic Planning & Architecture - Advanced Development NetApp
>316-636-8736 Direct Phone
>316-213-0223 Mobile Phone
>tim.snider@xxxxxxxxxx
>netapp.com
> 
>
>
>_______________________________________________
>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




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux