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 84a910b commit c0ab835
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build-x86-image.yaml
Expand Up @@ -1104,17 +1104,13 @@ 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
working-directory: ${{ env.E2E_DIR }}
run: make kube-ovn-lb-svc-conformance-e2e


kubevirt-e2e:
name: Kubevirt vm E2E
needs:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/scheduled-e2e.yaml
Expand Up @@ -739,11 +739,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
Expand Up @@ -617,10 +617,9 @@ kind-install-kubevirt: kind-load-image kind-untaint-control-plane
.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-webhook
kind-install-webhook: kind-install
Expand Down

0 comments on commit c0ab835

Please sign in to comment.