Strange about radosgw-admin bucket link/unlink

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

 



Hi,

Is it a bug or my usage is wrong?
When I link a bucket to another specified user, all bucket's contents
are cleaned,
on the other hand, after unlinking a bucket, original user still can
access the bucket contents.

+My original bucket:
$ sudo radosgw-admin bucket stats --bucket 456
{ "bucket": "456",
  "pool": ".rgw.buckets",
  "id": "4731.1",
  "marker": "4731.1",
  "owner": "707ceba699b54cde9a4cff854bea9fde",
  "usage": { "rgw.main": { "size_kb": 856,
          "size_kb_actual": 856,
          "num_objects": 1}}}

+Unlink it, the owner doesn't change,
+although I can't see it in bucket list, I can access the contents in it:
$ sudo radosgw-admin bucket unlink --bucket 456 --uid
"707ceba699b54cde9a4cff854bea9fde"
$ sudo radosgw-admin bucket stats --bucket 456
{ "bucket": "456",
  "pool": ".rgw.buckets",
  "id": "4731.1",
  "marker": "4731.1",
  "owner": "707ceba699b54cde9a4cff854bea9fde",
  "usage": { "rgw.main": { "size_kb": 856,
          "size_kb_actual": 856,
          "num_objects": 1}}}

+ When link to another user, usage change to {},
+ and all files in bucket have losed
$ sudo radosgw-admin bucket link --bucket 456 --uid admin
$ sudo radosgw-admin bucket stats --bucket 456
{ "bucket": "456",
  "pool": ".rgw.buckets",
  "id": "4934.1",
  "marker": "4934.1",
  "owner": "admin",
  "usage": {}}

And just one more question,
is there a way to link a bucket to multiple users?


Thanks.
-- 
Chuanyu Tsai
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux