Re: Unable to delete bucket - endless multipart uploads?

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

 



Hi Dave,

On Tuesday, February 23rd, 2021 at 21:56, David Monschein <monschein@xxxxxxxxx> wrote:
> We're running 14.2.16 on our RGWs and OSD nodes. Anyone have any ideas? Is
> it possible to target this bucket via rados directly to try and delete it?
>
> I'm weary of doing stuff like that though. Thanks in advance.

I just had the exact same issue. After trying to delete the bucket with `radosgw-admin bucket rm --purge-objects --bucket=tenant/cursed-bucket` and making absolutely no progress over the weekend, I figured I would try and abort all those multipart uploads first.

I used `s3cmd multipart s3://cursed-bucket` to list the multipart uploads, and `s3cmd abortmp s3://cursed-bucket/upload/object <upload-id>` to abort each of them. I had to run that in a loop because `s3cmd multipart s3://cursed-bucket` kept returning more multipart uploads (because of pagination, I assume); after a while, I was left with only a dozen multipart uploads that seemingly couldn't be removed that way, so I stopped the loop.

At that point, I ran `radosgw-admin bucket rm --purge-objects --bucket=tenant/cursed-bucket` again, and this time it started spitting out

```
2021-03-05 11:02:10.254 7f881dbab42d  0 abort_bucket_multiparts WARNING : aborted 680 incomplete multipart uploads
2021-03-05 11:02:57.354 7f881dbab42d  0 abort_bucket_multiparts WARNING : aborted 1360 incomplete multipart uploads
2021-03-05 11:03:35.137 7f881dbab42d  0 abort_bucket_multiparts WARNING : aborted 1860 incomplete multipart uploads
[...]
```

and I could see the object count decreasing in `radosgw-admin bucket stats --bucket=tenant/cursed-bucket`. After a few hours, the bucket was finally deleted!

If you haven't yet managed to delete your bucket, give this a try and let me know if it worked for you too. And if you did figure out another way to delete your bucket in the meantime, I'd be interested to know how you did it as well.

Cheers,

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