|
| 1 | +Deploying Pure Storage FlashBlade Manila driver in a Red Hat OpenStack Services on OpenShift 18.0 |
| 2 | +================================================================================================= |
| 3 | + |
| 4 | +.. _purestorage-flashblade-rhoso18: |
| 5 | + |
| 6 | +Overview |
| 7 | +-------- |
| 8 | + |
| 9 | +This guide shows how to configure and deploy the Pure Storage FlashBlade Manila driver in a |
| 10 | +**Red Hat OpenStack Services on OpenShift (RHOSO) 18.0** deployment. |
| 11 | +After reading this, you'll be able to define the proper configuration and |
| 12 | +deploy single or multiple FlashBlade manila back ends in a RHOSO cluster. |
| 13 | + |
| 14 | +.. note:: |
| 15 | + |
| 16 | + For more information about RHOSO, please refer to its `documentation pages |
| 17 | + <https://docs.redhat.com/en/documentation/red_hat_openstack_services_on_openshift/18.0/html/deploying_red_hat_openstack_services_on_openshift/index>`_. |
| 18 | + |
| 19 | +Requirements |
| 20 | +------------ |
| 21 | + |
| 22 | +In order to deploy Pure Storage FlashBlade Manila back ends, you should have the |
| 23 | +following requirements satisfied: |
| 24 | + |
| 25 | +- Pure Storage FlashBlades deployed and ready to be used as Manila |
| 26 | + back ends. See :ref:`manila_flashblade_prerequisites` for more details. |
| 27 | + |
| 28 | +- RHOSO openstack control plane deployed where Manila services will be configured. |
| 29 | + |
| 30 | + |
| 31 | +Deployment Steps |
| 32 | +---------------- |
| 33 | + |
| 34 | +Use Certified Pure Storage Manila Share Image |
| 35 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 36 | + |
| 37 | +Red Hat requires that you utilize the Certified Pure Storage Manila Share |
| 38 | +Image when deploying RHOSO18.0 with a Pure Storage FlashArray backend. |
| 39 | + |
| 40 | +This container can be found in the `Red Hat Container Catalog <https://catalog.redhat.com/search?searchType=containers&partnerName=Pure%20Storage%2C%20Inc.&p=1>`__. |
| 41 | + |
| 42 | +Ensure the certified image is added to the ``openstackversion`` CR. This is defined in the following YAML file (``openstack_version.yaml``): |
| 43 | + |
| 44 | +.. code-block:: yaml |
| 45 | + :name: manila-openstackversion |
| 46 | +
|
| 47 | + apiVersion: core.openstack.org/v1beta1 |
| 48 | + kind: OpenStackVersion |
| 49 | + metadata: |
| 50 | + name: openstack |
| 51 | + spec: |
| 52 | + customContainerImages: |
| 53 | + manilaShareImages: |
| 54 | + flashblade: registry.connect.redhat.com/purestorage/openstack-manila-share-pure-18-0 |
| 55 | +
|
| 56 | +Save this file and update: |
| 57 | + |
| 58 | +.. code-block:: bash |
| 59 | + :name: manila-openstackversion-apply |
| 60 | +
|
| 61 | + $ oc apply -f openstack-version.yaml |
| 62 | +
|
| 63 | +Create a Secret file |
| 64 | +^^^^^^^^^^^^^^^^^^^^ |
| 65 | + |
| 66 | +It is necessary to create a secret file that will contain the access |
| 67 | +credential(s) for your backend Pure FlashBlade(s) in your RHOSO deployment. |
| 68 | + |
| 69 | +In this following example file (``pure-fb-secrets.yaml``) secrets are provided for |
| 70 | +a FlashBlade. If using multiple backends you need to define a unique secret for each. |
| 71 | + |
| 72 | +.. code-block:: yaml |
| 73 | + :name: manila-pure-secret |
| 74 | +
|
| 75 | + [flashblade] |
| 76 | + flashblade_mgmt_vip = <INSERT FB MGMT VIP HERE> |
| 77 | + flashblade_data_vip = <INSERT FB DATA VIP HERE> |
| 78 | + flashblade_api = <INSERT FB API TOKEN HERE> |
| 79 | +
|
| 80 | +Create the OpenShift secret based on the above configuration file: |
| 81 | + |
| 82 | +.. code-block:: bash |
| 83 | + :name: manila-secret |
| 84 | +
|
| 85 | + $ oc create secret generic pure-fb-secret --from-file=pure-fb-secrets.yaml |
| 86 | +
|
| 87 | +For security, you may now delete the configuration file. |
| 88 | + |
| 89 | +Update the OpenStack Control Plane |
| 90 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 91 | + |
| 92 | +Open your OpenStackControlPlane CR file, ``openstack_control_plane.yaml``. Edit the CR file and add in the |
| 93 | +Pure Storage Cinder volume backend. |
| 94 | + |
| 95 | +.. code-block:: yaml |
| 96 | + :name: manila-pure-openstackcontrolplane |
| 97 | +
|
| 98 | + apiVersion: core.openstack.org/v1beta1 |
| 99 | + kind: OpenStackControlPlane |
| 100 | + metadata: |
| 101 | + name: openstack |
| 102 | + spec: |
| 103 | + manila: |
| 104 | + enabled: true |
| 105 | + template: |
| 106 | + manilaAPI: |
| 107 | + replicas: 3 |
| 108 | + customServiceConfig: | |
| 109 | + [DEFAULT] |
| 110 | + debug = true |
| 111 | + enabled_share_protocols=nfs |
| 112 | + manilaScheduler: |
| 113 | + replicas: 3 |
| 114 | + manilaShares: |
| 115 | + flashblade: |
| 116 | + networkAttachments: |
| 117 | + - storage |
| 118 | + - storageMgmt |
| 119 | + customServiceConfigSecrets: |
| 120 | + - pure-fb-secret |
| 121 | + customServiceConfig: | |
| 122 | + [DEFAULT] |
| 123 | + debug = true |
| 124 | + enabled_share_backends=flashblade |
| 125 | + [flashblade] |
| 126 | + driver_handles_share_servers=False |
| 127 | + share_backend_name=flashblade |
| 128 | + share_driver=manila.share.drivers.purestorage.flashblade.FlashBladeShareDriver |
| 129 | +
|
| 130 | +
|
| 131 | +Save this file and update: |
| 132 | + |
| 133 | +.. code-block:: bash |
| 134 | + :name: manila-openstackversion-apply |
| 135 | +
|
| 136 | + $ oc apply -f openstack_control_plane.yaml |
| 137 | + |
| 138 | +Test the Deployed Back Ends |
| 139 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 140 | + |
| 141 | +After RHOSO system is deployed, run the following command to check if the |
| 142 | +Manila services are up: |
| 143 | + |
| 144 | +.. code-block:: bash |
| 145 | + :name: manila-service-list |
| 146 | +
|
| 147 | + $ oc rsh openstackclient |
| 148 | + sh-5.1$ openstack share service list |
| 149 | +
|
| 150 | +
|
| 151 | +Run the following commands to create the share types mapped to the deployed back ends: |
| 152 | + |
| 153 | +.. code-block:: bash |
| 154 | + :name: create-share-types |
| 155 | +
|
| 156 | + sh-5.1$ openstack share type create --snapshot_support true ---revert_to_snapshot_support true flashblade false |
| 157 | +
|
| 158 | +Make sure that you're able to create Manila shares with the configured volume |
| 159 | +types: |
| 160 | + |
| 161 | +.. code-block:: bash |
| 162 | + :name: create-shares |
| 163 | +
|
| 164 | + sh-5.1$ openstack share create --share-type flashblade --name testshare NFS 1 |
0 commit comments