-
Notifications
You must be signed in to change notification settings - Fork 242
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
Print warning instead of error in case of unstable cluster #4315
Conversation
- Since the code doesn't exit, the error messaging might be confusing to users
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@vyasgun: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
@vyasgun can you check in case of |
@praveenkumar No. Do we want it to return a non-zero exit code? |
For any error, yes we should return non-zero otherwise we should change it to warn but I think if we are not able to update the kubeconfig file then tell user how they can still access it. |
@praveenkumar In the I'm not sure if there is a particular reason for these statements and the differences (or if it's just an oversight). Additionally, I think if updating kubeconfig is grounds for a non-zero return, so is an unstable cluster (to indicate a failure in |
We could return a different error code in both cases when crc completes. Different error codes we might want to ignore 'cluster unstable' The 'cannot update kubeconfig' message deserves to be made a lot more userfriendly :) Explain what won't work when this fails (I think this only means kube contexts can't be used, and that an explicit login to the cluster will be needed). |
Yes, it should tell user how to access the cluster (like export |
We probably can get this in, and create follow-up issues for the various improvements that have been discussed during the review? |
@vyasgun Can you create the follow up issue which is discussed here? Once follow up issue is created we can merge this one. |
Created a follow up issue: #4395 |
Fixes: Issue #4284
Solution/Idea
Since the code doesn't exit, the error messaging might be confusing to users. Changed it to
Warn
Testing
crc start
and cluster operators should not get ready within the timeout. I did it by cordoning the cluster node and running start again.