Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubernetes unit tests fail #741

Open
unclejack opened this issue Feb 13, 2017 · 7 comments
Open

kubernetes unit tests fail #741

unclejack opened this issue Feb 13, 2017 · 7 comments
Assignees

Comments

@unclejack
Copy link
Contributor

There are some issues with the kubernetes unit tests. These tests fail one time out of about 10-15 CI runs.

I've encountered this issue with #615. I thought those issues were caused by my changes, but the same failures were encountered for many other PRs.

@unclejack unclejack self-assigned this Feb 13, 2017
@jojimt
Copy link
Contributor

jojimt commented Feb 13, 2017

Logs for the failure?

@unclejack
Copy link
Contributor Author

I don't have the logs. I've seen them in the CI logs of a run. That run's CI logs are gone now because they get deleted automatically.

I'll keep an eye on the CI to see if it runs into this failure again.

@unclejack
Copy link
Contributor Author

I couldn't reproduce the failures I've seen on the CI. I'm fixing the issues directly.

@jojimt jojimt closed this as completed Feb 14, 2017
@unclejack
Copy link
Contributor Author

A job on the CI has run into this failure:

time="2017-02-20T08:19:28Z" level=info msg="Output from rename: []" 
time="2017-02-20T08:19:28Z" level=info msg="Output from ip assign: []" 
time="2017-02-20T08:19:29Z" level=info msg="stat : Active Internet connections (only servers)\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    \ntcp        0      0 192.168.2.10:8300       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:2380       0.0.0.0:*               LISTEN      4945/etcd           \ntcp        0      0 192.168.2.10:8301       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:8302       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:6640            0.0.0.0:*               LISTEN      4791/ovsdb-server   \ntcp        0      0 127.0.0.1:8400          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:8500          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      993/sshd            \ntcp        0      0 127.0.0.1:8600          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1698/master         \ntcp6       0      0 :::2379                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::22                   :::*                    LISTEN      993/sshd            \ntcp6       0      0 ::1:25                  :::*                    LISTEN      1698/master         \ntcp6       0      0 :::4001                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::2375                 :::*                    LISTEN      4588/docker         \n" 
time="2017-02-20T08:19:30Z" level=info msg="stat : Active Internet connections (only servers)\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    \ntcp        0      0 192.168.2.10:8300       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:2380       0.0.0.0:*               LISTEN      4945/etcd           \ntcp        0      0 192.168.2.10:8301       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:8302       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:6640            0.0.0.0:*               LISTEN      4791/ovsdb-server   \ntcp        0      0 127.0.0.1:8400          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:8500          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      993/sshd            \ntcp        0      0 127.0.0.1:8600          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1698/master         \ntcp6       0      0 :::2379                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::22                   :::*                    LISTEN      993/sshd            \ntcp6       0      0 ::1:25                  :::*                    LISTEN      1698/master         \ntcp6       0      0 :::4001                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::2375                 :::*                    LISTEN      4588/docker         \n" 
time="2017-02-20T08:19:31Z" level=info msg="stat : Active Internet connections (only servers)\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    \ntcp        0      0 192.168.2.10:8300       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:2380       0.0.0.0:*               LISTEN      4945/etcd           \ntcp        0      0 192.168.2.10:8301       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:8302       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:6640            0.0.0.0:*               LISTEN      4791/ovsdb-server   \ntcp        0      0 127.0.0.1:8400          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:8500          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      993/sshd            \ntcp        0      0 127.0.0.1:8600          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1698/master         \ntcp6       0      0 :::2379                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::22                   :::*                    LISTEN      993/sshd            \ntcp6       0      0 ::1:25                  :::*                    LISTEN      1698/master         \ntcp6       0      0 :::4001                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::2375                 :::*                    LISTEN      4588/docker         \n" 
time="2017-02-20T08:19:32Z" level=info msg="stat : Active Internet connections (only servers)\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    \ntcp        0      0 192.168.2.10:8300       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:2380       0.0.0.0:*               LISTEN      4945/etcd           \ntcp        0      0 192.168.2.10:8301       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:8302       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:6640            0.0.0.0:*               LISTEN      4791/ovsdb-server   \ntcp        0      0 127.0.0.1:8400          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:8500          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      993/sshd            \ntcp        0      0 127.0.0.1:8600          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1698/master         \ntcp6       0      0 :::2379                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::22                   :::*                    LISTEN      993/sshd            \ntcp6       0      0 ::1:25                  :::*                    LISTEN      1698/master         \ntcp6       0      0 :::4001                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::2375                 :::*                    LISTEN      4588/docker         \n" 
time="2017-02-20T08:19:33Z" level=info msg="stat : Active Internet connections (only servers)\nProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    \ntcp        0      0 192.168.2.10:8300       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:2380       0.0.0.0:*               LISTEN      4945/etcd           \ntcp        0      0 192.168.2.10:8301       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 192.168.2.10:8302       0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:6640            0.0.0.0:*               LISTEN      4791/ovsdb-server   \ntcp        0      0 127.0.0.1:8400          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:8500          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      993/sshd            \ntcp        0      0 127.0.0.1:8600          0.0.0.0:*               LISTEN      4953/consul         \ntcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1698/master         \ntcp6       0      0 :::2379                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::22                   :::*                    LISTEN      993/sshd            \ntcp6       0      0 ::1:25                  :::*                    LISTEN      1698/master         \ntcp6       0      0 :::4001                 :::*                    LISTEN      4945/etcd           \ntcp6       0      0 :::2375                 :::*                    LISTEN      4588/docker         \n" 
time="2017-02-20T08:19:33Z" level=fatal msg="Kube server not ready after 5 sec" 
exit status 1
FAIL	github.com/contiv/netplugin/mgmtfn/k8splugin	5.287s

@unclejack
Copy link
Contributor Author

Here's another failure. This one is different.

FAIL: kubeClient_test.go:494: TestKube.TestKubeWatch

--ADD--
Drv: &{numAddSvc:0 numDelSvc:0 numProvUpd:0 services:map[] providers:map[]}
kubeClient_test.go:512:
    c.Errorf("Add service was not seen by client")
... Error: Add service was not seen by client

kubeClient_test.go:517:
    verifySvc(c, drv)
kubeClient_test.go:454:
    c.Errorf("Service was not correctly updated on client")
... Error: Service was not correctly updated on client

--DEL--
Drv: &{numAddSvc:0 numDelSvc:0 numProvUpd:0 services:map[] providers:map[]}
kubeClient_test.go:532:
    c.Errorf("Del service was not seen by client")
... Error: Del service was not seen by client

--CLOSE--
Drv: &{numAddSvc:0 numDelSvc:0 numProvUpd:6 services:map[] providers:map[LipService:[123.45.67.89 123.45.67.88]]}
services: <nil>
kubeClient_test.go:551:
    c.Errorf("All updates were not seen by client")
... Error: All updates were not seen by client

kubeClient_test.go:554:
    verifySvc(c, drv)
kubeClient_test.go:454:
    c.Errorf("Service was not correctly updated on client")
... Error: Service was not correctly updated on client

--- FAIL: Test (13.21s)
FAIL
OOPS: 1 passed, 1 FAILED
exit status 1
FAIL	github.com/contiv/netplugin/mgmtfn/k8splugin	13.241s

@unclejack
Copy link
Contributor Author

This is still a problem.

@unclejack
Copy link
Contributor Author

I'm reopening this issue because I've seen it again on the CI.

@unclejack unclejack reopened this Mar 31, 2017
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

No branches or pull requests

2 participants