Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minio v6 -> v7 breaks for Ceph due to ListObjectsV2 #3291

Closed
sevagh opened this issue Oct 7, 2020 · 4 comments
Closed

Minio v6 -> v7 breaks for Ceph due to ListObjectsV2 #3291

sevagh opened this issue Oct 7, 2020 · 4 comments

Comments

@sevagh
Copy link
Contributor

sevagh commented Oct 7, 2020

Hello. When upgrading from Thanos 0.14.0 to 0.16.0-rc.0 (and 0.15.0 should have the same issue), this breaks with Ceph.

This is due to the minio client upgrade from v6 to v7: https://github.com/thanos-io/thanos/pull/2970/files

This breaks for me because the version of Ceph we operate has trouble with the ListObjectsV2 operation (if you look this up it's a known issue for minio/Ceph) - e.g. minio/minio-go#1130

I can hotfix my own local clone of Thanos to add this:

diff --git a/pkg/objstore/s3/s3.go b/pkg/objstore/s3/s3.go
index 923a4253..26cfcc5d 100644
--- a/pkg/objstore/s3/s3.go
+++ b/pkg/objstore/s3/s3.go
@@ -309,6 +309,7 @@ func (b *Bucket) Iter(ctx context.Context, dir string, f func(string) error) err
        opts := minio.ListObjectsOptions{
                Prefix:    dir,
                Recursive: false,
+               UseV1: true,
        }

Maybe Ceph users are a small population that this doesn't matter.

@sevagh
Copy link
Contributor Author

sevagh commented Oct 7, 2020

As for any practical suggestions - maybe add a "UseV1 = true" config key in the AWS bucket config file? I can work on that PR if it sounds reasonable.

@zygiss
Copy link

zygiss commented Oct 8, 2020

We're also running on Ceph and are affected by this.

I like the idea to have a bucket config option to revert to V1 of the ListObjects API in the interim, while we upgrade our Ceph installs.

@sevagh
Copy link
Contributor Author

sevagh commented Oct 13, 2020

I made a PR for this.

@GiedriusS
Copy link
Member

The PR has been merged so closing this! Thank you for this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants