I would suggest trying to delete the bucket using radosgw-admin. If you can't get that to work, then I would go towards deleting the actual RADOS objects. There are a few threads on the ML that talk about manually deleting a bucket.
On Thu, Sep 20, 2018 at 2:04 PM Sean Purdy <s.purdy@xxxxxxxxxxxxxxxx> wrote:
Hi,
We have a bucket that we are trying to empty. Versioning and lifecycle was enabled. We deleted all the objects in the bucket. But this left a whole bunch of Delete Markers.
aws s3api delete-object --bucket B --key K --version-id V is not deleting the delete markers.
Any ideas? We want to delete the bucket so we can reuse the bucket name. Alternatively, is there a way to delete a bucket that still contains delete markers?
$ aws --profile="" s3api list-object-versions --bucket bucket --prefix 0/0/00fff6df-863d-48b5-9089-cc6e7c5997e7
{
"DeleteMarkers": [
{
"Owner": {
"DisplayName": "bucket owner",
"ID": "owner"
},
"IsLatest": true,
"VersionId": "ZB8ty9c3hxjxV5izmIKM1QwDR6fwnsd",
"Key": "0/0/00fff6df-863d-48b5-9089-cc6e7c5997e7",
"LastModified": "2018-09-17T16:19:58.187Z"
}
]
}
$ aws --profile="" s3api delete-object --bucket bucket --key 0/0/00fff6df-863d-48b5-9089-cc6e7c5997e7 --version-id ZB8ty9c3hxjxV5izmIKM1QwDR6fwnsd
returns 0 but the delete marker remains.
This bucket was created in 12.2.2, current version of ceph is 12.2.7 via 12.2.5
Thanks,
Sean
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com