Repository navigation
Closed
Labels
area/testscomponent/kuberneteskind/test-flakeCategorizes issue or PR as related to test flakes.priority/P2
Description
Test flake: kubectl expose test fails while waiting for redis container
Version
v1.3.0-alpha.1-380-g4965f56
Steps To Reproduce
- Run extended tests core
Current Result
Extended test failure:
• Failure [111.412 seconds]
[k8s.io] Kubectl client
/data/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/test/e2e/framework/framework.go:505
[k8s.io] Kubectl expose
/data/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/test/e2e/framework/framework.go:505
should create services for rc [Conformance] [It]
/data/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/test/e2e/kubectl.go:798
Jun 20 15:08:44.916: No pods matched the filter.
Expected Result
Test passes
Additional Information
Times out waiting for redis RC:
STEP: creating Redis RC
Jun 20 15:07:14.515: INFO: namespace e2e-tests-kubectl-h1cxa
Jun 20 15:07:14.515: INFO: Running '/data/src/github.com/openshift/origin/_output/local/bin/linux/amd64/kubectl --server=https://172.18.14.213:8443 --kubeconfig=/tmp/openshift/openshift/test-extended/core/openshift.local.config/master/admin.kubeconfig create -f /data/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/redis-master-controller.json --namespace=e2e-tests-kubectl-h1cxa'
Jun 20 15:07:14.902: INFO: stderr: ""
Jun 20 15:07:14.902: INFO: stdout: "replicationcontroller \"redis-master\" created\n"
STEP: Waiting for Redis master to start.
Jun 20 15:07:15.968: INFO: Selector matched 1 pods for map[app:redis]
Jun 20 15:07:15.968: INFO: Found 0 / 1
Jun 20 15:08:38.908: INFO: Selector matched 1 pods for map[app:redis]
Jun 20 15:08:38.908: INFO: Found 0 / 1
Jun 20 15:08:39.942: INFO: Selector matched 1 pods for map[app:redis]
Jun 20 15:08:39.942: INFO: Found 0 / 1
Jun 20 15:08:40.905: INFO: Selector matched 1 pods for map[app:redis]
Jun 20 15:08:40.905: INFO: Found 0 / 1
Jun 20 15:08:41.905: INFO: Selector matched 1 pods for map[app:redis]
...
Jun 20 15:08:41.905: INFO: Found 0 / 1
Jun 20 15:08:42.905: INFO: Selector matched 1 pods for map[app:redis]
Jun 20 15:08:42.905: INFO: Found 0 / 1
Jun 20 15:08:43.905: INFO: Selector matched 1 pods for map[app:redis]
Jun 20 15:08:43.905: INFO: Found 0 / 1
Jun 20 15:08:44.905: INFO: Selector matched 1 pods for map[app:redis]
Jun 20 15:08:44.905: INFO: Found 0 / 1
Jun 20 15:08:44.910: INFO: Selector matched 1 pods for map[app:redis]
Jun 20 15:08:44.910: INFO: Found 0 / 1
Jun 20 15:08:44.910: INFO: WaitFor completed with timeout 1m30s. Pods found = 0 out of 1
Jun 20 15:08:44.916: INFO: Selector matched 1 pods for map[app:redis]
Jun 20 15:08:44.916: INFO: No pods matched the filter.
Metadata
Metadata
Assignees
Labels
area/testscomponent/kuberneteskind/test-flakeCategorizes issue or PR as related to test flakes.priority/P2
Activity
ncdc commentedon Jun 21, 2016
The openshift log was truncated at 20MB and doesn't contain anything related to the failing test case. The Jenkins console has this as the last event related to the pod:
I'm guessing this is a gcr.io flake but without logs, I can't say for sure. Please reopen if this happens again, and maybe we'll have more useful logs.
0xmichalis commentedon Jun 24, 2016
Once again: https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_conformance/2548/consoleFull
ncdc commentedon Jun 24, 2016
This is what I suspected - pulling the image is just taking too long.
Upstream has taken to pre-pulling all the images used in tests to avoid situations like this.
ncdc commentedon Jun 24, 2016
See https://github.com/kubernetes/kubernetes/blob/ee7ca66dbad52b453bede0da5d1f8b10f972c360/cluster/saltbase/salt/e2e-image-puller/e2e-image-puller.manifest
Looks like that is installed via salt. We could modify our test scripts to do something similar.
Also see e.g. https://github.com/kubernetes/kubernetes/blob/dd4dae4a57129c40d4496ca6ad37ee3a4fa045fa/test/e2e/e2e.go#L128
ncdc commentedon Jun 24, 2016
@derekwaynecarr do you think we should just try to run the upstream image puller manifest in origin's e2e test?
derekwaynecarr commentedon Jun 24, 2016
👍 on pre-pulling e2e images
ncdc commentedon Jun 24, 2016
Ok, we can't reuse the upstream e2e-image-puller pod as is, at least not on Fedora 24, because our /usr/bin/docker is dynamically linked, and trying to run it bind-mounted into a busybox container results in unresolved shared libraries. I modified the manifest to use fedora:24 and everything is pulling as it should be. We just need to decide how we want to approach this. I assume we don't have the e2e-image-puller.manifest file available by default, so maybe we'll need to download it, run sed to change the image, and then create it.
It's also pulling the images serially, which might not be optimal from a timing perspective. It took about 6.5 minutes on my 50Mbps FIOS connection.
ncdc commentedon Jun 24, 2016
It also looks like it's over 5GB of image data, according to
docker info.bparees commentedon Jun 29, 2016
hit again here:
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_conformance/2775/consoleFull
ncdc commentedon Jun 29, 2016
We have a wip pr to pre pull
On Wednesday, June 29, 2016, Ben Parees [email protected] wrote:
mfojtik commentedon Jun 30, 2016
and again here: https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_conformance/2793/
0xmichalis commentedon Jun 30, 2016
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_conformance/2794/consoleFull
bparees commentedon Jun 30, 2016
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_conformance/2789/consoleFull
ncdc commentedon Jun 30, 2016
No need to keep linking 😄
bparees commentedon Jun 30, 2016
@ncdc sorry for the spam, i forgot this one was actually understood/being fixed. :)
bparees commentedon Jul 2, 2016
is that wip PR linked to this issue anywhere? or it's still upstream?
ncdc commentedon Jul 2, 2016
#9622
On Saturday, July 2, 2016, Ben Parees [email protected] wrote:
bparees commentedon Jul 2, 2016
@ncdc thanks. i took the liberty of updating that PR to indicated it'll fix this issue.
[-]extended test flake: kubectl expose conformance test fails with a timeout waiting for redis[/-][+]Extended.[k8s.io] Kubectl client [k8s.io] Kubectl expose should create services for rc [Conformance][/+]