@@ -245,7 +245,7 @@ for Cinder, Cinder backup, Glance, and Nova in Kolla Ansible.
245245 - name : client.cinder
246246 caps :
247247 mon : " profile rbd"
248- osd : " profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images"
248+ osd : " profile rbd pool=volumes, profile rbd pool=vms, profile rbd pool=images"
249249 mgr : " profile rbd pool=volumes, profile rbd pool=vms"
250250 - name : client.cinder-backup
251251 caps :
@@ -552,3 +552,85 @@ committed to the configuration.
552552
553553This configuration will be used during
554554``kayobe overcloud service deploy ``.
555+
556+ OpenStack integration
557+ =====================
558+
559+ Copy on write optimisations
560+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
561+
562+ Copy on write optimisations are currently disabled by default due to
563+ `security concerns <https://bugs.launchpad.net/kolla-ansible/+bug/1992153 >`__.
564+ To enable them, set ``stackhpc_enable_ceph_cow_optimisations `` to ``true `` in
565+ ``etc/kayobe/stackhpc.yml ``. Setting this flag to ``true `` causes Kayobe to
566+ render a `glance.conf ` file with the following content:
567+
568+ .. code :: ini
569+
570+ [DEFAULT]
571+ show_multiple_locations = true
572+ show_image_direct_url = true
573+
574+ [glance_store]
575+ rbd_thin_provisioning = true
576+
577+ .. warning ::
578+
579+ Enabling ``show_image_direct_url `` allows Glance to return the RADOS location
580+ (pool and image name) for each image. Although this does not expose any Ceph
581+ credentials, it can be considered an information leak in some environments.
582+ There are plans in kolla-ansible to deploy a separate ``glance-api `` instance
583+ for the internal endpoint, which would allow this to be enabled for the
584+ internal endpoint only.
585+
586+ Verify that the Cinder user has read-write access to the images pool by running:
587+
588+ .. code :: console
589+
590+ ceph auth get client.cinder
591+
592+ If the output includes `profile rbd-read-only pool=images `, update the caps using:
593+
594+ .. code :: console
595+
596+ 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'
597+
598+ Be sure to keep any existing capabilities and only change the capabilities on the
599+ images pool from `profile rbd-read-only pool=images ` to
600+ `profile rbd pool=images `. Then re-run the verification command to confirm the
601+ change.
602+
603+ The Ceph keyrings under the Cinder and Nova configurations should also be
604+ updated to remove the read-only flag (e.g. remove `readonly ` from the caps
605+ lines in `etc/kayobe/kolla/config/cinder/ceph.client.cinder.keyring ` and
606+ `etc/kayobe/kolla/config/nova/ceph.client.cinder.keyring `).
607+
608+ Example (before / after):
609+
610+ .. code :: ini
611+
612+ [client.cinder]
613+ key = redacted
614+ caps mgr = " profile rbd pool=volumes, profile rbd pool=vms"
615+ caps mon = " profile rbd"
616+ caps osd = " profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images"
617+
618+ .. code :: ini
619+
620+ [client.cinder]
621+ key = redacted
622+ caps mgr = " profile rbd pool=volumes, profile rbd pool=vms"
623+ caps mon = " profile rbd"
624+ caps osd = " profile rbd pool=volumes, profile rbd pool=vms, profile rbd pool=images"
625+
626+ If you had to change the keyrings, you will need to reconfigure glance, nova and cinder:
627+
628+ .. code :: console
629+
630+ kayobe overcloud service deploy -kt glance,nova,cinder
631+
632+ otherwise, just reconfigure glance:
633+
634+ .. code :: console
635+
636+ kayobe overcloud service deploy -kt glance
0 commit comments