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