Martynas Pumputis
07d31a8558
npc: Get rid of the legacy netpol
2018-07-24 10:06:55 +02:00
Martynas Pumputis
dee24aec65
npc: Add integration test for egress
...
Also, install dig (bind-tools) in the network-tester image.
2018-07-24 10:06:23 +02:00
Martynas Pumputis
be8298926a
npc: Pass --use-legacy-netpol to weaver in 840
2018-07-24 10:06:23 +02:00
Munro, Louis
b262a1eedc
Fix xtables.lock race condition between weave and kube-proxy.
...
Fixes #3351
2018-07-22 13:12:00 -04:00
Bryan Boreham
32a92a4695
Add --force flag to kubeadm reset
2018-06-28 10:26:09 +00:00
Martynas Pumputis
d15439aeac
Merge remote-tracking branch 'origin/2.3'
2018-06-11 16:39:03 +02:00
Martynas Pumputis
45a9ea666e
Add k8s integration test case for preserving client IP addr
...
Also, increase timeout for smoke tests to 360 sec.
2018-06-04 14:08:24 +02:00
Martynas Pumputis
efd5d0e410
Add /client_ip to network-tester
...
The endpoint is going to be used by --no-masq-local integration tests.
2018-06-04 14:08:24 +02:00
Bryan Boreham
791d9aecfc
Extend k8s test to cover namespaceSelector and >10 Namespaces
2018-05-25 17:24:22 +00:00
Bryan Boreham
847046a225
Update to match upstream changes
2018-04-27 14:34:48 +01:00
Bryan Boreham
519c5d686a
Remove test for k8s 1.6 which breaks on 1.10
2018-04-04 12:26:18 +01:00
Martynas Pumputis
4261777613
Remove "-j KUBESERVICES" during teardown in 840 smoke test
...
Remove the rule to ensure that api-server is not accessible while
kube-proxy is not ready.
Otherwise, we have a race between "-j KUBE-FORWARD" and "-j WEAVE-NPC"
which makes the NodePort isolation test case to fail.
2018-01-29 16:20:22 +01:00
Martynas Pumputis
7bc089f5c5
Add iproute2 scope info to assertions
...
The latest alpine linux changed iproute2 of busybox which now
includes scope info.
2018-01-29 16:20:22 +01:00
Martynas Pumputis
c46e3e8cf7
Skip CA verification in k8s smoke tests
2018-01-29 16:20:22 +01:00
Martynas Pumputis
180d554205
Do not pin k8s vsn in 840 smoke test
2018-01-29 16:20:22 +01:00
Martynas Pumputis
9a5514ffe0
Add comment about the FORWARD rule order
...
Should help debugging.
2018-01-20 14:44:40 +01:00
Bryan Boreham
4d5172f67e
Run test with Kubernetes 1.8.5 and --cluster-cidr
2018-01-11 15:24:25 +00:00
Bryan Boreham
6f01c31458
Extend kubernetes test to nodePort and virtual IP
2018-01-11 15:24:25 +00:00
Bryan Boreham
6cfb208f3f
Merge pull request #3204 from weaveworks/issues/3133-idempotent-bridge
...
Do not skip bridge creation if bridge exists
2018-01-09 17:20:06 +00:00
Brice Fernandes
b05d977cf9
Merge pull request #3217 from weaveworks/improve-test-readme
...
Improve instructions for running tests against a remote cluster
2018-01-09 17:08:49 +00:00
Brice Fernandes
36d183d988
Improve readme
2018-01-09 14:51:25 +00:00
Brice Fernandes
b154fd56fb
Fix typo
2018-01-09 13:58:07 +00:00
Brice Fernandes
3419f69246
Make sure to mention Ansible in instructions
2018-01-09 13:41:02 +00:00
Brice Fernandes
ae59a053b1
Improve readme formatting
2018-01-08 16:45:00 +00:00
Brice Fernandes
e71919226b
Add cloud build instructions to test readme
2018-01-08 16:38:22 +00:00
Martynas Pumputis
1d67e2f955
Add test case for restoring iptables rules after weaver restart
2018-01-06 13:20:02 +01:00
Martynas Pumputis
9a6935bf40
Give more memory to vagrant test machines
...
To be able to run k8s smoke tests.
2018-01-06 12:48:17 +01:00
Martynas Pumputis
14768d6947
Add smoke test for bridge re-creation after restart
2017-12-22 10:39:02 +01:00
Bryan Boreham
07459f0cec
Merge pull request #3149 from weaveworks/fix-2797-loosing-ipam-ips
...
Fix 2797 on Kubernetes - Cluster goes down because all IPs become unreachable
2017-11-14 15:31:06 +00:00
Brice Fernandes
90f4f7b62c
Add test to ensure that weave recovers unreachable IPs on launch
2017-11-14 14:18:21 +00:00
Brice Fernandes
987ac98fbf
Add up command to integration tests to make launching cluster easier
2017-11-14 14:16:01 +00:00
Brice Fernandes
49ed40a301
Add test function to recover clean output from command run on remote host
2017-11-14 14:16:01 +00:00
Martynas Pumputis
cacc190764
npc: Extend NetworkPolicy test cases in 840
...
- Add a test case for default allow all ingress traffic.
- Fix misleading comment.
2017-11-13 09:40:07 +02:00
Brice Fernandes
884e1d7a6b
Document test runner feature to pick number of hosts
2017-11-09 15:48:21 +00:00
Martynas Pumputis
b605b832ed
npc: Extend k8s NetworkPolicy smoke tests
...
- Test that pods not matching ingress rules are not able to access
the nettest pods.
- Test upgrading of NPC (from legacy to non-legacy).
- Test new semantics of k8s netpol.
2017-11-07 14:55:03 +02:00
Martynas Pumputis
8467742d6d
Increase smoke test timeout from 240 to 300 sec
...
The 840 smoke test (k8s + npc) sometimes might take longer than 240 sec.
2017-10-22 19:29:52 +02:00
Martynas Pumputis
8755da4b5a
Add smoke tests to check FORWARDing after 'expose'
2017-10-17 12:08:43 +01:00
Martynas Pumputis
ade6738789
Handle "weave expose" in weaver
...
The change makes "weave expose" to call the "/expose" HTTP
endpoint implemented in router which exposes the bridge.
Such architectural change required as we need to know whether NPC is
enabled when exposing the bridge and weaver knows this fact the best.
Unfortunately, this change makes impossible to "weave expose"
when weaver is not running.
2017-10-17 12:08:43 +01:00
Bryan Boreham
fe859952e0
Merge branch '2.0'
2017-10-04 16:05:07 +00:00
Brice Fernandes
292cbc484a
Fix other occurences of GNU-specific sed invocation
2017-10-04 12:12:28 +01:00
Bryan Boreham
c16653a396
Mount iptables lock file in weave-kube ( #3134 )
...
Mount iptables lock file in weave-kube
iptables uses the file `/run/xtables.lock` so that if changes are
under way, another instance of the iptables command can wait till it
is finished.
We need to mount the lock file from the host to the container in order
for this mechanism to work at all.
Note we rely on kubelet touching the file before running any pods -
see https://github.com/kubernetes/kubernetes/pull/47212
2017-10-03 14:52:49 +01:00
Bryan Boreham
527bcffe3b
Extend weave-kube smoke test: add a policy with blank 'from'
...
Per issue #3095 this crashes the commenting code.
Also added check to see if the pods are still running.
2017-08-23 09:42:51 +00:00
Marc CARRE
d2ebaf3ab7
Make Ansible's docker_install_role overridable.
...
Currently:
- there is no easy way to change the way we install Docker from Net
- if build-tools' default was to change, Net could break.
This change addresses this situation.
2017-07-13 16:47:22 +01:00
Bryan Boreham
fdbffce93a
Use modified docker-py to mask change in Docker error message
...
Before this change, when using Docker 17.06 we get:
tests/integration/container_test.py:121: in test_create_with_restart_policy
'You cannot remove a running container', err
E AssertionError: 'You cannot remove a running container' not found in u'You cannot remove a restarting container
The modified image simply checks for "You cannot remove a".
2017-07-13 14:00:23 +00:00
Bryan Boreham
afac7c4d09
Change test 610 to use a Weaveworks container
...
Previously we used 'alpine' which had no 'CMD' line, but that changed
upstream, so generate our own trivial image for this purpose.
2017-07-13 13:41:53 +00:00
Marc CARRE
81c4a0ffce
Temporarily increase tests' timeout.
2017-06-27 10:23:36 +01:00
Matthias Radestock
162da63522
remove remnants of the weaveproxy and weaveplugin containers
2017-06-25 18:42:48 +01:00
Bryan Boreham
01194ee267
Use weaveworks nettest image instead of nginx in plugin test
...
so we can ensure it has 'ping' in it
2017-06-25 14:52:27 +00:00
Bryan Boreham
b86fc67adf
Extend test to include a network policy
2017-06-22 14:16:53 +00:00
Bryan Boreham
59de4c3435
Add curl to test image
2017-06-22 14:16:53 +00:00