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

"BucketAlreadyOwnedByYou" unintentionally generates log noise + API 400 error surfacing in Grafana #2006

Closed
fouadsemaan opened this issue Feb 29, 2024 · 0 comments · Fixed by #2013

Comments

@fouadsemaan
Copy link

fouadsemaan commented Feb 29, 2024

Expected Behavior

When the tenant specifies the bucket to create, any subsequent request should not mask the error as an info here and should check the bucket exists before attempting to create it.

Current Behavior

The operator will continually try to create bucket, and subsequent to the initial creation, it will log an error wrapped as info suggesting it was already successfully created. This creates two problems:

  • Noisy logs
  • Generating false positives in Grafana dashboard since attempt to create and already existing bucket generates a 400 error generated here.

Possible Solution

Check the bucket exists before attempting to create it to avoid API 400 error and noisy logs.

Steps to Reproduce (for bugs)

In the tenant values.yaml, specify a bucket to create.

Context

Regression

Your Environment

  • Version used (minio-operator):
  • Environment name and version (e.g. kubernetes v1.17.2):
  • Server type and version:
  • Operating System and version (uname -a):
  • Link to your deployment file:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant