<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Wodel,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You simply need to create a cinder-volume.conf in your config override directory with the backend blocks you want, eg:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
$ cat cinder-volume.conf
<div>[DEFAULT]</div>
<div>enabled_backends=nimble-az1,nimble-az2,<span style="background-color:rgb(255, 255, 255);display:inline !important">ceph-nvme-az3</span></div>
<div>cross_az_attach = False<br>
</div>
<div><br>
</div>
<div>[nimble-az1]</div>
<div>san_ip = {{ nimble_az1_controller_vip }}</div>
<div>san_login = {{ nimble_admin_user }}</div>
<div>san_password = {{ nimble_admin_password }}</div>
<div>volume_driver = cinder.volume.drivers.nimble.NimbleISCSIDriver</div>
<div>volume_backend_name = nimble</div>
<div>backend_availability_zone = {{ availability_zone_1 }}</div>
<div>backend_host = {{ nimble_hostgroup }}</div>
<div>report_discard_supported = True</div>
<div>enable_unsupported_driver = True</div>
<div>suppress_requests_ssl_warnings = True</div>
<div>use_multipath_for_image_xfer = False</div>
<div><br>
</div>
<div>[nimble-az2]</div>
<div>san_ip = {{ nimble_az1_controller_vip }}</div>
<div>san_login = {{ nimble_admin_user }}</div>
<div>san_password = {{ nimble_admin_password }}</div>
<div>volume_driver = cinder.volume.drivers.nimble.NimbleISCSIDriver</div>
<div>volume_backend_name = nimble</div>
<div>backend_availability_zone = {{ availability_zone_2 }}</div>
<div>backend_host = {{ nimble_hostgroup }}</div>
<div>report_discard_supported = True</div>
<div>enable_unsupported_driver = True</div>
<div>suppress_requests_ssl_warnings = True</div>
<div>use_multipath_for_image_xfer = False</div>
<div><br>
</div>
<div>[ceph-nvme-az3]
<div>volume_driver = cinder.volume.drivers.rbd.RBDDriver</div>
<div>rbd_pool = {{ ceph_cinder_pool_name }}</div>
<div>rbd_ceph_conf = /etc/ceph/ceph.conf</div>
<div>rbd_flatten_volume_from_snapshot = false</div>
<div>rbd_max_clone_depth = 5</div>
<div>rbd_store_chunk_size = 4</div>
<div>rados_connect_timeout = 5</div>
<div>rbd_user = {{ ceph_cinder_user }}</div>
<div>rbd_secret_uuid = {{ cinder_rbd_secret_uuid }}</div>
<div>report_discard_supported = True</div>
<div>image_upload_use_cinder_backend = True</div>
<div>volume_backend_name = high-performance</div>
<div>backend_availability_zone = {{ availability_zone_3 }}</div>
<div>backend_host = ceph-nvme</div>
<br>
</div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Please note that the ceph setup in kolla-ansible is fairly rigid and assumes a single cinder pool and a single cinder ceph user. You are probably better off defining your own ceph blocks if you need to split across the separate pools.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If you better want to understand the workflow for kolla deploying ceph here are the relevant sections:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://github.com/openstack/kolla-ansible/blob/8371d979b6c07ec64eb56b5948c999672a67c6d5/ansible/roles/cinder/templates/cinder.conf.j2#L134" id="LPNoLPOWALinkPreview">https://github.com/openstack/kolla-ansible/blob/8371d979b6c07ec64eb56b5948c999672a67c6d5/ansible/roles/cinder/templates/cinder.conf.j2#L134</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://github.com/openstack/kolla-ansible/blob/stable/yoga/ansible/roles/cinder/tasks/external_ceph.yml" id="LPlnk352515">https://github.com/openstack/kolla-ansible/blob/stable/yoga/ansible/roles/cinder/tasks/external_ceph.yml</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Danny</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> wodel youchi <wodel.youchi@gmail.com><br>
<b>Sent:</b> 05 May 2022 09:19<br>
<b>To:</b> OpenStack Discuss <openstack-discuss@lists.openstack.org><br>
<b>Subject:</b> [Kolla-ansible][xena] how to deploy multiple cinder backends?</font>
<div> </div>
</div>
<div>
<div dir="auto">
<div class="x_mc-ip-hide">
<div style="color:#000000; font-size:12px; text-align:left; font-family:Helvetica,Arial,sans-serif">
<strong><br>
<div class="x_caution" style="background-color:#F47F53; font-family:sans-serif"><span style="font-size:14pt"><strong>CAUTION:</strong></span>
<span style="font-size:11pt; font-weight:400">This email originates from outside THG</span>
</div>
</strong><br>
</div>
<hr>
</div>
Hi,
<div dir="auto"><br>
</div>
<div dir="auto">I want to deploy multiple cinder backends, ceph SSD pool for high performance VMS, ceph SAS pool for normal VMS and NFS share for small VMS and for cinder backup.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Could that be done while deploying or it has to be done after the initial deployment?</div>
<div dir="auto"><br>
</div>
<div dir="auto">Could you assist me with some examples, sometimes the documentation is not that obvious to understand.<br>
<div dir="auto"><br>
</div>
<div dir="auto">Regards.</div>
</div>
</div>
</div>
<div></div>
<p><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">Danny Webb</span>
<br>
<span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">Principal OpenStack Engineer</span><br>
<span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#019EEB"><a href="http://www.thehutgroup.com/" target="_blank"><span style="color:#575a5d;
text-decoration:none;text-underline:none">The Hut Group</span></a></span>
<br>
<br>
<span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">Tel: </span>
<br>
<span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">Email:
<a href="mailto:Danny.Webb@thehutgroup.com">Danny.Webb@thehutgroup.com</a></span></p>
<p style="margin-bottom:12.0pt"><br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">For the purposes of this email, the "company" means The Hut Group Limited, a company registered in England and Wales (company number 6539496) whose registered office is at Fifth Floor,
Voyager House, Chicago Avenue, Manchester Airport, M90 3DQ and/or any of its respective subsidiaries.</span>
<br>
<br>
<b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Confidentiality Notice</span></b>
<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">This e-mail is confidential and intended for the use of the named recipient only. If you are not the intended recipient please notify us by telephone immediately on +44(0)1606 811888
or return it to us by e-mail. Please then delete it from your system and note that any use, dissemination, forwarding, printing or copying is strictly prohibited. Any views or opinions are solely those of the author and do not necessarily represent those of
the company.</span> <br>
<br>
<b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Encryptions and Viruses</span></b>
<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Please note that this e-mail and any attachments have not been encrypted. They may therefore be liable to be compromised. Please also note that it is your responsibility to scan this
e-mail and any attachments for viruses. We do not, to the extent permitted by law, accept any liability (whether in contract, negligence or otherwise) for any virus infection and/or external compromise of security and/or confidentiality in relation to transmissions
sent by e-mail.</span> <br>
<br>
<b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Monitoring</span></b>
<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666">Activity and use of the company's systems is monitored to secure its effective use and operation and for other lawful business purposes. Communications using these systems will also
be monitored and may be recorded to secure effective use and operation and for other lawful business purposes.</span>
</p>
<span style="font-size:4pt;color:#FFFFFF">hgvyjuv</span>
<div></div>
</body>
</html>