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

Error reporting fixed for checking status of minio #2378

Merged

Conversation

k0taperk0t
Copy link
Contributor

@k0taperk0t k0taperk0t commented Oct 4, 2023

Change Overview

This PR fixes error reporting for checking status of minio. Currently, if minio is not available or broken we will get the same error:

Please install MinIO using 'make install-minio' and try again.

Which is pretty weird, when you have installed minio and it works fine in local environment. With this change we will able to understand what's wrong with minio. In my case it reports this:

Error: Kubernetes cluster unreachable: invalid configuration: [unable to read client-cert /Users/sergey.aksenov/.minikube/profiles/minikube/client.crt for minikube due to open /Users/sergey.aksenov/.minikube/profiles/minikube/client.crt: no such file or directory, unable to read client-key /Users/sergey.aksenov/.minikube/profiles/minikube/client.key for minikube due to open /Users/sergey.aksenov/.minikube/profiles/minikube/client.key: no such file or directory, unable to read certificate-authority /Users/sergey.aksenov/.minikube/ca.crt for minikube due to open /Users/sergey.aksenov/.minikube/ca.crt: no such file or directory]

PR series:

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

@k0taperk0t
Copy link
Contributor Author

I agree to the DCO for all the commits in this PR.

@k0taperk0t k0taperk0t marked this pull request as ready for review October 4, 2023 15:08
@k0taperk0t k0taperk0t changed the title Error reporing fixed for checking status of minio Error reporting fixed for checking status of minio Oct 4, 2023
build/test.sh Outdated Show resolved Hide resolved
Co-authored-by: Vivek Singh <vsingh.ggits.2010@gmail.com>
@mergify mergify bot merged commit f281f51 into kanisterio:master Oct 5, 2023
14 checks passed
@k0taperk0t k0taperk0t deleted the fix-for-minio-check-error-reporting branch October 13, 2023 12:50
leuyentran pushed a commit that referenced this pull request Oct 18, 2023
* error responding fixed for minio check

* Comment in build/test.sh updated

Co-authored-by: Vivek Singh <vsingh.ggits.2010@gmail.com>

---------

Co-authored-by: Vivek Singh <vsingh.ggits.2010@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants