-
Notifications
You must be signed in to change notification settings - Fork 163
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
Capture and expose debug (log) information on release failure #219
Conversation
@hiddeco may I suggest we buffer the log lines after eliminating duplicates? This way an ingress/lb/volume being stuck will not pollute the event. |
I would prioritize this to trim down the support burden, users can’t figure out why releases are failing when wait times out. |
774c0cf
to
12322e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @hiddeco
@@ -328,14 +328,14 @@ func (r *HelmReleaseReconciler) reconcileRelease(ctx context.Context, | |||
// Fail if install retries are exhausted. | |||
if hr.Spec.GetInstall().GetRemediation().RetriesExhausted(hr) { | |||
err = fmt.Errorf("install retries exhausted") | |||
return v2.HelmReleaseNotReady(hr, released.Reason, released.Message), err | |||
return v2.HelmReleaseNotReady(hr, released.Reason, err.Error()), err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This (and the change below) are required because otherwise the long error message will still end up in the Ready
condition.
It will also make the error more visible to users, as I know from providing support to people that it is a bit hidden at the moment.
12322e3
to
adb083b
Compare
This provides richer debugging information for wait timeouts, e.g. ``` wait.go:225: [debug] Service does not have load balancer ingress IP address: deis/deis-builder wait.go:225: [debug] Service does not have load balancer ingress IP address: deis/deis-builder ``` Signed-off-by: Hidde Beydals <hello@hidde.co>
Signed-off-by: Hidde Beydals <hello@hidde.co>
adb083b
to
314472e
Compare
n
last log lines for the actionFixes #218.