Thanks Casey,

It works using both --bucket XXX_name --bucket-id XXX_id. For both radosgw Hammer and Jewel version.

But the documentation for the REST admin operations is completely wrong:

  http://docs.ceph.com/docs/master/radosgw/adminops/#link-bucket

Cheers,
Valery

On 21/02/17 20:26 , Casey Bodley wrote:
When it complains about a missing bucket instance id, that's what it's
expecting to get from the --bucket-id argument. That's the "id" field
shown in bucket stats. Try this?

$ radosgw-admin bucket link --bucket=XXX --bucket-id=YYY --uid=ZZZ

Casey


On 02/21/2017 08:30 AM, Valery Tschopp wrote:
Hi,

I've the same problem about 'radosgw-admin bucket link --bucket XXX
--uid YYY', but with a Jewel radosgw

The admin rest API [1] do not work either :(

Any idea?

[1]: http://docs.ceph.com/docs/master/radosgw/adminops/#link-bucket


On 28/01/16 17:03 , Wido den Hollander wrote:
Hi,

I'm trying to link a bucket to a new user and this is failing for me.

The Ceph version is 0.94.5 (Hammer).

The bucket is called 'packer' and I can verify that it exists:

$ radosgw-admin bucket stats --bucket packer

{
    "bucket": "packer",
    "pool": ".rgw.buckets",
    "index_pool": ".rgw.buckets",
    "id": "ams02.5862567.3564",
    "marker": "ams02.5862567.3564",
    "owner": "XXXXX_beta",
    "ver": "0#21975",
    "master_ver": "0#0",
    "mtime": "2015-08-04 12:31:06.000000",
    "max_marker": "0#",
    "usage": {
        "rgw.main": {
            "size_kb": 10737764,
            "size_kb_actual": 10737836,
            "num_objects": 27
        },
        "rgw.multimeta": {
            "size_kb": 0,
            "size_kb_actual": 0,
            "num_objects": 0
        }
    },
    "bucket_quota": {
        "enabled": false,
        "max_size_kb": -1,
        "max_objects": -1
    }
}

Now when I try to link this bucket it fails:

$ radosgw-admin bucket link --bucket packer --uid YYYY

"failure: (22) Invalid argument: empty bucket instance id"

It seems like this is a bug in the radosgw-admin tool where it doesn't
parse the --bucket argument properly.

Any ideas?

Wido
_______________________________________________
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



_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


--
SWITCH
--------------------------
Valery Tschopp, Software Engineer, Peta Solutions
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
email: valery.tsch...@switch.ch phone: +41 44 268 1544



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to