Mohammed Naser | 90128aa | 2024-04-29 13:21:58 -0400 | [diff] [blame] | 1 | #################### |
| 2 | Glance Configuration |
| 3 | #################### |
| 4 | |
| 5 | Glance, the image service used by OpenStack, can be configured to use different |
| 6 | storage backends depending on your deployment needs. This document provides |
| 7 | guidance on setting up Glance with either the integrated Ceph cluster that |
| 8 | comes with Atmosphere or using Cinder as a storage backend, with additional |
| 9 | details for configurations that require special handling. |
| 10 | |
| 11 | **** |
| 12 | Ceph |
| 13 | **** |
| 14 | |
| 15 | The Atmosphere deployment includes a pre-configured Ceph cluster that is |
| 16 | ready to use with Glance, requiring no additional configuration steps. This |
| 17 | setup is recommended for most users as it provides a seamless and integrated |
| 18 | storage solution. |
| 19 | |
| 20 | ****** |
| 21 | Cinder |
| 22 | ****** |
| 23 | |
| 24 | To configure Glance to use Cinder as its storage backend, which allows for |
| 25 | managing images as block storage volumes, apply the following configuration: |
| 26 | |
| 27 | .. code-block:: yaml |
| 28 | |
| 29 | glance_helm_values: |
| 30 | storage: cinder |
| 31 | conf: |
| 32 | glance: |
| 33 | glance_store: |
| 34 | stores: cinder |
| 35 | default_store: cinder |
Giovanni Tirloni | af1993d | 2024-05-11 15:35:34 -0300 | [diff] [blame] | 36 | image_format: |
Mohammed Naser | 90128aa | 2024-04-29 13:21:58 -0400 | [diff] [blame] | 37 | disk_formats: raw |
| 38 | |
| 39 | This configuration sets Cinder as the default and only storage backend for |
| 40 | Glance, with images stored in the ``raw`` disk format. The configuration |
| 41 | above will use the Cinder default volume type for image storage. |
| 42 | |
| 43 | If you want to use a specific volume type, you can merge the following with |
| 44 | the above configuration: |
| 45 | |
| 46 | .. code-block:: yaml |
| 47 | |
| 48 | glance_helm_values: |
| 49 | conf: |
| 50 | glance: |
| 51 | glance_store: |
| 52 | cinder_volume_type: slow |
| 53 | |
| 54 | Vendor-Specific Configurations |
| 55 | ============================== |
| 56 | |
| 57 | Depending on the vendor you use for your Cinder storage backend, you may need |
| 58 | to make some additional changes to accommodate specific requirements or |
| 59 | capabilities offered by that vendor. Below are the configuration details for |
| 60 | common providers. |
| 61 | |
| 62 | StorPool |
| 63 | -------- |
| 64 | |
| 65 | For deployments utilizing StorPool as the storage backend, additional |
| 66 | configuration settings are necessary to ensure proper integration and |
| 67 | functionality. You can merge the following with the base Cinder configuration |
| 68 | above: |
| 69 | |
| 70 | .. code-block:: yaml |
| 71 | |
| 72 | glance_helm_values: |
| 73 | pod: |
| 74 | useHostNetwork: |
| 75 | api: true |
| 76 | mounts: |
| 77 | glance_api: |
| 78 | volumeMounts: |
| 79 | - name: etc-storpool-conf |
| 80 | mountPath: /etc/storpool.conf |
| 81 | readOnly: true |
| 82 | - name: etc-storpool-conf-d |
| 83 | mountPath: /etc/storpool.conf.d |
| 84 | readOnly: true |
| 85 | volumes: |
| 86 | - name: etc-storpool-conf |
| 87 | hostPath: |
| 88 | type: File |
| 89 | path: /etc/storpool.conf |
| 90 | - name: etc-storpool-conf-d |
| 91 | hostPath: |
| 92 | type: Directory |
| 93 | path: /etc/storpool.conf.d |
| 94 | |
| 95 | These adjustments include network settings and mounting necessary configuration |
| 96 | files into the Glance API pod to interact efficiently with the StorPool backend. |