Skip to content

Commit

Permalink
[docs] Sample file to enable rbd thin provisioning
Browse files Browse the repository at this point in the history
Added sample document to show how to enable sparse image upload
for ceph backend.

Fixes: OSPRH-1231
  • Loading branch information
konan-abhi committed Jan 30, 2024
1 parent dbc14b4 commit f4fe59a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/samples/backends/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Currently available samples are:
- Ceph
- NFS
- CEPH + NFS
- CEPH + Sparse Image Upload
- Cinder backends
- Swift

Expand Down Expand Up @@ -52,6 +53,23 @@ $ make openstack_deploy
If we already have a deployment working we can always use
`oc kustomize ceph | oc apply -f -`. from this directory to make the changes.

## Ceph with Sparse Image Upload example

Assuming you are using `install_yamls` and you already have `crc` running you
can use the Ceph example with:

```
$ cd install_yamls
$ make ceph TIMEOUT=90
$ make crc_storage openstack
$ oc kustomize ../glance-operator/config/samples/backends/ceph_thin_provisioning > ~/openstack-deployment.yaml
$ export OPENSTACK_CR=`realpath ~/openstack-deployment.yaml`
$ make openstack_deploy
```

If we already have a deployment working we can always use
`oc kustomize ceph | oc apply -f -`. from this directory to make the changes.

## Cinder examples

Once we have `crc` running making a deployment with Cinder as a backend is
Expand Down
22 changes: 22 additions & 0 deletions config/samples/backends/ceph_thin_provisioning/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
resources:
- ../ceph/

patches:
- target:
kind: OpenStackControlPlane
patch: |-
- op: replace
path: /spec/glance/template/customServiceConfig
value: |
[DEFAULT]
enabled_backends = default_backend:rbd
[glance_store]
default_backend = default_backend
[default_backend]
rbd_store_ceph_conf = /etc/ceph/ceph.conf
store_description = "RBD backend"
rbd_store_pool = images
rbd_store_user = openstack
rbd_thin_provisioning = True
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

0 comments on commit f4fe59a

Please sign in to comment.