Test PowerStore CSI Driver
In the repository, a simple test manifest exists that creates three different PersistentVolumeClaims using default ext4, xfs, and nfs storage classes and automatically mounts them to the pod.
It assumes that you’ve created the same basic three storage classes from
samples/storageclass
folder without changing their names. If you’ve created different storage classes please edittests/simple/simple.yaml
and changePersistentVolumeClaim
definitions to point to correct storage classes.
Steps
- To run this test, run the kubectl command from the root directory of the repository:
kubectl create -f ./tests/simple/
You can find all the created resources in testpowerstore
namespace.
-
Check if the pod is created and Ready and Running by running:
kubectl get all -n testpowerstore
If it’s in CrashLoopback state then the driver installation wasn’t successful. Check the logs of the node and the controller.
-
Go into the created container and verify that everything is mounted correctly.
-
After verifying, you can uninstall the testing PVCs and StatefulSet.
kubectl delete -f ./tests/simple/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.