Repository navigation
Record events for initial deployment failures - #3106
Conversation
Records events for initial deployment failures so users can diagnose things like invalid trigger configurations which prevent deployment.
There was a problem hiding this comment.
Is this going to record an event over and over and over?
There was a problem hiding this comment.
Every second for 3 days?
There was a problem hiding this comment.
Not at the moment. It'll only happen when more DC events roll in. The reflector for this controller only resyncs every few minutes. The configChange controller currently only retries once until #3051 is resolved (at which point this should be rate limited/time based).
There was a problem hiding this comment.
Just to be 100% sure, I've verified this manually (letting my initial deployment rot, I got 2 events up front from the retry and another couple a few minutes later- both treated as dupes by k8s; the "count" increases for a single event).
There was a problem hiding this comment.
K
----- Original Message -----
@@ -52,6 +55,7 @@ func (c *DeploymentConfigChangeController) Handle(config
*deployapi.DeploymentCo
if kerrors.IsConflict(err) {
return fatalError(fmt.Sprintf("DeploymentConfig %s updated since
retrieval; aborting trigger: %v",
deployutil.LabelForDeploymentConfig(config), err))
}
deployment: %v", err)c.recorder.Eventf(config, "failedCreate", "Couldn't create initialJust to be 100% sure, I've verified this manually (letting my initial
deployment rot, I got 2 events up front from the retry and another couple a
few minutes later- both treated as dupes by k8s; the "count" increases for a
single event).
Reply to this email directly or view it on GitHub:
https://github.com/openshift/origin/pull/3106/files#r32251088
|
LGTM [merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/3111/) (Image: devenv-fedora_1786) |
|
[Test]ing while waiting on the merge queue |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/3111/) |
|
Evaluated for origin up to d7bbff1 |
Merged by openshift-bot
Records events for initial deployment failures so users can diagnose
things like invalid trigger configurations which prevent deployment.
Closes #2743