RadosGW problems

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

 



Hello,

Yehuda, I know I was using the correct fastcgi module, it was the one on
Ceph repositories; I had also disabled in apache, all other modules;

I tried to create a second swift user, using the provided instructions,
only to get the following:

# radosgw-admin user create --uid=marcogarces --display-name="Marco Garces"
# radosgw-admin subuser create --uid=marcogarces
--subuser=marcogarces:swift --access=full
# radosgw-admin key create --subuser=marcogarces:swift --key-type=swift
--gen-secret
could not create key: unable to add access key, unable to store user info
2014-08-20 13:19:33.664945 7f925b130880  0 WARNING: can't store user info,
swift id () already mapped to another user (marcogarces)


So I have created another user, some other way:

# radosgw-admin user create --subuser=testuser:swift --display-name="Test
User One" --key-type=swift --access=full
{ "user_id": "testuser",
  "display_name": "Test User One",
  "email": "",
  "suspended": 0,
  "max_buckets": 1000,
  "auid": 0,
  "subusers": [],
  "keys": [],
  "swift_keys": [
        { "user": "testuser:swift",
          "secret_key": "MHA4vFaDy5XsJq+F5NuZLcBMCoJcuot44ASDuReY"}],
  "caps": [],
  "op_mask": "read, write, delete",
  "default_placement": "",
  "placement_tags": [],
  "bucket_quota": { "enabled": false,
      "max_size_kb": -1,
      "max_objects": -1},
  "user_quota": { "enabled": false,
      "max_size_kb": -1,
      "max_objects": -1},
  "temp_url_keys": []}


Now, when I do, from the client:

swift -V 1 -A http://gateway.bcitestes.local/auth -U testuser:swift -K
MHA4vFaDy5XsJq+F5NuZLcBMCoJcuot44ASDuReY stat
       Account: v1
    Containers: 0
       Objects: 0
         Bytes: 0
        Server: Tengine/2.0.3
    Connection: keep-alive
X-Account-Bytes-Used-Actual: 0
  Content-Type: text/plain; charset=utf-8


If I try using https, I still have errors:

swift --insecure -V 1 -A https://gateway.bcitestes.local/auth -U
testuser:swift -K MHA4vFaDy5XsJq+F5NuZLcBMCoJcuot44ASDuReY stat
Account HEAD failed: http://gateway.bcitestes.local:443/swift/v1 400 Bad
Request


And I could not validate this account using a Swift client (Cyberduck);
Also, there are no S3 credentials!
How can I have a user with both S3 and Swift credentials created, and valid
to use with http/https, and on all clients (command line and gui). The
first user works great with the S3 credentials, on all scenarios.

Thank you,
Marco Garc?s

On Tue, Aug 19, 2014 at 7:59 PM, Yehuda Sadeh <yehuda at inktank.com> wrote:

> On Tue, Aug 19, 2014 at 5:32 AM, Marco Garc?s <marco at garces.cc> wrote:
> >
> > UPDATE:
> >
> > I have installed Tengine (nginx fork) and configured both HTTP and HTTPS
> to use radosgw socket.
>
> Looking back at this thread, and considering this solution it seems to
> me that you were running the wrong apache fastcgi module.
>
> >
> > I can login with S3, create buckets and upload objects.
> >
> > It's still not possible to use Swift credentials, can you help me on
> this part? What do I use when I login (url, username, password) ?
> > Here is the info for the user:
> >
> > radosgw-admin user info --uid=mgarces
> > { "user_id": "mgarces",
> >   "display_name": "Marco Garces",
> >   "email": "marco.garces at bci.co.mz",
> >   "suspended": 0,
> >   "max_buckets": 1000,
> >   "auid": 0,
> >   "subusers": [
> >         { "id": "mgarces:swift",
> >           "permissions": "full-control"}],
> >   "keys": [
> >         { "user": "mgarces:swift",
> >           "access_key": "AJW2BCBXHFJ1DPXT112O",
> >           "secret_key": ""},
> >         { "user": "mgarces",
> >           "access_key": "S88Y6ZJRACZG49JFPY83",
> >           "secret_key": "PlubMMjfQecJ5Py46e2kZz5VuUgHgsjLmYZDRdFg"}],
> >   "swift_keys": [
> >         { "user": "mgarces:swift",
> >           "secret_key": "TtKWhY67ujhjn36\/nhv44A2BVPw5wDi3Sp13YrMM"}],
> >   "caps": [],
> >   "op_mask": "read, write, delete",
> >   "default_placement": "",
> >   "placement_tags": [],
> >   "bucket_quota": { "enabled": false,
> >       "max_size_kb": -1,
> >       "max_objects": -1},
> >   "user_quota": { "enabled": false,
> >       "max_size_kb": -1,
> >       "max_objects": -1},
> >   "temp_url_keys": []}
> >
>
> You might be hitting issue #8587 (aka #9155). Try creating a second
> swift user, see if it still happens.
>
> Yehuda
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20140820/db37531d/attachment.htm>


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


  Powered by Linux