Skip to content

[It] should run a deployment to completion and then scale to zero [Conformance] #9195

Closed

Description

@bparees
deploymentconfigs
/data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:213
  with test deployments
  /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:189
    should run a deployment to completion and then scale to zero [Conformance] [It]
    /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:188

    Expected
        <string>: --> pre: Running hook pod ...
        test pre hook executed
        --> pre: Success
        --> Scaling up deployment-test-2 from 0 to 1, scaling down deployment-test-1 from 0 to 0 (keep 1 pods available, don't exceed 2 pods)
            Scaling deployment-test-2 up to 1
    to contain substring
        <string>: --> Success

    /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:183
------------------------------
[k8s.io] Pods 
  should *not* be restarted with a docker exec "cat /tmp/health" liveness probe [Conformance]
  /data/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/test/e2e/pods.go:713

as seen in:
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_conformance/1704

Activity

  1. added
    kind/test-flake
    on Jun 7, 2016
  2. smarterclayton commented on Jun 7, 2016

    @smarterclayton
    Contributor

    The pod for the deployment comes up, but looks like it never becomes ready. It is terminated after 200s when the deployment fails.

  3. mfojtik commented on Jun 7, 2016

    @mfojtik
    Contributor

    I saw this flake under the rebase branch.

  4. changed the title [-]deployments pre hook test flake[/-] [+]deployments pre hook test flake on test: deploymentconfigs with test deployments [It] should run a deployment to completion and then scale to zero [Conformance][/+] on Jun 8, 2016
  5. stevekuznetsov commented on Jun 8, 2016

    @stevekuznetsov
    Contributor

    Changed title for searchability

  6. changed the title [-]deployments pre hook test flake on test: deploymentconfigs with test deployments [It] should run a deployment to completion and then scale to zero [Conformance][/-] [+][It] should run a deployment to completion and then scale to zero [Conformance][/+] on Jun 23, 2016
  7. bparees commented on Jul 14, 2016

    @bparees
    ContributorAuthor

    @smarterclayton we're at a month on this... are we going to fix this test or disable it?

  8. smarterclayton commented on Jul 14, 2016

    @smarterclayton
    Contributor

    Fix it, because it's indicating we're broken.

    @Kargakis the only way to get this is if we changed the behavior of test deployments.

    • Failure [18.357 seconds]
    deploymentconfigs
    /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:515
      with test deployments
      /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:254
        should run a deployment to completion and then scale to zero [Conformance] [It]
        /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:253
    
        Expected error:
            <*errors.errorString | 0xc821423b30>: {
                s: "deployment is complete but doesn't have expected spec replicas: 2 0",
            }
            deployment is complete but doesn't have expected spec replicas: 2 0
        not to have occurred
    
        /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:213
    

    So at some point since june 7 we broke test deployments.

  9. smarterclayton commented on Jul 14, 2016

    @smarterclayton
    Contributor

    I can't see where it changed, but the easy fix is to move the check for the invariant (scale should be zero) into the end of the deployments controller loop, so we guarantee that before we ever set complete or failed scale is zero, we'd be ok.

  10. smarterclayton commented on Jul 14, 2016

    @smarterclayton
    Contributor

    Pulling up a fix.

  11. smarterclayton commented on Jul 14, 2016

    @smarterclayton
    Contributor

    It's also possible that we are triggering a failure condition (due to the last rebase slowing down certain operations) that we didn't previously. Either way, this guarantees we never mark an RC complete or failed without setting scale to zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component/appskind/test-flakepriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions