Repository navigation
Closed
Labels
component/appscomponent/containerskind/test-flakeCategorizes issue or PR as related to test flakes.priority/P2
Milestone
Description
Looks like this:
FAILURE after 119.719s: test/end-to-end/core.sh:23: executing 'oc get -n test pods -l name=frontend' expecting any result and text 'Running'; re-trying every 0.2s until completion or 120.000s: the command timed out
Standard output from the command:
...
NAME READY STATUS RESTARTS AGE
frontend-1-22h75 1/1 Terminating 0 33s
frontend-1-qltn8 1/1 Terminating 0 33s
... repeated 2 times
Standard error from the command:
No resources found.
... repeated 215 times
[ERROR] PID 21108: hack/lib/cmd.sh:618: `return "${return_code}"` exited with status 1.
[INFO] Stack Trace:
[INFO] 1: hack/lib/cmd.sh:618: `return "${return_code}"`
[INFO] 2: test/end-to-end/core.sh:23: os::cmd::try_until_text
[INFO] 3: test/end-to-end/core.sh:428: wait_for_app
[INFO] Exiting with code 1.
Looks like the pods are always in terminating state.
Click for full output
FAILURE after 119.719s: test/end-to-end/core.sh:23: executing 'oc get -n test pods -l name=frontend' expecting any result and text 'Running'; re-trying every 0.2s until completion or 120.000s: the command timed out
01:09:33.885 Standard output from the command:
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 0/1 Terminating 0 0s
01:09:33.885 frontend-1-qltn8 0/1 Terminating 0 0s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 0/1 Terminating 0 1s
01:09:33.885 frontend-1-qltn8 0/1 Terminating 0 1s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 0/1 Terminating 0 2s
01:09:33.885 frontend-1-qltn8 0/1 Terminating 0 2s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 0/1 Terminating 0 3s
01:09:33.885 frontend-1-qltn8 0/1 Terminating 0 3s
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 3s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 3s
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 4s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 4s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 5s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 5s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 6s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 6s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 7s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 7s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 8s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 8s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 9s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 9s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 10s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 10s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 11s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 11s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 12s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 12s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 13s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 13s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 14s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 14s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 15s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 15s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 16s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 16s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 17s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 17s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 18s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 18s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 19s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 19s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 20s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 20s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 21s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 21s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 22s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 22s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 23s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 23s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 24s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 24s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 25s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 25s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 26s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 26s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 27s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 27s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 28s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 28s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 29s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 29s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 30s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 30s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 31s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 31s
01:09:33.885 ... repeated 2 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 32s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 32s
01:09:33.885 ... repeated 3 times
01:09:33.885 NAME READY STATUS RESTARTS AGE
01:09:33.885 frontend-1-22h75 1/1 Terminating 0 33s
01:09:33.885 frontend-1-qltn8 1/1 Terminating 0 33s
01:09:33.885 ... repeated 2 times
01:09:33.885 Standard error from the command:
01:09:33.885 No resources found.
01:09:33.885 ... repeated 6 times
01:09:33.885 No resources found.
01:09:33.885 ... repeated 215 times
01:09:33.898
[ERROR] PID 21108: hack/lib/cmd.sh:618: `return "${return_code}"` exited with status 1.
01:09:33.898 [INFO] Stack Trace:
01:09:33.898 [INFO] 1: hack/lib/cmd.sh:618: `return "${return_code}"`
01:09:33.901 [INFO] 2: test/end-to-end/core.sh:23: os::cmd::try_until_text
01:09:33.904 [INFO] 3: test/end-to-end/core.sh:428: wait_for_app
01:09:33.904 [INFO] Exiting with code 1.
01:09:33.910 [ERROR] PID 19877: hack/test-end-to-end-docker.sh:91: `${OS_ROOT}/test/end-to-end/core.sh` exited with status 1.
01:09:33.910 [INFO] Stack Trace:
01:09:33.910 [INFO] 1: hack/test-end-to-end-docker.sh:91: `${OS_ROOT}/test/end-to-end/core.sh`
01:09:33.910 [INFO] Exiting with code 1.
Metadata
Metadata
Assignees
Labels
component/appscomponent/containerskind/test-flakeCategorizes issue or PR as related to test flakes.priority/P2
Activity
bparees commentedon Feb 12, 2017
how can pods be age 0 and be in a terminating state already?
bparees commentedon Feb 12, 2017
from the origin container logs:
unfortunately we don't seem to have logs for the frontend container itself to see why it would have exited.
I also see this:
but i can't tell if that's a cause or an effect of the container exiting. (it comes later in the log).
it also looks like immediately after the pod "terminates" it shows up as "running" (???)
though obviously the test script did not see it in that state. Note that it also now has a deletion time associated.
it also looks like the replication controller is having some role in deleting it:
mfojtik commentedon Feb 22, 2017
@bparees i guess the replication controller deleted that pod as result of scale to 0 action
mfojtik commentedon Feb 22, 2017
@bparees the fact the Pod is already in terminating and even transition from non-ready to ready in terminating state is pretty weird :)
mfojtik commentedon Feb 22, 2017
Here are more logs:
mfojtik commentedon Feb 22, 2017
@Kargakis why is replicaset controller deleting pods that does not belong to replica set :-) ?
0xmichalis commentedon Feb 22, 2017
Terminating pods are running pods
0xmichalis commentedon Feb 22, 2017
Make sure the rs/rc controllers have the garbageCollectorEnabled option set to true so they use owner references, otherwise a pod that is selected by any controller is going to be managed by any controller.
mfojtik commentedon Feb 27, 2017
Adding 1.6.0 as we opt-ed out fixing this bug for 3.5.
mfojtik commentedon Mar 24, 2017
@sttts @ncdc are we enabling GC controller in 1.6 rebase?
0xmichalis commentedon Mar 24, 2017
Shouldn't matter for this test, the controllers will set owner refs unconditionally in 1.6
mfojtik commentedon Apr 19, 2017
Bumping prio as this is not 3.6 blocker, but we should verify that
garbageCollectorEnabledis set to true for these controllers and the garbage collector runs @sttts0xmichalis commentedon Apr 19, 2017
The option is removed in 3.6 so we should get the owner refs for free
mfojtik commentedon Jul 12, 2017
Garbage collection is now enabled by default and this haven't reccured recently.