Installing IBM Storage Scale DAS
After configuring and verifying the installation prerequisites, complete the following steps to install IBM Storage Scale DAS in your Red Hat OpenShift Container Platform (OCP) cluster.
To install IBM Storage Scale DAS, you need the manifest file from the GitHub repository.
- To install IBM Storage Scale DAS, apply the
manifest file from the GitHub repository, as shown in the following example:
oc apply -f https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-container-native/v5.1.9.x/generated/das/install.yaml
Running the preceding step sets up the Red Hat OpenShift namespace for IBM Storage Scale DAS (ibm-spectrum-scale-das) and
tries to pull the operator image. The IBM Storage Scale DAS
images are pulled from IBM Cloud Container Registry (ICR), using the global pull secret configured
to pull IBM Storage Scale container native images. For more
information, see Adding IBM Cloud container registry credentials.
- After some time, the IBM Storage Scale DAS namespace will have three running pods, one IBM Storage Scale operator and two IBM Storage Scale DAS endpoint pods for the management of IBM Storage Scale DAS.
- From a node configured to work with the OCP cluster, view the details of the
ibm-spectrum-scale-dasnamespace.For example,
A sample output is as follows:oc get pods -n ibm-spectrum-scale-dasNAME READY STATUS RESTARTS AGE ibm-spectrum-scale-das-controller-manager-5778d55476-9mgt9 2/2 Running 0 102s ibm-spectrum-scale-das-endpoint-696bc8fcb9-k7fcp 1/1 Running 0 67s ibm-spectrum-scale-das-endpoint-696bc8fcb9-rtkb8 1/1 Running 0 67sThe IBM Storage Scale DAS operator deploys and configures Red Hat OpenShift Data Foundation (ODF). At this stage of the installation process, the IBM Storage Scale DAS operator sets up the namespace for openshift-storage and deploys the initial pods. You can view the details of the openshift-storage namespace as follows:
A sample output is as follows:oc -n openshift-storage get podsNAME READY STATUS RESTARTS AGE csi-addons-controller-manager-5cf799f75d-wc6g4 2/2 Running 0 3m20s noobaa-operator-777fd9f598-k9tm6 1/1 Running 0 3m20s ocs-metrics-exporter-646b65d57b-pvcwn 1/1 Running 0 3m20s ocs-operator-6db866c6fd-h5kgj 1/1 Running 0 3m20s odf-console-5b96f969cb-xzxxv 1/1 Running 0 3m20s odf-operator-controller-manager-6b47f4fb68-6t7ss 2/2 Running 0 3m20s rook-ceph-operator-5b5c67ff7b-7h45x 1/1 Running 0 3m20s
By default, Red Hat OpenShift sets the Security Context Constraints (SCCs) for the new Red Hat OpenShift namespaces. All pods started in a namespace inherit their SCCs from their namespace.
- If you have enabled SELinux on the IBM Storage Scale
cluster, then follow this step. Verify the Red Hat OpenShift SCCs for the openshift-storage
namespace. For example,
A sample output is as follows:oc describe namespace openshift-storage | grep sccAnnotations: openshift.io/sa.scc.mcs: s0:c26,c25 openshift.io/sa.scc.supplemental-groups: 1000700000/10000 openshift.io/sa.scc.uid-range: 1000700000/10000Note: The example output shows the SCCs for the openshift-storage namespace and its pods after initial IBM Storage Scale DAS installation. The SELinux Multi-Category Security (MCS) labels that are configured for the IBM Storage Scale file system (s0:c111,c234) are different MCS labels chosen by Red Hat OpenShift for the SCCs of the openshift-storage namespace and its pods.
A sample output is as follows:oc -n openshift-storage get pods -o yaml | grep "level: s"level: s0:c26,c25 level: s0:c26,c25 level: s0:c26,c25 level: s0:c26,c25 level: s0:c26,c25 level: s0:c26,c25Note: The Red Hat OpenShift SCCs for SELinux MCS labels of the pods in the openshift-storage namespace must match the SELinux MCS labels that are configured for the IBM Storage Scale file system. You can do this by updating the Red Hat OpenShift SCCs of the openshift-storage namespace and restarting all the pods in the namespace. - If you have enabled SELinux on the IBM Storage Scalecluster, then follow this step. Set the Red Hat OpenShift SCC of the openshift-storage namespace
to the MCS labels for the IBM Storage Scale file system, which
is s0:c11,c324. For example,
oc annotate namespace openshift-storage --overwrite openshift.io/sa.scc.mcs="s0:c111,c234"- View the Red Hat OpenShift SCCs of the openshift-storage namespace. For example,
A sample output is as follows:oc describe namespace openshift-storage | grep sccAnnotations: openshift.io/sa.scc.mcs: s0:c111,c234 openshift.io/sa.scc.supplemental-groups: 1000700000/10000 openshift.io/sa.scc.uid-range: 1000700000/10000Note: Running pods retain their OpenShift SCCs. Therefore, all pods in the openshift-storage namespace must be terminated, so that they get re-created with the updated Red Hat OpenShift SCCs. - Terminate all pods in the openshift-storage namespace. For example,
A sample output is as follows:oc -n openshift-storage delete --all podspod "noobaa-operator-849c98d5fc-pn4mz" deleted pod "ocs-metrics-exporter-6667498545-xzmjt" deleted pod "ocs-operator-6bffb7469d-857lb" deleted pod "odf-console-67cdbb6855-drdtd" deleted pod "odf-operator-controller-manager-64fcc74877-kbq42" deleted pod "rook-ceph-operator-7f9fc99d87-dmfpj" deleted - List all re-created pods in the openshift-storage namespace. For example,
A sample output is as follows:oc -n openshift-storage get podsNAME READY STATUS RESTARTS AGE csi-addons-controller-manager-5cf799f75d-r8r7s 2/2 Running 0 20s noobaa-operator-777fd9f598-6vrjx 1/1 Running 0 20s ocs-metrics-exporter-646b65d57b-tgmg4 1/1 Running 0 20s ocs-operator-6db866c6fd-f586t 1/1 Running 0 20s odf-console-5b96f969cb-59jsq 1/1 Running 0 20s odf-operator-controller-manager-6b47f4fb68-pddtk 2/2 Running 0 20s rook-ceph-operator-5b5c67ff7b-77jgj 1/1 Running 0 20s - If you have enabled SELinux on the IBM Storage Scale cluster, then follow this step.
Verify that the SCC of the openshift-storage namespace are updated to the IBM Storage Scale MCS labels. For example,
A sample output is as follows:oc -n openshift-storage get pods -o yaml | grep "level: s"level: s0:c111,c234 level: s0:c111,c234 level: s0:c111,c234 level: s0:c111,c234 level: s0:c111,c234 level: s0:c111,c234
- View the Red Hat OpenShift SCCs of the openshift-storage namespace.
IBM Storage Scale DAS CLI and REST API require
access to the IBM Storage Scale GUI of the IBM Storage Scale container native cluster. This involves configuring an
administrator user for IBM Storage Scale DAS in the
IBM Storage Scale GUI and a respective secret in the
ibm-spectrum-scale-das namespace.
- From a node configured to work with the OCP cluster, configure access to the IBM Storage Scale GUI.
- Configure an administrator user in the IBM Storage Scale GUI of the IBM Storage Scale container native cluster. For example,
A sample output is as follows:oc -n ibm-spectrum-scale exec -c liberty ibm-spectrum-scale-gui-0 -- /usr/lpp/mmfs/gui/cli/mkuser s3-admin -p Passw0rd -g 'ProtocolAdmin'EFSSG0019I The user s3-admin has been successfully created. EFSSG1000I The command completed successfully. - Configure the secret with the credentials of the administrator user in the IBM Storage Scale DAS namespace. For example,
A sample output is as follows:oc -n ibm-spectrum-scale-das create secret generic das-gui-user --from-literal=username='s3-admin' --from-literal=password='Passw0rd'secret/das-gui-user createdNote: GUI user passwords expire after 90 days by default. Changing these passwords requires you to schedule a short maintenance window for IBM Storage Scale DAS. For more information, see Changing GUI user passwords.
- Configure an administrator user in the IBM Storage Scale GUI of the IBM Storage Scale container native cluster.
The IBM Storage Scale DAS CLI, mmdas, is shipped with the IBM Storage Scale DAS endpoint pods.
- From a node configured to work with the OCP cluster, install the IBM Storage Scale DAS CLI.
- Verify that the IBM Storage Scale DAS
endpoint pods are running. For example,
A sample output is as follows:oc -n ibm-spectrum-scale-das get pods -l app=das-endpointNAME READY STATUS RESTARTS AGE ibm-spectrum-scale-das-endpoint-696bc8fcb9-k7fcp 1/1 Running 0 16m ibm-spectrum-scale-das-endpoint-696bc8fcb9-rtkb8 1/1 Running 0 16m - Copy the IBM Storage Scale DAS CLI from a
running
ibm-spectrum-scale-das-endpointpod to the node configured to work with the OCP cluster.For example,oc cp ibm-spectrum-scale-das/$(oc -n ibm-spectrum-scale-das get pods -l app=das-endpoint -o=jsonpath='{.items[0].metadata.name}'):mmdas /usr/local/bin/mmdas - Make the IBM Storage Scale DAS CLI
executable. For example,
chmod 755 /usr/local/bin/mmdasThe IBM Storage Scale DAS CLI is now ready to use. You can try themmdas service listcommand to validate that IBM Storage Scale DAS is successfully installed. The command shows that the S3 service is not found. This is expected, because IBM Storage Scale DAS is deployed but not yet configured.For example,
A sample output is as follows:mmdas service listSetting up REST API endpoint URL ... No Service foundIf you get an error message such as
"Something went wrong, check the das-endpoint logs", see Known issues. - To check the product version of the deployed
ibm-spectrum-scale-dasoperator, issue the command as follows:oc get deploy ibm-spectrum-scale-das-controller-manager -n ibm-spectrum-scale-das -o json | jq .metadata.annotations.productVersionThe version of theibm-spectrum-scale-dasis shown as follows:"5.1.9.1"
- Verify that the IBM Storage Scale DAS
endpoint pods are running.