Skip to content

Commit e9257ed

Browse files
authored
ci: validate CNS in-memory state after restart (#2049)
* validate pod states after cns restart * update job * wait for cns to complete restart * update pipeline log * update pipeline log
1 parent 1bc34bd commit e9257ed

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.pipelines/singletenancy/cilium-overlay/cilium-overlay-e2e-step-template.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,19 @@ steps:
165165
name: "validatePods"
166166
displayName: "Validate Pods"
167167
168+
- script: |
169+
echo "validate pod IP assignment before CNS restart"
170+
kubectl get pod -owide -A
171+
make test-validate-state
172+
echo "restart CNS"
173+
kubectl rollout restart ds azure-cns -n kube-system
174+
kubectl rollout status ds azure-cns -n kube-system
175+
kubectl get pod -owide -A
176+
echo "validate pods after CNS restart"
177+
make test-validate-state
178+
name: "restartCNS"
179+
displayName: "Restart CNS and validate pods"
180+
168181
- script: |
169182
echo "Run wireserver and metadata connectivity Tests"
170183
bash test/network/wireserver_metadata_test.sh

.pipelines/singletenancy/cilium/cilium-e2e-step-template.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,19 @@ steps:
149149
name: "validatePods"
150150
displayName: "Validate Pods"
151151
152+
- script: |
153+
echo "validate pod IP assignment before CNS restart"
154+
kubectl get pod -owide -A
155+
make test-validate-state
156+
echo "restart CNS"
157+
kubectl rollout restart ds azure-cns -n kube-system
158+
kubectl rollout status ds azure-cns -n kube-system
159+
kubectl get pod -owide -A
160+
echo "validate pods after CNS restart"
161+
make test-validate-state
162+
name: "restartCNS"
163+
displayName: "Restart CNS and validate pods"
164+
152165
- script: |
153166
echo "Run wireserver and metadata connectivity Tests"
154167
bash test/network/wireserver_metadata_test.sh

0 commit comments

Comments
 (0)