Skip to content

Commit

Permalink
Update kubevirtci, 1.31 lanes (#3555)
Browse files Browse the repository at this point in the history
* Bump kvci to latest

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

* Switch testing lanes to 1.31/1.30

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

* Retry seeding images

This fails often since the most recent kvci bump,
so let's retry

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

---------

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
  • Loading branch information
akalenyu authored Dec 17, 2024
1 parent 791bbd6 commit 745e4df
Show file tree
Hide file tree
Showing 33 changed files with 122 additions and 329 deletions.
2 changes: 1 addition & 1 deletion automation/ceph-wffc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

set -ex
export TARGET=k8s-1.29
export TARGET=k8s-1.30
#ensure no hard coded cdi cr in tests.
export RANDOM_CR=true
export KUBEVIRT_STORAGE=rook-ceph-default
Expand Down
2 changes: 1 addition & 1 deletion automation/ceph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

set -ex
export TARGET=k8s-1.29
export TARGET=k8s-1.30
#ensure no hard coded cdi cr in tests.
export RANDOM_CR=true
export KUBEVIRT_STORAGE=rook-ceph-default
Expand Down
2 changes: 1 addition & 1 deletion automation/destructive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

set -ex
export TARGET=k8s-1.30
export TARGET=k8s-1.31
export KUBEVIRT_STORAGE=hpp
export KUBEVIRT_DEPLOY_PROMETHEUS=true
export CDI_E2E_FOCUS=Destructive
Expand Down
2 changes: 1 addition & 1 deletion automation/istio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

set -ex
export TARGET=k8s-1.30
export TARGET=k8s-1.31
export KUBEVIRT_STORAGE=hpp
export CDI_E2E_SKIP=Destructive
export KUBEVIRT_DEPLOY_ISTIO=true
Expand Down
2 changes: 1 addition & 1 deletion automation/latest-hpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

set -ex
export TARGET=k8s-1.30
export TARGET=k8s-1.31
export KUBEVIRT_STORAGE=hpp
export CDI_E2E_SKIP=Destructive
automation/test.sh
2 changes: 1 addition & 1 deletion automation/nfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

set -ex
export TARGET=k8s-1.30
export TARGET=k8s-1.31
export KUBEVIRT_DEPLOY_NFS_CSI=true
export KUBEVIRT_STORAGE=nfs
export CDI_E2E_SKIP=Destructive
Expand Down
2 changes: 1 addition & 1 deletion automation/non-csi-hpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

set -ex
export TARGET=k8s-1.30
export TARGET=k8s-1.31
export KUBEVIRT_STORAGE=hpp
export HPP_CLASSIC=true
export CDI_E2E_SKIP=Destructive
Expand Down
2 changes: 1 addition & 1 deletion automation/previous-hpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

set -ex
export TARGET=k8s-1.29
export TARGET=k8s-1.30
export KUBEVIRT_STORAGE=hpp
export KUBEVIRT_DEPLOY_PROMETHEUS=true
export CDI_E2E_SKIP=Destructive
Expand Down
2 changes: 1 addition & 1 deletion automation/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

set -ex
export TARGET=k8s-1.30
export TARGET=k8s-1.31
export KUBEVIRT_STORAGE=hpp
export MULTI_UPGRADE=true
export CDI_E2E_SKIP=Destructive
Expand Down
2 changes: 1 addition & 1 deletion cluster-sync/ephemeral_provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function seed_images(){

# We don't need to seed the nodes, but in the case of the default dev setup we'll just leave this here
for i in $(seq 1 ${KUBEVIRT_NUM_NODES}); do
./cluster-up/ssh.sh "node$(printf "%02d" ${i})" "echo \"${container}\" | xargs \-\-max-args=1 sudo crictl pull"
until ./cluster-up/ssh.sh "node$(printf "%02d" ${i})" "echo \"${container}\" | xargs \-\-max-args=1 sudo crictl pull"; do sleep 1; done
# Temporary until image is updated with provisioner that sets this field
# This field is required by buildah tool
./cluster-up/ssh.sh "node$(printf "%02d" ${i})" "sudo sysctl \-w user.max_user_namespaces=1024"
Expand Down
9 changes: 9 additions & 0 deletions cluster-up/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ fi

KVM_ARCH=""
KVM_NESTED="unknown"
KVM_HPAGE="unknown"
if [ -f "/sys/module/kvm_intel/parameters/nested" ]; then
KVM_NESTED=$( cat /sys/module/kvm_intel/parameters/nested )
KVM_ARCH="intel"
elif [ -f "/sys/module/kvm_amd/parameters/nested" ]; then
KVM_NESTED=$( cat /sys/module/kvm_amd/parameters/nested )
KVM_ARCH="amd"
elif [ -f "/sys/module/kvm/parameters/nested" ]; then
KVM_NESTED=$( cat /sys/module/kvm/parameters/nested )
KVM_ARCH="s390x"
KVM_HPAGE=$( cat /sys/module/kvm/parameters/hpage )
fi

function is_enabled() {
Expand All @@ -49,3 +54,7 @@ if is_enabled "$KVM_NESTED"; then
else
echo "[ERR ] $KVM_ARCH nested virtualization not enabled"
fi

if is_enabled "$KVM_HPAGE" && [ "$(uname -m)" = "s390x" ]; then
echo "[ERR ] $KVM_HPAGE KVM hugepage enabled. It needs to be disabled while nested virtualization is enabled for s390x"
fi
61 changes: 61 additions & 0 deletions cluster-up/cluster/ephemeral-provider-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,18 @@ function _add_common_params() {
params=" --single-stack $params"
fi

if [ $KUBEVIRT_NO_ETCD_FSYNC == "true" ]; then
params=" --no-etcd-fsync $params"
fi

if [ $KUBEVIRT_ENABLE_AUDIT == "true" ]; then
params=" --enable-audit $params"
fi

if [ $KUBVIRT_WITH_CNAO_SKIP_CONFIG == "true" ]; then
params=" --skip-cnao-cr $params"
fi

if [ $KUBEVIRT_DEPLOY_NFS_CSI == "true" ]; then
params=" --enable-nfs-csi $params"
fi
Expand Down Expand Up @@ -181,6 +189,59 @@ function _add_common_params() {
params=" --enable-fips $params"
fi

if [ "$KUBEVIRT_WITH_MULTUS_V3" == "true" ]; then
params=" --deploy-multus $params"
fi

if [ "$KUBEVIRT_WITH_CNAO" == "true" ]; then
params=" --enable-cnao $params"
fi

if [ "$KUBEVIRT_DEPLOY_CDI" == "true" ]; then
params=" --deploy-cdi $params"
fi

if [ -n "$KUBEVIRT_CUSTOM_CDI_VERSION" ]; then
params=" --cdi-version=$KUBEVIRT_CUSTOM_CDI_VERSION $params"
fi

if [ "$KUBEVIRT_DEPLOY_AAQ" == "true" ]; then
params=" --deploy-aaq $params"
fi

if [ -n "$KUBEVIRT_CUSTOM_AAQ_VERSION" ]; then
params=" --aaq-version=$KUBEVIRT_CUSTOM_AAQ_VERSION $params"
fi

if [ "$KUBEVIRT_KSM_ON" == "true" ]; then
params=" --enable-ksm $params"
fi

if [ ! -z $KUBEVIRT_KSM_SLEEP_BETWEEN_SCANS_MS ]; then
params=" --ksm-scan-interval=$KUBEVIRT_KSM_SLEEP_BETWEEN_SCANS_MS $params"
fi

if [ ! -z $KUBEVIRT_KSM_PAGES_TO_SCAN ]; then
params=" --ksm-page-count=$KUBEVIRT_KSM_PAGES_TO_SCAN $params"
fi

if [ "$KUBEVIRT_SWAP_ON" == "true" ]; then
params=" --enable-swap $params"
fi

if [ ! -z $KUBEVIRT_SWAP_SIZE_IN_GB ]; then
params=" --swap-size=$KUBEVIRT_SWAP_SIZE_IN_GB $params"
fi

if [ ! -z $KUBEVIRT_SWAPPINESS ]; then
params=" --swapiness=$KUBEVIRT_SWAPPINESS $params"
fi

if [ $KUBEVIRT_UNLIMITEDSWAP == "true" ]; then
params=" --unlimited-swap $params"
fi


if [ -n "$KUBEVIRTCI_PROXY" ]; then
params=" --docker-proxy=$KUBEVIRTCI_PROXY $params"
fi
Expand Down
9 changes: 9 additions & 0 deletions cluster-up/cluster/external/provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ manifest_docker_prefix=\${DOCKER_PREFIX}
image_pull_policy=\${IMAGE_PULL_POLICY:-Always}
EOF

if [ -n "$KUBECTL" ]; then
echo "kubectl=${KUBECTL}" >> "$PROVIDER_CONFIG_FILE_PATH"
else
if which kubectl; then
echo "kubectl=$(which kubectl)" >> "$PROVIDER_CONFIG_FILE_PATH"
fi
fi


if which oc; then
echo "oc=$(which oc)" >> "$PROVIDER_CONFIG_FILE_PATH"
fi
Expand Down
File renamed without changes.
Loading

0 comments on commit 745e4df

Please sign in to comment.