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

Broken error log message: "Waiting for MinIO to be ready: %!s(<nil>)" #2308

Closed
tmohme opened this issue Sep 3, 2024 · 1 comment · Fixed by #2345
Closed

Broken error log message: "Waiting for MinIO to be ready: %!s(<nil>)" #2308

tmohme opened this issue Sep 3, 2024 · 1 comment · Fixed by #2345
Assignees

Comments

@tmohme
Copy link

tmohme commented Sep 3, 2024

The - in principle correct - log message suffers from incorrect argument replacement.

Expected Behavior

The error log message is (correctly & expectedly) produced when the MinIO server processes are not (yet) ready.
Instead of "%!s()" I expect to find some kind of description of the underlying error.

Current Behavior

The log message hides the underlying error.

Possible Solution

In pkg/controller/main-controller.go, L#1366 (v6.0.3, 45110b9), change the message preparation so that a description of the underlying error/cause is printed in the message.

Steps to Reproduce (for bugs)

  1. Have a MinIO tenant up and running.
  2. Make some changes to the tenant that induce temporary unavailability, like adding a new pool.

Context

We are going to manage multiple clusters and strive for complete automation.
Therefore we need direct, succinct information in the log messages and can't effort to manually dig up the source-code, look what it does and what might have cause the error message in question.

Regression

No

Your Environment

  • Version used (minio-operator): v6.0.3
  • Environment name and version (e.g. kubernetes v1.17.2): v1.30.0
  • Server type and version: virtual
  • Operating System and version (uname -a): Linux minio-operator-74dc88668d-c56gh 6.6.43-talos Add Minio operator  #1 SMP Mon Aug 5 13:28:56 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • Link to your deployment file: n/a
@cesnietor
Copy link
Contributor

there is no error to be logged, it's just waiting to be ready. removed the error trying to be parsed.

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.

3 participants