Skip to content

Record events for initial deployment failures - #3106

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
ironcladlou:initial-deploy-failure-event
Jun 11, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
ironcladlou:initial-deploy-failure-event

Conversation

@ironcladlou

Copy link
Copy Markdown
Contributor

Records events for initial deployment failures so users can diagnose
things like invalid trigger configurations which prevent deployment.

Closes #2743

Records events for initial deployment failures so users can diagnose
things like invalid trigger configurations which prevent deployment.
@ironcladlou

Copy link
Copy Markdown
Contributor Author

cc @abhgupta @smarterclayton

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this going to record an event over and over and over?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every second for 3 days?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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))
}

  •       c.recorder.Eventf(config, "failedCreate", "Couldn't create initial
    
    deployment: %v", err)

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).


Reply to this email directly or view it on GitHub:
https://github.com/openshift/origin/pull/3106/files#r32251088

@smarterclayton smarterclayton added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 11, 2015
@smarterclayton

Copy link
Copy Markdown
Contributor

LGTM [merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/3111/) (Image: devenv-fedora_1786)

@openshift-bot

Copy link
Copy Markdown
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin up to d7bbff1

openshift-bot pushed a commit that referenced this pull request Jun 11, 2015
@openshift-bot
openshift-bot merged commit 311ff0e into openshift:master Jun 11, 2015
@ironcladlou
ironcladlou deleted the initial-deploy-failure-event branch June 11, 2015 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants