How to see bucket usage when user is suspended ?

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

 



Hello to everyone

When I use this command to see bucket usage

radosgw-admin bucket stats --bucket=<bucket>

It work only when the owner of the bucket is activated

How to see the usage even when the owner is suspended ?

Here is 2 exemple, one with the owner activated et the other one with owner
suspended:

radosgw-admin bucket stats --bucket=bonjour
{
    "bucket": "bonjour",
    "num_shards": 11,
    "tenant": "",
    "zonegroup": "46d4ba06-76ff-44b4-a441-54197517ded2",
    "placement_rule": "default-placement",
    "explicit_placement": {
        "data_pool": "",
        "data_extra_pool": "",
        "index_pool": ""
    },
    "id": "f8c2e3e2-da22-4c80-b330-466db13bbf6a.204114.85",
    "marker": "f8c2e3e2-da22-4c80-b330-466db13bbf6a.204114.85",
    "index_type": "Normal",
    "owner": "identifiant_leviia_GB6mSIAmTt48cY5O",
    "ver":
"0#148,1#124,2#134,3#155,4#199,5#123,6#165,7#141,8#133,9#154,10#137",
    "master_ver": "0#0,1#0,2#0,3#0,4#0,5#0,6#0,7#0,8#0,9#0,10#0",
    "mtime": "0.000000",
    "creation_time": "2023-02-24T16:16:14.196314Z",
    "max_marker": "0#,1#,2#,3#,4#,5#,6#,7#,8#,9#,10#",
    "usage": {
        "rgw.main": {
            "size": 532572233,
            "size_actual": 535318528,
            "size_utilized": 532572233,
            "size_kb": 520091,
            "size_kb_actual": 522772,
            "size_kb_utilized": 520091,
            "num_objects": 1486
        },
        "rgw.multimeta": {
            "size": 0,
            "size_actual": 0,
            "size_utilized": 0,
            "size_kb": 0,
            "size_kb_actual": 0,
            "size_kb_utilized": 0,
            "num_objects": 0
        }
    },
    "bucket_quota": {
        "enabled": false,
        "check_on_raw": false,
        "max_size": -1,
        "max_size_kb": 0,
        "max_objects": -1
    }
}

radosgw-admin bucket stats --bucket=locking4
{
    "bucket": "locking4",
    "num_shards": 11,
    "tenant": "",
    "zonegroup": "46d4ba06-76ff-44b4-a441-54197517ded2",
    "placement_rule": "default-placement",
    "explicit_placement": {
        "data_pool": "",
        "data_extra_pool": "",
        "index_pool": ""
    },
    "id": "f8c2e3e2-da22-4c80-b330-466db13bbf6a.204114.80",
    "marker": "f8c2e3e2-da22-4c80-b330-466db13bbf6a.204114.80",
    "index_type": "Normal",
    "owner": "identifiant_leviia_xf4q139fq1",
    "ver": "0#1,1#1,2#1,3#1,4#1,5#1,6#1,7#1,8#1,9#1,10#1",
    "master_ver": "0#0,1#0,2#0,3#0,4#0,5#0,6#0,7#0,8#0,9#0,10#0",
    "mtime": "0.000000",
    "creation_time": "2023-02-23T12:49:24.089538Z",
    "max_marker": "0#,1#,2#,3#,4#,5#,6#,7#,8#,9#,10#",
    "usage": {},
    "bucket_quota": {
        "enabled": false,
        "check_on_raw": false,
        "max_size": -1,
        "max_size_kb": 0,
        "max_objects": -1
    }
}

As you can see with the bucket where the owner is suspended (locking4) it
lack the part:

"usage": {
        "rgw.main": {
            "size": 532572233,
            "size_actual": 535318528,
            "size_utilized": 532572233,
            "size_kb": 520091,
            "size_kb_actual": 522772,
            "size_kb_utilized": 520091,
            "num_objects": 1486
        },
        "rgw.multimeta": {
            "size": 0,
            "size_actual": 0,
            "size_utilized": 0,
            "size_kb": 0,
            "size_kb_actual": 0,
            "size_kb_utilized": 0,
            "num_objects": 0
        }
    },

How to have this part even when the owner is suspended ? Is it possible via
API ?

All the best
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



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


  Powered by Linux