Re: Issue with CopyObject version 18.2.4: Copied objects are not deleted below the pool

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

 



thanks, this same issue was reported in
https://tracker.ceph.com/issues/69457. given the comment "I tested on
v19.2.0 and this problem does not occur", this was probably fixed for
squid with https://tracker.ceph.com/issues/66286. the reef backport
for that (tracked in https://tracker.ceph.com/issues/67268) hasn't
happened yet

On Sun, Jan 12, 2025 at 10:36 AM <tranthithuan180693@xxxxxxxxx> wrote:
>
> I tried uploading without copying,  the obj still deleted normally
> When using copy, obj cannot be deleted under the pool for storage-class COLD
> Here's how I do it:
>
> I created storage-class COLD
> radosgw-admin zonegroup placement add --rgw-zonegroup default --placement-id default-placement --storage-class COLD
> radosgw-admin zone placement add --rgw-zone default  --placement-id default-placement --storage-class COLD --data-pool default.rgw.cold.data
> and restart service rgw
>
> Create bucket name hn3
> radosgw-admin bucket stats --bucket hn3
> {
>     "bucket": "hn3",
>     "num_shards": 11,
>     "tenant": "",
>     "zonegroup": "39c9f30a-42dd-4037-8ef7-02942f6bfcc7",
>     "placement_rule": "default-placement",
>     "explicit_placement": {
>         "data_pool": "",
>         "data_extra_pool": "",
>         "index_pool": ""
>     },
>     "id": "ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3",
>     "marker": "ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3",
>     "index_type": "Normal",
>     "versioned": false,
>     "versioning_enabled": false,
>     "object_lock_enabled": false,
>     "mfa_enabled": false,
>     "owner": "test",
>     "ver": "0#1,1#1,2#1,3#1,4#4,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": "2025-01-08T08:44:50.831879Z",
>     "creation_time": "2025-01-08T08:44:50.804023Z",
>     "max_marker": "0#,1#,2#,3#,4#,5#,6#,7#,8#,9#,10#",
>     "usage": {
>         "rgw.main": {
>             "size": 37836,
>             "size_actual": 40960,
>             "size_utilized": 37836,
>             "size_kb": 37,
>             "size_kb_actual": 40,
>             "size_kb_utilized": 37,
>             "num_objects": 1
>         }
>     },
>     "bucket_quota": {
>         "enabled": false,
>         "check_on_raw": false,
>         "max_size": -1,
>         "max_size_kb": 0,
>         "max_objects": -1
>     }
> }
>
> I upload any file with storage-class COLD
> I use mc (MinIO Client):
> mc cp test.txt s3/hn3/
> Then copy that file with a different name using storage-class cold
> mc cp s3/hn3/test.txt s3/hn3/test.txt2
>
> Check obj in pool default.rgw.cold.data
> rados -p default.rgw.cold.data ls | grep ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3
> ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3__shadow_.ksiViAsAWgM7uyfn68yJiDNjLEXRCVc_0
>
> Now i will delete this obj
> mc rm s3/hn3/test.txt
> mc rm s3/hn3/test.txt2
>
> Check garbage collection
>
>  radosgw-admin gc list --include-all  | grep ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3
>         "tag": "ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3__shadow_.wubPUKz-g1B8XdzfiNXWM_rrD_oQeqM_1_01863ccdb47a110b5af24277107e76a9\u0000",
>                 "oid": "ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3__shadow_.wubPUKz-g1B8XdzfiNXWM_rrD_oQeqM_0",
>                 "oid": "ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3__shadow_.RWuk6chwz7Pkd8jvkBqY_eUibNDHnIq_0",
>
> Run manual gc
> radosgw-admin gc process --include-all
>
> Check again obj in pool , obj is not deleted
> rados -p default.rgw.cold.data ls | grep ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3
> ca4afca3-2cc7-4a83-9045-f8ecc4769d64.4630.3__shadow_.ksiViAsAWgM7uyfn68yJiDNjLEXRCVc_0
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>
_______________________________________________
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