Flexibility in OpenShift Container Storage component deployment - Developer Preview

Updated

WARNING: For testing/lab environments, feel free to implement. However, note that those clusters will be unsupported. Supported clusters/Production environments need to submit for and/or obtain an approved Support Exception (SUPPORTEX) before disabling the features below. These SUPPORTEXs are generally sent for expedited approval. See This content is not included.Support Exceptions for more information.

Red Hat OpenShift Container Storage now provides the capability to disable the Multicloud Object Gateway (MCG), RGW, and CephFS components during deployment. This flexibility enables you to deploy OpenShift Container Storage based on your needs, thereby reducing resource consumption.

Note: Developer preview releases are meant for customers who are willing to evaluate new products or releases of products in an early stage of product development. In this case, OCS 4.8+ (including ODF 4.9+) does not support this partial deployment of OpenShift Container Storage in the production environment.

This is a live document to be used in various environments and configurations. If you find any mistakes or missing instructions or need any assistance, please add an Content from github.com is not included.Issue or write to us @ ocs-devpreview@redhat.com.

Partial deployment of OpenShift Container Storage cluster service

With OpenShift Container Storage 4.8, you can create an OpenShift Container Storage cluster without deploying one or more of the following components:

  • MCG
  • RGW
  • CephFS

Creating an OpenShift Container Storage cluster with component(s) disabled


This procedure assumes that you have installed the OpenShift Container Storage operator from the OpenShift web console. For information, see [OpenShift Container Storage 4.8](https://access.redhat.com/documentation/en-us/red_hat_openshift_container_storage/4.8/) documentation.

After installing the OpenShift Container Storage operator, you can create OpenShift Container StorageCluster Custom Resource using your CLI and set the service you want to disable to ignore (default setting is manage) as shown below.

Example of StorageCluster CR ocs-cluster-service YAML file with MCG, RGW, and CephFS disabled.

apiVersion: ocs.openshift.io/v1
kind: StorageCluster
metadata:
  name: ocs-storagecluster
  namespace: openshift-storage
spec:
  multiCloudGateway:
    reconcileStrategy: ignore # <- Set this to ignore (disable) or manage (enable) Multicloud Object Gateway
  managedResources:
    cephFilesystems:
      reconcileStrategy: ignore # <- Set this to ignore (disable) or manage (enable) Ceph Filesystem
    cephObjectStores:
      reconcileStrategy: ignore # <- Set this to ignore (disable) or manage (enable) Ceph RGW
[... rest of your YAML for your environment ...]

For information on how to create Internal and Internal - Attached Devices StorageCluster YAML file refer to these articles:

Note: With each new release of OpenShift Container Storage new features are added and therefore new paramaters are available to be added to the StorageCluster Custom Resource. One way to have the correct syntax to add to your StorageCluster YAML file for a new feature, is to create the StorageCluster using the OpenShift OperatorHub OCS wizard and then output the resulting StorageCluster to a new YAML file

Disable and Uninstall an Enabled component(s) disabled OpenShift Container Storage

  • To disable any enabled component, set the reconcileStrategy to ignore in the StorageCluster CRD as per above.

  • Then, delete the corresponding CRD for the component to Uninstall.

        # oc delete cephfilesystems.ceph.rook.io --all          ##### To uninstall CephFS
        # oc delete cephobjectstores.ceph.rook.io  --all        ##### To uninstall RGW
  • NooBaa requires two, possibly three commands to uninstall:
    WARNING: All provisioned bucket data using the openshift-storage.noobaa.io storageclass will be lost if not deleted already.

To allow uninstall of MCG:

        # oc patch noobaa noobaa --type='merge' -p '{"spec":{"cleanupPolicy":{"allowNoobaaDeletion":true}}}' 

To uninstall MCG:

        # oc delete noobaas.noobaa.io  --all

If the delete command hangs, clear finalizers:

        # oc patch -n openshift-storage noobaas/noobaa --type=merge -p '{"metadata": {"finalizers":null}}' 

Enable a Disabled component(s) disabled OpenShift Container Storage

  • To enable any disabled component, set the reconcileStrategy to manage in the StorageCluster CRD as per above.
SBR
Category
Article Type