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.sni...@netapp.com> 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=n...@none.com
>2013-09-27 13:34:08.155162 7f984f0a5780  0 WARNING: cannot read region map
>{ "user_id": "rados",
>  "display_name": "rados",
>  "email": "n...@none.com",
>  "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": "n...@none.com",
>  "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": "n...@none.com",
>  "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.sni...@netapp.com
>netapp.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

Reply via email to