<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 15, 2019 at 4:11 AM Tomáš Bredár <<a href="mailto:tomas.bredar@gmail.com">tomas.bredar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Alan!<div>Thanks for the pointers. For now I'm going with a single backend with two NFS shares, so I'll use the tripleo templates for netapp.</div><div>For the future, could you point me to the right template / puppet-cinder code which can create multiple nfs share files for me? Or should I create my own puppet manifest?</div></div></blockquote><div><br></div><div>Hi Tomas,</div><div><br></div><div>The puppet-cinder code that renders the shares config file is [1], and the data comes from puppet-tripleo [2]. This is puppet hiera data, and the value is bound to the CindeNetappNfsShares tripleo parameter [3].</div><div><br></div>So you should be able to deploy a single backend that accesses multiple shares by adding something like this to your tripleo deployment.<div><br></div><div>parameter_defaults:</div><div>  CinderNetappNfsShares: 'host_1:/path/to/share_1,host_2:/path/to/share_2'</div><div><br></div><div><div>[1] <a href="https://opendev.org/openstack/puppet-cinder/src/branch/stable/queens/manifests/backend/netapp.pp#L280">https://opendev.org/openstack/puppet-cinder/src/branch/stable/queens/manifests/backend/netapp.pp#L280</a></div><div>[2] <a href="https://opendev.org/openstack/puppet-tripleo/src/branch/stable/queens/manifests/profile/base/cinder/volume/netapp.pp#L38">https://opendev.org/openstack/puppet-tripleo/src/branch/stable/queens/manifests/profile/base/cinder/volume/netapp.pp#L38</a></div><div>[3]
 
<a href="https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/queens/puppet/services/cinder-backend-netapp.yaml#L137">https://opendev.org/openstack/tripleo-heat-templates/src/branch/stable/queens/puppet/services/cinder-backend-netapp.yaml#L137</a></div><div><br></div>Alan<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks again.</div><div><br></div><div>Tomas</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pi 12. 7. 2019 o 16:11 Alan Bishop <<a href="mailto:abishop@redhat.com" target="_blank">abishop@redhat.com</a>> napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 12, 2019 at 6:09 AM Tomáš Bredár <<a href="mailto:tomas.bredar@gmail.com" target="_blank">tomas.bredar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Emilien!<div><br></div><div>Thanks for your help. Yes with this I am able to define multiple stanzas in cinder.conf. However netapp driver needs a .conf file with the nfs shares listed in it. Defining multiple configuration files with nfs share details in each is not possible with the manual you've sent nor with the templates in my first email.</div></div></blockquote><div><br></div><div>Hi Tomas,</div><div><br></div><div>When deploying a single backend, the tripleo template takes care of generating the nfs shares file (actually, puppet-cinder generates the file, but it's triggered by tripleo). But when you use the custom backend method that Emilien pointed you to use, then you are responsible for supplying all the pieces for the backend(s) to function correctly. This means you will need to generate the nfs shares file on the host (controller), and then bind mount the file using CinderVolumeOptVolumes so that the shares file on the host is visible to the cinder-volume process running in a container.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I'm wondering if it's possible to define a second backend by creating another service, for example "OS::TripleO::Services::CinderBackendNetApp2" ?</div></div></blockquote><div><br></div><div>Sorry, this won't work. TripleO will trying to deploy two completely separate instances of the cinder-volume service, but the two deployments will step all over each other. There has been a long standing goal of enhancing tripleo so that it can deploy multiple instances of a cinder backend, but it's a complex task that will require non-trivial changes to tripleo.</div><div><br></div><div>Alan<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Tomas</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">št 11. 7. 2019 o 14:35 Emilien Macchi <<a href="mailto:emilien@redhat.com" target="_blank">emilien@redhat.com</a>> napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Thu, Jul 11, 2019 at 7:32 AM Tomáš Bredár <<a href="mailto:tomas.bredar@gmail.com" target="_blank">tomas.bredar@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi community,<div><br></div><div>I'm trying to define multiple NetApp storage backends via Tripleo installer.</div><div>According to [1] the puppet manifest supports multiple backends.</div><div>The current templates [2] [3] support only single backend.</div><div>Does anyone know how to define multiple netapp backends in the tripleo-heat environment files / templates?</div></div></blockquote></div><div><br></div><div>We don't support that via the templates that you linked, however if you follow this manual you should be able to configure multiple NetApp backends:</div><div><a href="https://docs.openstack.org/tripleo-docs/latest/install/advanced_deployment/cinder_custom_backend.html" target="_blank">https://docs.openstack.org/tripleo-docs/latest/install/advanced_deployment/cinder_custom_backend.html</a></div><div><br></div><div>Let us know how it worked!<br></div>-- <br><div dir="ltr" class="gmail-m_4356078976230896027gmail-m_961157324262488331gmail-m_1334694039422769985gmail-m_-8606603040056779257gmail_signature"><div dir="ltr">Emilien Macchi<br></div></div></div>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>