diff --git a/.github/workflows/canary-integration-test.yml b/.github/workflows/canary-integration-test.yml index 45868ba52..2059d4ab9 100644 --- a/.github/workflows/canary-integration-test.yml +++ b/.github/workflows/canary-integration-test.yml @@ -1400,6 +1400,10 @@ jobs: - name: test ceph-csi-cephfs plugin restart run: tests/scripts/github-action-helper.sh test_csi_cephfs_workload + # uncomment once https://github.com/rook/rook/issues/10812 is resolved. + # - name: test ceph-csi-nfs plugin restart + # run: tests/scripts/github-action-helper.sh test_csi_nfs_workload + - name: collect common logs if: always() uses: ./.github/workflows/collect-logs @@ -1456,6 +1460,9 @@ jobs: - name: test ceph-csi-cephfs plugin restart run: tests/scripts/github-action-helper.sh test_csi_cephfs_workload + - name: test ceph-csi-nfs plugin restart + run: tests/scripts/github-action-helper.sh test_csi_nfs_workload + - name: collect common logs if: always() uses: ./.github/workflows/collect-logs diff --git a/deploy/examples/images.txt b/deploy/examples/images.txt index 26f79559f..984aa8f05 100644 --- a/deploy/examples/images.txt +++ b/deploy/examples/images.txt @@ -7,9 +7,4 @@ registry.k8s.io/sig-storage/csi-provisioner:v3.2.1 registry.k8s.io/sig-storage/csi-resizer:v1.5.0 registry.k8s.io/sig-storage/csi-snapshotter:v6.0.1 -<<<<<<< HEAD - registry.k8s.io/sig-storage/nfsplugin:v4.0.0 rook/ceph:v1.10.0 -======= - rook/ceph:master ->>>>>>> 772222652 (csi: remove nfs image) diff --git a/tests/scripts/github-action-helper.sh b/tests/scripts/github-action-helper.sh index 0c000094b..f9bddacf0 100755 --- a/tests/scripts/github-action-helper.sh +++ b/tests/scripts/github-action-helper.sh @@ -164,7 +164,7 @@ function build_rook_all() { function validate_yaml() { cd deploy/examples - kubectl create -f crds.yaml -f common.yaml + kubectl create -f crds.yaml -f common.yaml -f csi/nfs/rbac.yaml # create and use PSPs on k8s versions older than 1.21 kube_minor_ver="$(kubectl version -o json | jq -r '.serverVersion.minor')" @@ -192,10 +192,11 @@ function validate_yaml() { function create_cluster_prerequisites() { # this might be called from another function that has already done a cd - (cd deploy/examples && kubectl create -f crds.yaml -f common.yaml) + ( cd deploy/examples && kubectl create -f crds.yaml -f common.yaml -f csi/nfs/rbac.yaml ) } function deploy_manifest_with_local_build() { + sed -i 's/.*ROOK_CSI_ENABLE_NFS:.*/ ROOK_CSI_ENABLE_NFS: \"true\"/g' $1 if [[ "$USE_LOCAL_BUILD" != "false" ]]; then sed -i "s|image: rook/ceph:.*|image: rook/ceph:local-build|g" $1 fi @@ -254,6 +255,7 @@ function deploy_csi_hostnetwork_disabled_cluster() { elif [ "$1" = "osd_with_metadata_device" ]; then sed -i "s|#deviceFilter:|deviceFilter: ${BLOCK/\/dev\//}\n config:\n metadataDevice: /dev/test-rook-vg/test-rook-lv|g" cluster-test.yaml fi + kubectl create -f nfs-test.yaml kubectl create -f cluster-test.yaml kubectl create -f filesystem-test.yaml deploy_manifest_with_local_build toolbox.yaml @@ -467,11 +469,14 @@ EOF function deploy_multus_cluster() { cd deploy/examples + sed -i 's/.*ROOK_CSI_ENABLE_NFS:.*/ ROOK_CSI_ENABLE_NFS: \"true\"/g' operator.yaml deploy_manifest_with_local_build operator.yaml deploy_manifest_with_local_build toolbox.yaml sed -i "s|#deviceFilter:|deviceFilter: ${BLOCK/\/dev\//}|g" cluster-multus-test.yaml kubectl create -f cluster-multus-test.yaml kubectl create -f filesystem-test.yaml + # uncomment once https://github.com/rook/rook/issues/10812 is resolved. + # kubectl create -f nfs-test.yaml } function wait_for_ceph_csi_configmap_to_be_updated { @@ -487,6 +492,12 @@ until [[ $(kubectl -n rook-ceph get configmap rook-ceph-csi-config -o jsonpath=" sleep 5 done EOF +timeout 60 bash <