Skip to content

Commit 71a8ffe

Browse files
committed
ci: fix multus installation (#2622)
Multus now requires a Kubernetes CNI plugin has been installed first. This patch fixes occasional multus installation failure.
1 parent 786fea9 commit 71a8ffe

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

.github/workflows/build-x86-image.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -957,10 +957,7 @@ jobs:
957957
sudo cp -r /root/.kube/ ~/.kube/
958958
sudo chown -R $(id -un). ~/.kube/
959959
960-
- name: Install Multus
961-
run: make kind-install-multus
962-
963-
- name: Install Kube-OVN
960+
- name: Install Multus and Kube-OVN
964961
run: make kind-install-lb-svc
965962

966963
- name: Run E2E

.github/workflows/scheduled-e2e.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -702,11 +702,7 @@ jobs:
702702
sudo cp -r /root/.kube/ ~/.kube/
703703
sudo chown -R $(id -un). ~/.kube/
704704
705-
- name: Install Multus
706-
working-directory: test/e2e/kube-ovn/branches/${{ matrix.branch }}
707-
run: make kind-install-multus
708-
709-
- name: Install Kube-OVN
705+
- name: Install Multus and Kube-OVN
710706
working-directory: test/e2e/kube-ovn/branches/${{ matrix.branch }}
711707
run: |
712708
version=$(grep -E '^VERSION="v([0-9]+\.){2}[0-9]+"$' dist/images/install.sh | head -n1 | awk -F= '{print $2}' | tr -d '"')

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,9 @@ kind-install-multus:
477477
.PHONY: kind-install-lb-svc
478478
kind-install-lb-svc: kind-load-image kind-untaint-control-plane
479479
$(call kind_load_image,kube-ovn,$(VPC_NAT_GW_IMG))
480+
@$(MAKE) ENABLE_LB_SVC=true CNI_CONFIG_PRIORITY=10 kind-install
481+
@$(MAKE) kind-install-multus
480482
kubectl apply -f yamls/lb-svc-attachment.yaml
481-
sed 's/VERSION=.*/VERSION=$(VERSION)/' dist/images/install.sh | \
482-
ENABLE_LB_SVC=true CNI_CONFIG_PRIORITY=10 bash
483-
kubectl describe no
484483

485484
.PHONY: kind-install-cilium-chaining
486485
kind-install-cilium-chaining: kind-load-image kind-untaint-control-plane

0 commit comments

Comments
 (0)