Is there anyone who is hitting this? or any help on this is much appreciated.

-----Original Message-----
From: ceph-users [mailto:ceph-users-boun...@lists.ceph.com] On Behalf Of Pavan 
Rallabhandi
Sent: Saturday, February 28, 2015 11:42 PM
To: ceph-us...@ceph.com
Subject: [ceph-users] RGW hammer/master woes

Am struggling to get through a basic PUT via swift client with RGW and CEPH 
binaries built out of Hammer/Master codebase, whereas the same (command on the 
same setup) is going through with RGW and CEPH binaries built out of Giant.

Find below RGW log snippet and the command that was run. Am I missing anything 
obvious here?

The user info looks like this:

{ "user_id": "johndoe",
  "display_name": "John Doe",
  "email": "j...@example.com",
  "suspended": 0,
  "max_buckets": 1000,
  "auid": 0,
  "subusers": [
        { "id": "johndoe:swift",
          "permissions": "full-control"}],
  "keys": [
        { "user": "johndoe",
          "access_key": "7B39L2TUQ448LZW4RI3M",
          "secret_key": "lshKCoacSlbyVc7mBLLr4cJ26fEEM22Tcmp29hT3"},
        { "user": "johndoe:swift",
          "access_key": "SHZ64EF7CIB4V42I14AH",
          "secret_key": ""}],
  "swift_keys": [
        { "user": "johndoe:swift",
          "secret_key": "asdf"}],
  "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": []}


The command that was run and the logs:

<snip>

swift -A http://localhost:8989/auth -U johndoe:swift -K asdf upload mycontainer 
ceph

2015-02-28 23:28:39.272897 7fb610ff9700  1 ====== starting new request 
req=0x7fb5f0009990 =====
2015-02-28 23:28:39.272913 7fb610ff9700  2 req 0:0.000016::PUT 
/swift/v1/mycontainer/ceph::initializing
2015-02-28 23:28:39.272918 7fb610ff9700 10 host=localhost:8989
2015-02-28 23:28:39.272921 7fb610ff9700 20 subdomain= domain= in_hosted_domain=0
2015-02-28 23:28:39.272938 7fb610ff9700 10 meta>> HTTP_X_OBJECT_META_MTIME
2015-02-28 23:28:39.272945 7fb610ff9700 10 x>> 
x-amz-meta-mtime:1425140933.648506
2015-02-28 23:28:39.272964 7fb610ff9700 10 ver=v1 first=mycontainer req=ceph
2015-02-28 23:28:39.272971 7fb610ff9700 10 s->object=ceph s->bucket=mycontainer
2015-02-28 23:28:39.272976 7fb610ff9700  2 req 0:0.000079:swift:PUT 
/swift/v1/mycontainer/ceph::getting op
2015-02-28 23:28:39.272982 7fb610ff9700  2 req 0:0.000085:swift:PUT 
/swift/v1/mycontainer/ceph:put_obj:authorizing
2015-02-28 23:28:39.273008 7fb610ff9700 10 swift_user=johndoe:swift
2015-02-28 23:28:39.273026 7fb610ff9700 20 build_token 
token=0d0000006a6f686e646f653a73776966744436beb90402b13c4f53f35472c2cf0f
2015-02-28 23:28:39.273057 7fb610ff9700  2 req 0:0.000160:swift:PUT 
/swift/v1/mycontainer/ceph:put_obj:reading permissions
2015-02-28 23:28:39.273100 7fb610ff9700 15 Read 
AccessControlPolicy<AccessControlPolicy 
xmlns="http://s3.amazonaws.com/doc/2006-03-01/";><Owner><ID>johndoe</ID><DisplayName>John
 Doe</DisplayName></Owner><AccessControlList><Grant><Grantee 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="CanonicalUser"><ID>johndoe</ID><DisplayName>John 
Doe</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy>
2015-02-28 23:28:39.273114 7fb610ff9700  2 req 0:0.000216:swift:PUT 
/swift/v1/mycontainer/ceph:put_obj:init op
2015-02-28 23:28:39.273120 7fb610ff9700  2 req 0:0.000223:swift:PUT 
/swift/v1/mycontainer/ceph:put_obj:verifying op mask
2015-02-28 23:28:39.273123 7fb610ff9700 20 required_mask= 2 user.op_mask=7
2015-02-28 23:28:39.273125 7fb610ff9700  2 req 0:0.000228:swift:PUT 
/swift/v1/mycontainer/ceph:put_obj:verifying op permissions
2015-02-28 23:28:39.273129 7fb610ff9700  5 Searching permissions for 
uid=johndoe mask=50
2015-02-28 23:28:39.273131 7fb610ff9700  5 Found permission: 15
2015-02-28 23:28:39.273133 7fb610ff9700  5 Searching permissions for group=1 
mask=50
2015-02-28 23:28:39.273135 7fb610ff9700  5 Permissions for group not found
2015-02-28 23:28:39.273136 7fb610ff9700  5 Searching permissions for group=2 
mask=50
2015-02-28 23:28:39.273137 7fb610ff9700  5 Permissions for group not found
2015-02-28 23:28:39.273138 7fb610ff9700  5 Getting permissions id=johndoe 
owner=johndoe perm=2
2015-02-28 23:28:39.273140 7fb610ff9700 10  uid=johndoe requested perm 
(type)=2, policy perm=2, user_perm_mask=2, acl perm=2
2015-02-28 23:28:39.273143 7fb610ff9700  2 req 0:0.000246:swift:PUT 
/swift/v1/mycontainer/ceph:put_obj:verifying op params
2015-02-28 23:28:39.273146 7fb610ff9700  2 req 0:0.000249:swift:PUT 
/swift/v1/mycontainer/ceph:put_obj:executing
2015-02-28 23:28:39.273279 7fb610ff9700 10 x>> 
x-amz-meta-mtime:1425140933.648506
2015-02-28 23:28:39.273313 7fb610ff9700 20 get_obj_state: rctx=0x7fb610ff41f0 
obj=mycontainer:ceph state=0x7fb5f0016940 s->prefetch_data=0
2015-02-28 23:28:39.274354 7fb610ff9700 20 get_obj_state: rctx=0x7fb610ff41f0 
obj=mycontainer:ceph state=0x7fb5f0016940 s->prefetch_data=0
2015-02-28 23:28:39.274394 7fb610ff9700 10 setting object 
write_tag=default.14199.0
2015-02-28 23:28:39.274554 7fb610ff9700 20 reading from 
.rgw:.bucket.meta.mycontainer:default.14199.3
2015-02-28 23:28:39.274574 7fb610ff9700 20 get_obj_state: rctx=0x7fb610ff2ef0 
obj=.rgw:.bucket.meta.mycontainer:default.14199.3 state=0x7fb5f001db30 
s->prefetch_data=0
2015-02-28 23:28:39.274586 7fb610ff9700 10 cache get: 
name=.rgw+.bucket.meta.mycontainer:default.14199.3 : hit
2015-02-28 23:28:39.274602 7fb610ff9700 20 get_obj_state: s->obj_tag was set 
empty
2015-02-28 23:28:39.274610 7fb610ff9700 10 cache get: 
name=.rgw+.bucket.meta.mycontainer:default.14199.3 : hit
2015-02-28 23:28:39.274647 7fb610ff9700 20  bucket index object: 
.dir.default.14199.3
2015-02-28 23:28:39.276000 7fb610ff9700  2 req 0:0.003103:swift:PUT 
/swift/v1/mycontainer/ceph:put_obj:http status=400
2015-02-28 23:28:39.276016 7fb610ff9700  1 ====== req done req=0x7fb5f0009990 
http_status=400 ======
2015-02-28 23:28:39.276034 7fb610ff9700 20 process_request() returned -22
2015-02-28 23:28:39.276078 7fb610ff9700  1 civetweb: 0x7fb5f00008c0: 127.0.0.1 
- - [28/Feb/2015:23:28:39 +0530] "PUT /swift/v1/mycontainer/ceph HTTP/1.1" -1 0 
- python-swiftclient-2.3.1

<\snip>

Thanks,
-Pavan.

________________________________

PLEASE NOTE: The information contained in this electronic mail message is 
intended only for the use of the designated recipient(s) named above. If the 
reader of this message is not the intended recipient, you are hereby notified 
that you have received this message in error and that any review, 
dissemination, distribution, or copying of this message is strictly prohibited. 
If you have received this communication in error, please notify the sender by 
telephone or e-mail (as shown above) immediately and destroy any and all copies 
of this message in your possession (whether hard copies or electronically 
stored copies).

_______________________________________________
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