-
Notifications
You must be signed in to change notification settings - Fork 115
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
OSD-8760: Improve bulk service log error handling #168
Conversation
/label tide/merge-method-squash |
It has been noticed that a service log is being sent to the same cluster multiple times, will work on a fix. |
@supreeth7 what was the fix? |
@fahlmant It was a wrong pointer reference, a one-liner :) |
@supreeth7 Awesome. Do you have any tests against stage clusters I can look at? |
@fahlmant I tested them on two stage clusters which I had created prior, here are the results:
If there is an error in one of the clusters (as an example, here a cluster was in installing state):
I can confirm that the messaged clusters have service logs listed via |
Refactored servicelog list for better error handling minor refactor fixed multiple SL post to the same cluster comment changes, list error handling Refactor: validation functions return errors, eliminated use of global var
/retest |
/lgtm |
@clcollins @fahlmant @georgettica @iamkirkbater Cloud one of you take another look and approve this? |
/approve |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: georgettica, supreeth7, wanghaoran1988 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
@supreeth7: all tests passed! 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/test-infra repository. I understand the commands that are listed here. |
Refactored servicelog list for better error handling minor refactor fixed multiple SL post to the same cluster comment changes, list error handling Refactor: validation functions return errors, eliminated use of global var
Resolves: https://issues.redhat.com/browse/OSD-8760
Relates to: https://issues.redhat.com/browse/OSD-7691
This PR improves error handling when sending a service log to multiple clusters, if a service log failed to post to a single cluster it doesn't halt the command execution and continues to post service log updates to the remaining clusters.
This PR also refactors the
service log post
sub-command output.When run
servicelog post
sub-command to post service logs to multiple clusters, the command output will list the clusters the service log was successfully posted along with a list of clusters which encountered errors while sending the service log.