Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Conversation

@bboreham
Copy link
Contributor

This builds on #2551 and #2563, builds another new image with Kubernetes packages pre-loaded and adds one smoke-test script to try it out.

Currently the only thing the test does is checks to see whether 3 peers form 6 established connections.

If something should go wrong mid-test it will likely cause havoc during the rest of the run, because kubelet will be restarting things. I considered adding the kubeadm tear-down steps (which are here in 840_weave_kube_3_test.sh) to config.sh but it seemed overkill.

@bboreham bboreham added this to the 1.8.0 milestone Oct 31, 2016
@bboreham bboreham force-pushed the weave-kube-smoke-test branch 2 times, most recently from 5cd1500 to 8ee1fe0 Compare November 1, 2016 11:07
@bboreham bboreham force-pushed the weave-kube-smoke-test branch 4 times, most recently from d0fb996 to f69a292 Compare November 3, 2016 17:47
@brb brb force-pushed the weave-kube-smoke-test branch from f69a292 to 6dde5e5 Compare November 4, 2016 10:53
@@ -0,0 +1,66 @@
#! /bin/bash

This comment was marked as abuse.

run_on $HOST2 "sudo systemctl start kubelet && sudo kubeadm join --token=$TOKEN $HOST1IP"
run_on $HOST3 "sudo systemctl start kubelet && sudo kubeadm join --token=$TOKEN $HOST1IP"

[ -n "$COVERAGE" ] && COVERAGE_ARGS="\\n env:\\n - name: EXTRA_ARGS\\n value: \"-test.coverprofile=/home/weave/cover.prof --\""

This comment was marked as abuse.

tear_down_kubeadm() {
for host in $HOSTS; do
# If we don't stop kubelet, it will restart all the containers we're trying to kill
run_on $host "sudo systemctl stop kubelet"

This comment was marked as abuse.


sleep 5

wait_for_connections() {

This comment was marked as abuse.


wait_for_pods() {
for i in $(seq 1 30); do
if run_on $HOST1 "kubectl get pods | grep 'hello.*Running'" ; then

This comment was marked as abuse.

@brb brb assigned awh Nov 4, 2016
@awh awh merged commit ea82a67 into master Nov 4, 2016
@awh awh deleted the weave-kube-smoke-test branch November 4, 2016 12:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants