Skip to content

Commit

Permalink
ci: validate CNS in-memory state after restart (#2049)
Browse files Browse the repository at this point in the history
* validate pod states after cns restart

* update job

* wait for cns to complete restart

* update pipeline log

* update pipeline log
  • Loading branch information
camrynl authored and jpayne3506 committed Sep 11, 2023
1 parent be4ef83 commit 2ed0025
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ steps:
name: "validatePods"
displayName: "Validate Pods"
- script: |
echo "validate pod IP assignment before CNS restart"
kubectl get pod -owide -A
make test-validate-state
echo "restart CNS"
kubectl rollout restart ds azure-cns -n kube-system
kubectl rollout status ds azure-cns -n kube-system
kubectl get pod -owide -A
echo "validate pods after CNS restart"
make test-validate-state
name: "restartCNS"
displayName: "Restart CNS and validate pods"
- script: |
echo "Run wireserver and metadata connectivity Tests"
bash test/network/wireserver_metadata_test.sh
Expand Down
13 changes: 13 additions & 0 deletions .pipelines/singletenancy/cilium/cilium-e2e-step-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,19 @@ steps:
name: "validatePods"
displayName: "Validate Pods"
- script: |
echo "validate pod IP assignment before CNS restart"
kubectl get pod -owide -A
make test-validate-state
echo "restart CNS"
kubectl rollout restart ds azure-cns -n kube-system
kubectl rollout status ds azure-cns -n kube-system
kubectl get pod -owide -A
echo "validate pods after CNS restart"
make test-validate-state
name: "restartCNS"
displayName: "Restart CNS and validate pods"
- script: |
echo "Run wireserver and metadata connectivity Tests"
bash test/network/wireserver_metadata_test.sh
Expand Down

0 comments on commit 2ed0025

Please sign in to comment.