Running the CSI Tests
On the test client, place the kubeconfig.yaml and manifest.yaml files in the current working directory, and run the following command:
podman run -v `pwd`:/data:z --rm -it registry.redhat.io/openshift4/ose-tests sh -c "KUBECONFIG=/data/kubeconfig.yaml TEST_CSI_DRIVER_FILES=/data/manifest.yaml /usr/bin/openshift-tests run openshift/csi --junit-dir /data/results"
If tests are executed on a version of OpenShift older than the latest release, make sure to add the right tag to the container image name: registry.redhat.io/openshift4/ose-tests:<tag> . See the ose-tests repository page for a list of available tags.
The output of the command will include a summary of the tests for the CSI capabilities and for OpenShift Virtualization (CNV). Here is a sample:
1
Storage Capabilities (guaranteed only on full CSI test suite with 0 fails)
2
==========================================================================
3
Driver short name: ceph-test
4
Driver name: test.rbd.csi.ceph.com
5
Storage class: ceph-rbd-sc.yaml
6
Supported OpenShift / CSI features:
7
Persistent volumes: true
8
Raw block mode: true
9
FSGroup: true
10
Executable files on a volume: true
11
Volume snapshots: true
12
Volume cloning: true
13
Use volume from multiple pods on a node:true
14
ReadWriteMany access mode: true
15
Volume expansion for controller: true
16
Volume expansion for node: true
17
Volume limits: true
18
Volume can run on single node: true
19
Topology: true
20
Supported CNV features:
21
Raw block VM disks: true
22
Live migration: true
23
VM snapshots: true
24
Storage-assisted cloning: true
Copied!
Detailed results will be placed in the results subdirectory.
If you just want to see a list of the tests that would be executed, run the following command: podman run -v `pwd`:/data:z --rm -it registry.redhat.io/openshift4/ose-tests sh -c "KUBECONFIG=/data/kubeconfig.yaml TEST_CSI_DRIVER_FILES=/data/manifest.yaml /usr/bin/openshift-tests run --dry-run openshift/csi"
Note that separate tests must be executed for each storage protocol supported.
Last modified 1yr ago
Copy link