Skip to content

Commit 6b805e5

Browse files
authored
fix: Updating the vmsize for e2e cilium to avoid resource scarcity (#2014)
CI: Testing the e2e test for cilium
1 parent fa2de6d commit 6b805e5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ steps:
3232
mkdir -p ~/.kube/
3333
echo "Create AKS Overlay cluster"
3434
make -C ./hack/swift azcfg AZCLI=az REGION=$(REGION_OVERLAY_CLUSTER_TEST)
35-
make -C ./hack/swift overlay-no-kube-proxy-up AZCLI=az REGION=$(REGION_OVERLAY_CLUSTER_TEST) SUB=$(SUB_AZURE_NETWORK_AGENT_TEST) CLUSTER=${{ parameters.clusterName }}-$(make revision)
35+
make -C ./hack/swift overlay-no-kube-proxy-up AZCLI=az REGION=$(REGION_OVERLAY_CLUSTER_TEST) SUB=$(SUB_AZURE_NETWORK_AGENT_TEST) CLUSTER=${{ parameters.clusterName }}-$(make revision) VM_SIZE=Standard_B2ms
3636
echo "Cluster successfully created"
3737
displayName: Create Overlay cluster
3838
condition: succeeded()
@@ -109,6 +109,9 @@ steps:
109109
displayName: "Run Azilium E2E on AKS Overlay"
110110
111111
- script: |
112+
echo "Status of the nodes and pods after the test"
113+
kubectl get nodes -o wide
114+
kubectl get pods -A -o wide
112115
echo "Logs will be available as a build artifact"
113116
ARTIFACT_DIR=$(Build.ArtifactStagingDirectory)/test-output/
114117
echo $ARTIFACT_DIR

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ steps:
3232
mkdir -p ~/.kube/
3333
echo "Create AKS cluster"
3434
make -C ./hack/swift azcfg AZCLI=az REGION=$(REGION_AKS_CLUSTER_TEST)
35-
make -C ./hack/swift swift-no-kube-proxy-up AZCLI=az REGION=$(REGION_AKS_CLUSTER_TEST) SUB=$(SUB_AZURE_NETWORK_AGENT_TEST) CLUSTER=${{ parameters.clusterName }}-$(make revision)
35+
make -C ./hack/swift swift-no-kube-proxy-up AZCLI=az REGION=$(REGION_AKS_CLUSTER_TEST) SUB=$(SUB_AZURE_NETWORK_AGENT_TEST) CLUSTER=${{ parameters.clusterName }}-$(make revision) VM_SIZE=Standard_B2ms
3636
echo "Cluster successfully created"
3737
displayName: Create test cluster
3838
condition: succeeded()
@@ -93,6 +93,9 @@ steps:
9393
displayName: "Run Azilium E2E"
9494
9595
- script: |
96+
echo "Status of the nodes and pods after the test"
97+
kubectl get nodes -o wide
98+
kubectl get pods -A -o wide
9699
echo "Logs will be available as a build artifact"
97100
ARTIFACT_DIR=$(Build.ArtifactStagingDirectory)/test-output/
98101
echo $ARTIFACT_DIR

test/internal/k8sutils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func WaitForPodsRunning(ctx context.Context, clientset *kubernetes.Clientset, na
224224

225225
for _, pod := range podList.Items {
226226
if pod.Status.PodIP == "" {
227-
return errors.New("a pod has not been allocated an IP")
227+
return errors.Wrapf(err, "Pod %s/%s has not been allocated an IP yet with reason %s", pod.Namespace, pod.Name, pod.Status.Message)
228228
}
229229
}
230230

0 commit comments

Comments
 (0)