Skip to content

Commit

Permalink
ci: fix multus installation (#2622)
Browse files Browse the repository at this point in the history
Multus now requires a Kubernetes CNI plugin has been installed first.
This patch fixes occasional multus installation failure.
  • Loading branch information
zhangzujian committed Apr 8, 2023
1 parent 786fea9 commit 71a8ffe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -957,10 +957,7 @@ jobs:
sudo cp -r /root/.kube/ ~/.kube/
sudo chown -R $(id -un). ~/.kube/
- name: Install Multus
run: make kind-install-multus

- name: Install Kube-OVN
- name: Install Multus and Kube-OVN
run: make kind-install-lb-svc

- name: Run E2E
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/scheduled-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -702,11 +702,7 @@ jobs:
sudo cp -r /root/.kube/ ~/.kube/
sudo chown -R $(id -un). ~/.kube/
- name: Install Multus
working-directory: test/e2e/kube-ovn/branches/${{ matrix.branch }}
run: make kind-install-multus

- name: Install Kube-OVN
- name: Install Multus and Kube-OVN
working-directory: test/e2e/kube-ovn/branches/${{ matrix.branch }}
run: |
version=$(grep -E '^VERSION="v([0-9]+\.){2}[0-9]+"$' dist/images/install.sh | head -n1 | awk -F= '{print $2}' | tr -d '"')
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,9 @@ kind-install-multus:
.PHONY: kind-install-lb-svc
kind-install-lb-svc: kind-load-image kind-untaint-control-plane
$(call kind_load_image,kube-ovn,$(VPC_NAT_GW_IMG))
@$(MAKE) ENABLE_LB_SVC=true CNI_CONFIG_PRIORITY=10 kind-install
@$(MAKE) kind-install-multus
kubectl apply -f yamls/lb-svc-attachment.yaml
sed 's/VERSION=.*/VERSION=$(VERSION)/' dist/images/install.sh | \
ENABLE_LB_SVC=true CNI_CONFIG_PRIORITY=10 bash
kubectl describe no

.PHONY: kind-install-cilium-chaining
kind-install-cilium-chaining: kind-load-image kind-untaint-control-plane
Expand Down

0 comments on commit 71a8ffe

Please sign in to comment.