Skip to content

Commit

Permalink
Bump kubevirtci, Multus and OVS
Browse files Browse the repository at this point in the history
These dependencies were quite outdated and did not pass on CI anymore.

This patch brings them up to date.

Signed-off-by: Petr Horacek <hrck@protonmail.com>
  • Loading branch information
phoracek committed May 9, 2023
1 parent 4ca57aa commit e1fbdb2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion automation/check-patch.e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ teardown() {
}

main() {
export KUBEVIRT_PROVIDER='k8s-1.23'
export KUBEVIRT_PROVIDER='k8s-1.26-centos9'

source automation/setup.sh
cd ${TMP_PROJECT_PATH}
Expand Down
4 changes: 2 additions & 2 deletions cluster/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

export KUBEVIRT_PROVIDER=${KUBEVIRT_PROVIDER:-'k8s-1.23'}
export KUBEVIRTCI_TAG=2211021552-8cca8c0
export KUBEVIRT_PROVIDER=${KUBEVIRT_PROVIDER:-'k8s-1.26-centos9'}
export KUBEVIRTCI_TAG=2305081329-48e913c

KUBEVIRTCI_REPO='https://github.com/kubevirt/kubevirtci.git'
# The CLUSTER_PATH var is used in cluster folder and points to the _kubevirtci where the cluster is deployed from.
Expand Down
11 changes: 4 additions & 7 deletions cluster/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@ $(cluster::path)/cluster-up/up.sh

echo 'Installing Open vSwitch on nodes'
for node in $(./cluster/kubectl.sh get nodes --no-headers | awk '{print $1}'); do
./cluster/cli.sh ssh ${node} -- sudo dnf install -y centos-release-nfv-openvswitch
./cluster/cli.sh ssh ${node} -- sudo dnf install -y openvswitch2.16 dpdk
./cluster/cli.sh ssh ${node} -- sudo systemctl daemon-reload
./cluster/cli.sh ssh ${node} -- sudo systemctl enable openvswitch
./cluster/cli.sh ssh ${node} -- sudo systemctl restart openvswitch
./cluster/cli.sh ssh ${node} -- sudo systemctl restart NetworkManager
done

echo 'Deploying multus'
curl https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/v3.9.1/deployments/multus-daemonset.yml -o cluster/multus-daemonset.yml
MULTUS_IMAGE=ghcr.io/k8snetworkplumbingwg/multus-cni:v3.9
sed -i "s#ghcr.io/k8snetworkplumbingwg/multus-cni:stable\$#$MULTUS_IMAGE#" cluster/multus-daemonset.yml
./cluster/kubectl.sh create -f cluster/multus-daemonset.yml
./cluster/kubectl.sh -n kube-system wait --for=condition=ready -l name=multus pod --timeout=300s
./cluster/kubectl.sh apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/v4.0.1/deployments/multus-daemonset-thick.yml
./cluster/kubectl.sh -n kube-system rollout status daemonset kube-multus-ds --timeout 300s

0 comments on commit e1fbdb2

Please sign in to comment.