Skip to content

Many Serial E2Es due to terminating namespaces present from previous tests #13536

Closed

Description

@kwoodson

The bot is failing some tests that are unrelated to my PR (afaik). I was told to report these errors here:

openshift/openshift-ansible#3698 (comment)

Version

I'm not sure how to find out. I poked through the jenkins logs and didn't see anything definitive.

Steps To Reproduce
  1. I was able to get this error when opening a PR and setting a comment to 'aos-ci-test'.
  2. Check the output
Current Result

I'm seeing errors often.

Expected Result

My PR receives all tests pass when code is unrelated to anything on the bot.

Additional Information

It would be nice to exclude e2e tests from running when the code is new and not referenced anywhere in the product as in the case with my PR.

Activity

  1. pweil- commented on Mar 27, 2017

    @pweil-

    Copying from comment:

    Extended.[k8s.io] SchedulerPredicates [Serial] validates resource limits of pods that are allowed to run [Conformance]
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that Inter-pod-Affinity is respected if not matching
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that InterPodAffinity is respected if matching
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that InterPodAffinity is respected if matching with multiple Affinities
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that NodeAffinity is respected if not matching
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that NodeSelector is respected if matching [Conformance]
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that NodeSelector is respected if not matching [Conformance]
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that a pod with an invalid NodeAffinity is rejected
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that a pod with an invalid podAffinity is rejected because of the LabelSelectorRequirement is invalid
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that embedding the JSON NodeAffinity setting as a string in the annotation value work
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that embedding the JSON PodAffinity and PodAntiAffinity setting as a string in the annotation value work
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that required NodeAffinity setting is respected if matching
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that taints-tolerations is respected if matching
        Extended.[k8s.io] SchedulerPredicates [Serial] validates that taints-tolerations is respected if not matching
    
  2. added
    kind/test-flake
    on Mar 27, 2017
  3. changed the title [-]Expected error: "Namespace e2e-tests-init-container-ckdb3 is active"[/-] [+]Many Serial E2Es due to terminating namespaces present from previous tests[/+] on Mar 29, 2017
  4. stevekuznetsov commented on Mar 29, 2017

    @stevekuznetsov
    Contributor

    Failures look like:

    Mar 27 18:24:17.955: INFO: Waiting for terminating namespaces to be deleted...
    Mar 27 18:24:17.957: INFO: Unexpected error occurred: Namespace e2e-tests-init-container-hx6md is active
    
  5. openshift-bot commented on Mar 4, 2018

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  6. added
    lifecycle/stale
    on Mar 4, 2018
  7. stevekuznetsov commented on Mar 6, 2018

    @stevekuznetsov
    Contributor

    No longer an issue
    /close

  8. OlegLoewen commented on May 15, 2019

    @OlegLoewen

    I'm still facing this issue which causes flakiness:

    /go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/scheduling/predicates.go:79
    Expected error:
        <*errors.errorString | 0xc0011b21a0>: {
            s: "Namespace e2e-tests-container-probe-5dp7g is active",
        }
        Namespace e2e-tests-container-probe-5dp7g is active
    not to have occurred
    /go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/scheduling/predicates.go:88
    

    system-out output:

    go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:147
    STEP: Creating a kubernetes client
    STEP: Building a namespace api object, basename sched-pred
    STEP: Binding the e2e-test-privileged-psp PodSecurityPolicy to the default service account in e2e-tests-sched-pred-h67w2
    STEP: Waiting for a default service account to be provisioned in namespace
    [BeforeEach] [sig-scheduling] SchedulerPredicates [Serial]
      /go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/scheduling/predicates.go:78
    May 13 09:30:03.176: INFO: Waiting up to 1m0s for all (but 2) nodes to be ready
    May 13 09:30:03.184: INFO: Waiting for terminating namespaces to be deleted...
    May 13 09:30:03.186: INFO: Unexpected error occurred: Namespace e2e-tests-gc-5vwws is active
    [AfterEach] [sig-scheduling] SchedulerPredicates [Serial]
      /go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:148
    STEP: Collecting events from namespace "e2e-tests-sched-pred-h67w2".
    STEP: Found 0 events.
    

    I tested this testcase with different cloud providers (gce, aws, alicloud, openstack, azure) and have observed, that this issue is only happening for gce and alicloud clusters and only for k8s release < 1.14.0

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

Metadata

Metadata

Assignees

Labels

component/kubernetescomponent/schedulerkind/test-flakelifecycle/stalepriority/P1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions