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

workflows: use latest stable CLI in post-test information gathering #423

Merged
merged 1 commit into from
Jul 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/in-cluster-test-scripts/eks-tunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ sleep 10s

# Run connectivity test
cilium connectivity test --debug --all-flows

# Retrieve Cilium status
cilium status
3 changes: 0 additions & 3 deletions .github/in-cluster-test-scripts/eks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ sleep 10s

# Run connectivity test
cilium connectivity test --debug --all-flows

# Retrieve Cilium status
cilium status
5 changes: 0 additions & 5 deletions .github/in-cluster-test-scripts/external-workloads.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@ set -e

# Run connectivity test
cilium connectivity test --debug --all-flows

# Retrieve Cilium status
cilium status
cilium clustermesh status
cilium clustermesh vm status
3 changes: 0 additions & 3 deletions .github/in-cluster-test-scripts/gke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ sleep 10s

# Run connectivity test
cilium connectivity test --debug --all-flows

# Retrieve Cilium status
cilium status
6 changes: 0 additions & 6 deletions .github/in-cluster-test-scripts/multicluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,3 @@ sleep 10s

# Run connectivity test
cilium --context "${CONTEXT1}" connectivity test --debug --multi-cluster "${CONTEXT2}" --test '!/pod-to-.*-nodeport' --all-flows

# Retrieve Cilium status
cilium --context "${CONTEXT1}" status
cilium --context "${CONTEXT1}" clustermesh status
cilium --context "${CONTEXT2}" status
cilium --context "${CONTEXT2}" clustermesh status
9 changes: 9 additions & 0 deletions .github/workflows/eks-tunnel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,18 @@ jobs:
- name: Post-test information gathering
if: ${{ !success() }}
run: |
echo "=== Retrieve in-cluster jobs logs ==="
kubectl logs --timestamps -n kube-system job/cilium-cli-install
kubectl logs --timestamps -n kube-system job/cilium-cli

echo "\n\n\n=== Install latest stable CLI ==="
curl -LO https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz
sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/bin
rm cilium-linux-amd64.tar.gz

echo "\n\n\n=== Retrieve cluster state ==="
kubectl get pods --all-namespaces -o wide
cilium status
cilium sysdump --output-filename cilium-sysdump-out
shell: bash {0} # Disable default fail-fast behaviour so that all commands run independently

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,18 @@ jobs:
- name: Post-test information gathering
if: ${{ !success() }}
run: |
echo "=== Retrieve in-cluster jobs logs ==="
kubectl logs --timestamps -n kube-system job/cilium-cli-install
kubectl logs --timestamps -n kube-system job/cilium-cli

echo "\n\n\n=== Install latest stable CLI ==="
curl -LO https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz
sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/bin
rm cilium-linux-amd64.tar.gz

echo "\n\n\n=== Retrieve cluster state ==="
kubectl get pods --all-namespaces -o wide
cilium status
cilium sysdump --output-filename cilium-sysdump-out
shell: bash {0} # Disable default fail-fast behaviour so that all commands run independently

Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/externalworkloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,29 @@ jobs:
run: |
kubectl -n kube-system wait job/cilium-cli --for=condition=complete --timeout=10m

- name: Post-test installation logs
if: ${{ !success() }}
run: |
kubectl logs --timestamps -n kube-system job/cilium-cli-install

- name: Post-test information gathering
if: ${{ !success() }}
run: |
echo "=== Retrieve in-cluster jobs logs ==="
kubectl logs --timestamps -n kube-system job/cilium-cli-install
kubectl logs --timestamps -n kube-system job/cilium-cli

echo "\n\n\n=== Retrieve VM state ==="
gcloud compute ssh ${{ env.vmName }} --zone ${{ env.zone }} --command "cilium status"
gcloud compute ssh ${{ env.vmName }} --zone ${{ env.zone }} --command "sudo docker logs cilium --timestamps"

echo "\n\n\n=== Install latest stable CLI ==="
curl -LO https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz
sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/bin
rm cilium-linux-amd64.tar.gz

echo "\n\n\n=== Retrieve cluster state ==="
kubectl get pods --all-namespaces -o wide
kubectl get cew --all-namespaces -o wide
kubectl get cep --all-namespaces -o wide
cilium status
cilium clustermesh status
cilium clustermesh vm status
cilium sysdump --output-filename cilium-sysdump-out
shell: bash {0} # Disable default fail-fast behaviour so that all commands run independently

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,17 @@ jobs:
- name: Post-test information gathering
if: ${{ !success() }}
run: |
echo "=== Retrieve in-cluster jobs logs ==="
kubectl logs --timestamps -n kube-system job/cilium-cli
kubectl exec -n kube-system job/cilium-cli -- cilium status

echo "\n\n\n=== Install latest stable CLI ==="
curl -LO https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz
sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/bin
rm cilium-linux-amd64.tar.gz

echo "\n\n\n=== Retrieve cluster state ==="
kubectl get pods --all-namespaces -o wide
cilium status
cilium sysdump --output-filename cilium-sysdump-out
shell: bash {0} # Disable default fail-fast behaviour so that all commands run independently

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/multicluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,26 @@ jobs:
- name: Post-test information gathering
if: ${{ !success() }}
run: |
echo "=== Retrieve in-cluster jobs logs ==="
kubectl logs --timestamps -n kube-system job/cilium-cli

echo "\n\n\n=== Install latest stable CLI ==="
curl -LO https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz
sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/bin
rm cilium-linux-amd64.tar.gz

echo "\n\n\n=== Retrieve cluster1 state ==="
export KUBECONFIG=kubeconfig-cluster1
kubectl get pods --all-namespaces -o wide
cilium status
cilium clustermesh status
cilium sysdump --output-filename cilium-sysdump-cluster1

echo "\n\n\n=== Retrieve cluster2 state ==="
export KUBECONFIG=kubeconfig-cluster2
kubectl get pods --all-namespaces -o wide
cilium status
cilium clustermesh status
cilium sysdump --output-filename cilium-sysdump-cluster2
shell: bash {0} # Disable default fail-fast behaviour so that all commands run independently

Expand Down