Skip to content

deploy: check the dc conditions instead of relying on deployer logs - #14395

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
mfojtik:extended-use-conditions
May 30, 2017
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
mfojtik:extended-use-conditions

Conversation

@mfojtik

@mfojtik mfojtik commented May 29, 2017

Copy link
Copy Markdown
Contributor

Unblock: #13980

Basically check that the new RC is available (so the rollout succeded) instead of checking the deployer log messages.

This does not solve the issue where the last log line dissapears, but it is band-aid to unblock the queue.

@mfojtik
mfojtik requested a review from smarterclayton May 29, 2017 12:33
@mfojtik

mfojtik commented May 29, 2017

Copy link
Copy Markdown
Contributor Author

lets [test] this couple times to ensure the flake is gone.

o.Expect(err).NotTo(o.HaveOccurred())
} else {
cond := deployutil.GetDeploymentCondition(dc.Status, deployapi.DeploymentProgressing)
o.Expect(cond.Reason).To(o.BeEquivalentTo(deployapi.NewRcAvailableReason))

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.

@Kargakis is this enough to keep this test sane without relying on the deployer log? note this is an attempt to unblock the queue not to fix the log problem.

@tnozicka tnozicka left a comment

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.

lgtm

@mfojtik

mfojtik commented May 29, 2017

Copy link
Copy Markdown
Contributor Author

[test] flake: #14396

@mfojtik

mfojtik commented May 29, 2017 via email

Copy link
Copy Markdown
Contributor Author

@mfojtik
mfojtik force-pushed the extended-use-conditions branch from 7c16d23 to 8bb6996 Compare May 29, 2017 19:42
@mfojtik

mfojtik commented May 29, 2017

Copy link
Copy Markdown
Contributor Author

for the record, this just flaked in the other location where we test for --> Success (same test, outside the loop...):

/go/src/github.com/openshift/origin/test/extended/deployments/deployments.go:319
Expected
    <string>: --> pre: Running hook pod ...
    test pre hook executed
    --> pre: Success
    --> Scaling deployment-test-1 to 2
    --> Waiting up to 10m0s for pods in rc deployment-test-1 to become ready
to contain substring
    <string>: --> Success
/go/src/github.com/openshift/origin/test/extended/deployments/deployments.go:257

@smarterclayton @ncdc @Kargakis i believe there is problem with oc logs -f where when the pod is deleted it might loose the last log line from the output. Can't explain this otherwise.

@smarterclayton

smarterclayton commented May 29, 2017 via email

Copy link
Copy Markdown
Contributor

@mfojtik

mfojtik commented May 30, 2017

Copy link
Copy Markdown
Contributor Author

@smarterclayton for some reason it got much worse in last days hitting the deployement tests as they rely on the deployer logs...

@mfojtik
mfojtik force-pushed the extended-use-conditions branch from 8bb6996 to 509b70c Compare May 30, 2017 07:32
@mfojtik

mfojtik commented May 30, 2017

Copy link
Copy Markdown
Contributor Author

@Kargakis @tnozicka @smarterclayton in that case i don't think we even need to check the logs for --> Success as we already check that the rollout completed by:

o.Expect(waitForLatestCondition(oc, "deployment-test", deploymentRunTimeout, deploymentReachedCompletion)).NotTo(o.HaveOccurred())

So removing the --> Success checks should unblock the queue and we can put that back once the journald rate limiter is fixed. Thoughts?

@mfojtik
mfojtik force-pushed the extended-use-conditions branch 2 times, most recently from c9a2310 to eec5989 Compare May 30, 2017 07:37
@mfojtik

mfojtik commented May 30, 2017

Copy link
Copy Markdown
Contributor Author

[merge][severity:blocker]

Fixes the P0 flake and ublocks the queue.

o.Expect(out).To(o.ContainSubstring("Halfway"))
o.Expect(out).To(o.ContainSubstring("Finished"))
o.Expect(out).To(o.ContainSubstring("--> Success"))
// o.Expect(out).To(o.ContainSubstring("--> Success"))

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.

FIXME?

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.

yeah, lazy to copy the comment ;-)

@tnozicka

Copy link
Copy Markdown
Contributor

@mfojtik yeah, that seems to be already covered so just commenting it out sgtm until jurnald gets fixed.

If anyone has the link to the jurnald bug it would be nice to have it linked here or in a followup issue.

@mfojtik
mfojtik force-pushed the extended-use-conditions branch from eec5989 to 5d3d45c Compare May 30, 2017 09:12
@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 5d3d45c

@mfojtik

mfojtik commented May 30, 2017

Copy link
Copy Markdown
Contributor Author

[merge][severity:blocker]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 5d3d45c

@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot

openshift-bot commented May 30, 2017 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/842/) (Base Commit: 1c38059) (Extended Tests: blocker) (Image: devenv-rhel7_6283)

@openshift-bot
openshift-bot merged commit d861384 into openshift:master May 30, 2017
@mfojtik
mfojtik deleted the extended-use-conditions branch September 5, 2018 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants