Skip to content

Commit

Permalink
Update docs for client.cinder to support COW snapshots
Browse files Browse the repository at this point in the history
This is to support copy on write snapshots:

```
Performing standard snapshot because direct snapshot failed: no write permission on storage pool images: nova.exception.Forbidden: no write permission on storage pool images
```

when using ceph for nova ephemeral storage. My preferrence is for a
standardised configuration rather than another if you use this feature,
do this.
  • Loading branch information
jovial committed Nov 14, 2024
1 parent 4026c4e commit eebe32a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/source/configuration/cephadm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ for Cinder, Cinder backup, Glance, and Nova in Kolla Ansible.
- name: client.cinder
caps:
mon: "profile rbd"
osd: "profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images"
osd: "profile rbd pool=volumes, profile rbd pool=vms, profile rbd pool=images"
mgr: "profile rbd pool=volumes, profile rbd pool=vms"
- name: client.cinder-backup
caps:
Expand Down
2 changes: 1 addition & 1 deletion etc/kayobe/environments/aufn-ceph/cephadm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ cephadm_keys:
- name: client.cinder
caps:
mon: "profile rbd"
osd: "profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images"
osd: "profile rbd pool=volumes, profile rbd pool=vms, profile rbd pool=images"
mgr: "profile rbd pool=volumes, profile rbd pool=vms"
state: present
- name: client.cinder-backup
Expand Down
2 changes: 1 addition & 1 deletion etc/kayobe/environments/ci-multinode/cephadm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cephadm_keys:
- name: client.cinder
caps:
mon: "profile rbd"
osd: "profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images"
osd: "profile rbd pool=volumes, profile rbd pool=vms, profile rbd pool=images"
mgr: "profile rbd pool=volumes, profile rbd pool=vms"
state: present
- name: client.cinder-backup
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
fixes:
- |
Adjusts the documented permissions for the images pool for the cinder user.
This is to support copy on write snaphots of vms using ceph backed
ephemeral storage. Existing deployments will need to manually adjust these
values using the CLI (the collection is currently not smart enough to do this):
``ceph auth caps client.cinder mon 'profile rbd' osd 'profile rbd
pool=volumes, profile rbd pool=vms, profile rbd pool=images' mgr 'profile
rbd pool=volumes, profile rbd pool=vms'``.

0 comments on commit eebe32a

Please sign in to comment.