Installation Guide
- Set up a Kubernetes cluster following the official documentation.
 - Proceed to the Prerequisite.
 - Complete the base installation.
 - Proceed with module installation.
 
Install Helm 3.0
Install Helm 3.0 on the master node before you install the CSI Driver for Unity XT.
Steps
Run the command to install Helm 3.0.
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
Installation Wizard Support Matrix Click Here
            
            
            The Container Storage Modules Installation Wizard is a webpage that helps you create a manifest file to install Dell CSI Drivers and CSM Modules. Users can enable or disable modules through the UI, and it generates a single manifest file, eliminating the need to download individual Helm charts for drivers and modules.
Note:Ensure Helm 3.x, namespace, and secrets are set up before installing the Helm chart.
Generate Manifest File
- Open the CSM Installation Wizard.
 - Select the 
Installation TypeasHelm/Operator. - Select the 
Array. - Enter the 
Image Repository. The default value isdellemc. - Select the 
CSM Version. - Select the modules for installation. If there are module specific inputs, enter their values.
 - If needed, modify the 
Controller Pods Count. - If needed, select 
Install Controller Pods on Control Planeand/orInstall Node Pods on Control Plane. - Enter the 
Namespace. The default value iscsi-<array>. - Click on 
Generate YAML. - A manifest file, 
values.yamlwill be generated and downloaded. - A section 
Run the following commands to installwill be displayed. - Run the commands displayed to install Dell CSI Driver and Modules using the generated manifest file.
 
Installation Using Helm Chart
Steps
NOTE: Ensure Helm 3.x, namespace, and secrets are set up before installing the Helm chart.
- 
            
Add the Dell Helm Charts repository.
On your terminal, run each of the commands below:
helm repo add dell https://dell.github.io/helm-charts helm repo update - 
            
Copy the downloaded
values.yamlfile. - 
            
Look over all the fields in the generated
values.yamland fill in/adjust any as needed. 
NOTE: The CSM Installation Wizard generates
values.yamlwith the minimal inputs required to install the CSM. To configure additional parameters in values.yaml, you can follow the steps outlined in CSI Driver ,Resiliency.
- 
            
If your Kubernetes distribution doesn’t have the Volume Snapshot feature enabled, refer to this section to install the Volume Snapshot CRDs and the default snapshot controller.
 - 
            
Install the Helm chart.
On your terminal, run this command:
helm install <release-name> dell/container-storage-modules -n <namespace> --version <container-storage-module chart-version> -f <values.yaml location>Example: helm install unity dell/container-storage-modules -n csi-unity –version 1.8.1 -f values.yaml
 
Install Driver
Install CSI Driver for Unity XT using this procedure.
Before you begin
- As a pre-requisite for running this procedure, you must have the downloaded files, including the Helm chart from the source git repository with the command
git clone -b v2.15.0 https://github.com/dell/csi-unity.git - In the top-level dell-csi-helm-installer directory, there should be two scripts, 
csi-install.shandcsi-uninstall.sh. - Ensure unity namespace exists in Kubernetes cluster. Use the 
kubectl create namespace unitycommand to create the namespace if the namespace is not present. 
Procedure
- 
Collect information from the Unity XT Systems like unique ArrayId, IP address, username, and password. Make a note of the value for these parameters as they must be entered in the
secret.yamlandmyvalues.yamlfile.Note:
- ArrayId corresponds to the serial number of Unity XT array.
 - Unity XT Array username must have role as Storage Administrator to be able to perform CRUD operations.
 - If the user is using a complex K8s version like “v1.24.6-mirantis-1”, use this kubeVersion check in helm/csi-unity/Chart.yaml file. kubeVersion: “>= 1.24.0-0 < 1.29.0-0”
 
 - 
Get the required values.yaml using the command below:
 
cd dell-csi-helm-installer && wget -O my-unity-settings.yaml https://github.com/dell/helm-charts/raw/csi-unity-2.15.0/charts/csi-unity/values.yaml
- 
Edit
values.yamlto set the following parameters for your installation:The following table lists the primary configurable parameters of the Unity XT driver chart and their default values. More detailed information can be found in the
values.yamlfile in this repository. 
Example myvalues.yaml
  logLevel: "info"
  imagePullPolicy: Always
  certSecretCount: 1
  kubeletConfigDir: /var/lib/kubelet
  controller:
    controllerCount: 2
    volumeNamePrefix : csivol
    snapshot:
      enabled: true
      snapNamePrefix: csi-snap
    resizer:
      enabled: false
  allowRWOMultiPodAccess: false
  syncNodeInfoInterval: 5
  maxUnityVolumesPerNode: 0
  fsGroupPolicy: ReadWriteOneFSType
- 
For certificate validation of Unisphere REST API calls refer here. Otherwise, create an empty secret with file
csi-unity/samples/secret/emptysecret.yamlfile by running thekubectl create -f csi-unity/samples/secret/emptysecret.yamlcommand. - 
Prepare the
secret.yamlfor driver configuration. The following table lists driver configuration parameters for multiple storage arrays. 
Example: secret.yaml
storageArrayList:
- arrayId: "APM00******1"
username: "user"
password: "password"
endpoint: "https://10.1.1.1/"
skipCertificateValidation: true
isDefault: true
- arrayId: "APM00******2"
username: "user"
password: "password"
endpoint: "https://10.1.1.2/"
skipCertificateValidation: true
isDefault: false
Use the following command to create a new secret unity-creds from secret.yaml file.
kubectl create secret generic unity-creds -n unity --from-file=config=secret.yaml
Use the following command to replace or update the secret:
kubectl create secret generic unity-creds -n unity --from-file=config=secret.yaml -o yaml --dry-run | kubectl replace -f -
Note: The user needs to validate the yaml syntax and array-related key/values while replacing the unity-creds secret. The driver will continue to use previous values in case of an error found in the yaml file.
Alternatively, users can configure and use secret.yaml for driver configuration. The parameters remain the same as in the above table and below is a sample of secret.yaml. Samples of  secret.yaml is available in the directory csi-unity/samples/secret/ .
Example: secret.yaml
storageArrayList:
- arrayId: "APM00******1"
  username: "user"
  password: "password"
  endpoint: "https://10.1.1.1/"
  skipCertificateValidation: true
  isDefault: true
- arrayId: "APM00******2"
  username: "user"
  password: "password"
  endpoint: "https://10.1.1.2/"
  skipCertificateValidation: true
  isDefault: false
Note: Parameters “allowRWOMultiPodAccess” and “syncNodeInfoInterval” have been enabled for configuration in values.yaml and this helps users to dynamically change these values without the need for driver re-installation.
- 
If you want to leverage snapshotting feature, the pre-requisite is to install external-snapshotter. Installation of external-snapshotter is required only for Kubernetes and is available by default with OpenShift installations. Click here to follow the procedure to install external-snapshotter.
 - 
Run the command to proceed with the installation using bash script.
./csi-install.sh --namespace unity --values ./myvalues.yaml --helm-charts-version <version>NOTE:
- The parameter 
--helm-charts-versionis optional and if you do not specify the flag, by default thecsi-install.shscript will clone the version of the helm chart that is specified in the driver’s csi-install.sh file. If you wish to install the driver using a different version of the helm chart, you need to include this flag. Also, remember to delete thehelm-chartsrepository present in thecsi-unitydirectory if it was cloned before. 
A successful installation must display messages that look similar to the following samples:
------------------------------------------------------ > Installing CSI Driver: csi-unity on 1.27 ------------------------------------------------------ ------------------------------------------------------ > Checking to see if CSI Driver is already installed ------------------------------------------------------ ------------------------------------------------------ > Verifying Kubernetes and driver configuration ------------------------------------------------------ |- Kubernetes Version: 1.27 | |- Driver: csi-unity | |- Verifying Kubernetes version | |--> Verifying minimum Kubernetes version Success | |--> Verifying maximum Kubernetes version Success | |- Verifying that required namespaces have been created Success | |- Verifying that required secrets have been created Success | |- Verifying that optional secrets have been created Success | |- Verifying alpha snapshot resources | |--> Verifying that alpha snapshot CRDs are not installed Success | |- Verifying sshpass installation.. | |- Verifying iSCSI installation Enter the root password of 10.**.**.**: Enter the root password of 10.**.**.**: Success | |- Verifying snapshot support | |--> Verifying that snapshot CRDs are available Success | |--> Verifying that the snapshot controller is available Success | |- Verifying helm version Success | |- Verifying helm values version Success ------------------------------------------------------ > Verification Complete - Success ------------------------------------------------------ | |- Installing Driver Success | |--> Waiting for Deployment unity-controller to be ready Success | |--> Waiting for DaemonSet unity-node to be ready Success ------------------------------------------------------ > Operation complete ------------------------------------------------------Results:
At the end of the script unity-controller Deployment and DaemonSet unity-node will be ready, execute command
kubectl get pods -n unityto get the status of the pods and you will see the following:- One or more Unity XT Controllers (based on controllerCount) with 5/5 containers ready, and status displayed as Running.
 - Agent pods with 2/2 containers and the status displayed as Running.
 
Note: To install nightly or latest csi driver build using bash script use this command:
/csi-install.sh --namespace unity --values ./myvalues.yaml --version latest --helm-charts-version <version> - The parameter 
 - 
You can also install the driver using standalone helm chart by cloning the centralised helm charts and running the helm install command as shown.
Syntax:
git clone -b csi-unity-2.15.0 https://github.com/dell/helm-charts helm install <release-name> dell/container-storage-modules -n <namespace> --version <container-storage-module chart-version> -f <values.yaml location> Example: helm install unity dell/container-storage-modules -n csi-unity --version 1.0.1 -f values.yaml 
Certificate validation for Unisphere REST API calls
This topic provides details about setting up the Dell Unity XT certificate validation for the CSI Driver.
Before you begin
As part of the CSI driver installation, the CSI driver requires a secret with the name unity-certs-0 to unity-certs-n based on the “.Values.certSecretCount” parameter present in the namespace unity.
This secret contains the X509 certificates of the CA which signed the Unisphere SSL certificate in PEM format.
If the install script does not find the secret, it creates one empty secret with the name unity-certs-0.
If this secret is an empty secret, then the validation of the certificate fails, and the driver fails to start.
If the Unisphere certificate is self-signed or if you are using an embedded Unisphere, then perform the following steps.
- 
To fetch the certificate, run the following command.
openssl s_client -showcerts -connect <Unisphere IP:Port> </dev/null 2>/dev/null | openssl x509 -outform PEM > ca_cert_0.pemExample:
openssl s_client -showcerts -connect 1.1.1.1:443 </dev/null 2>/dev/null | openssl x509 -outform PEM > ca_cert_0.pem - 
Run the following command to create the cert secret with index ‘0’:
kubectl create secret generic unity-certs-0 --from-file=cert-0=ca_cert_0.pem -n unityUse the following command to replace the secret:
kubectl create secret generic unity-certs-0 -n unity --from-file=cert-0=ca_cert_0.pem -o yaml --dry-run | kubectl replace -f - - 
Repeat step 1 and 2 to create multiple cert secrets with incremental index (example: unity-certs-1, unity-certs-2, etc)
Note:
- 
“unity” is the namespace for helm-based installation but namespace can be user-defined in operator-based installation.
 - 
User can add multiple certificates in the same secret. The certificate file should not exceed more than 1Mb due to Kubernetes secret size limitation.
 - 
Whenever certSecretCount parameter changes in
myvalues.yamluser needs to uninstall and install the driver. 
 - 
 
Volume Snapshot Class
A wide set of annotated storage class manifests have been provided in the csi-unity/samples/volumesnapshotclass/ folder. Use these samples to create new Volume Snapshot to provision storage.
Storage Classes
Storage Classes are an essential Kubernetes construct for Storage provisioning. To know more about Storage Classes, refer to https://kubernetes.io/docs/concepts/storage/storage-classes/
A wide set of annotated storage class manifests have been provided in the samples/storageclass folder. Use these samples to create new storage classes to provision storage.
For the Unity XT CSI Driver, a wide set of annotated storage class manifests have been provided in the csi-unity/samples/storageclass folder. Use these samples to create new storage classes to provision storage.
What happens to my existing storage classes?
Upgrading from an older version of the driver: The storage classes will be deleted if you upgrade the driver. If you wish to continue using those storage classes, you can patch them and apply the annotation “helm.sh/resource-policy”: keep before performing an upgrade.
Note: If you continue to use the old storage classes, you may not be able to take advantage of any new storage class parameter supported by the driver.
Steps to create storage class:
There are samples storage class yaml files available under csi-unity/samples/storageclass.  These can be copied and modified as needed.
- Pick any of 
unity-fc.yaml,unity-iscsi.yamlorunity-nfs.yaml - Copy the file as 
unity-<ARRAY_ID>-fc.yaml,unity-<ARRAY_ID>-iscsi.yamlorunity-<ARRAY_ID>-nfs.yaml - Replace 
<ARRAY_ID>with the Array Id of the Unity Array to be used - Replace 
<STORAGE_POOL>with the storage pool you have - Replace 
<TIERING_POLICY>with the Tiering policy that is to be used for provisioning - Replace 
<HOST_IO_LIMIT_NAME>with the Host IO Limit Name that is to be used for provisioning - Replace 
<mountOption1>with the necessary mount options. If not required, this can be removed from the storage class - Edit 
storageclass.kubernetes.io/is-default-classto true if you want to set it as default, otherwise false. - Save the file and create it by using 
kubectl create -f unity-<ARRAY_ID>-fc.yamlorkubectl create -f unity-<ARRAY_ID>-iscsi.yamlorkubectl create -f unity-<ARRAY_ID>-nfs.yaml 
Note:
- At least one storage class is required for one array.
 - If you uninstall the driver and reinstall it, you can still face errors if any update in the 
values.yamlfile leads to an update of the storage class(es): 
    Error: cannot patch "<sc-name>" with kind StorageClass: StorageClass.storage.k8s.io "<sc-name>" is invalid: parameters: Forbidden: updates to parameters are forbidden
In case you want to make such updates, ensure to delete the existing storage classes using the kubectl delete storageclass command.
Deleting a storage class has no impact on a running Pod with mounted PVCs. You cannot provision new PVCs until at least one storage class is newly created.
Dynamically update the unity-creds secrets
Users can dynamically add delete array information from secret. Whenever an update happens the driver updates the “Host” information in an array. User can update secret using the following command:
kubectl create secret generic unity-creds -n unity --from-file=config=secret.yaml -o yaml --dry-run=client | kubectl replace -f -
Note: Updating unity-certs-x secrets is a manual process, unlike unity-creds. Users have to re-install the driver in case of updating/adding the SSL certificates or changing the certSecretCount parameter.
Dynamic Logging Configuration
Helm based installation
As part of driver installation, a ConfigMap with the name unity-config-params is created, which contains an attribute CSI_LOG_LEVEL which specifies the current log level of CSI driver.
Users can set the default log level by specifying log level to logLevel attribute in values.yaml during driver installation.
To change the log level dynamically to a different value user can edit the same values.yaml, and run the following command
cd dell-csi-helm-installer
./csi-install.sh --namespace unity --values ./myvalues.yaml --upgrade
Note: myvalues.yaml is a values.yaml file which user has used for driver installation.