<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Nice!!<div><br></div><div><pre style="box-sizing: border-box; line-height: 16.25px; overflow: auto; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; padding: 20px 30px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 0, 0); word-break: break-all; word-wrap: break-word; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-text-size-adjust: 100%;"><span class="k" style="box-sizing: border-box; color: rgb(157, 255, 71); font-weight: bold;">[DEFAULT]</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"></span>
<span class="na" style="box-sizing: border-box; color: rgb(85, 85, 85);">{% if 'cell0001' in group_names %}</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"></span>
<span class="na" style="box-sizing: border-box; color: rgb(85, 85, 85);">bandwidth_poll_interval</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"> </span><span class="o" style="box-sizing: border-box; color: rgb(59, 59, 59);">=</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"> </span><span class="s" style="box-sizing: border-box; color: rgb(255, 171, 0);">100</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"></span>
<span class="na" style="box-sizing: border-box; color: rgb(85, 85, 85);">{% elif 'cell0002' in group_names %}</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"></span>
<span class="na" style="box-sizing: border-box; color: rgb(85, 85, 85);">bandwidth_poll_interval</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"> </span><span class="o" style="box-sizing: border-box; color: rgb(59, 59, 59);">=</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"> </span><span class="s" style="box-sizing: border-box; color: rgb(255, 171, 0);">-1</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"></span>
<span class="na" style="box-sizing: border-box; color: rgb(85, 85, 85);">{% else %}</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"></span>
<span class="na" style="box-sizing: border-box; color: rgb(85, 85, 85);">bandwidth_poll_interval</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"> </span><span class="o" style="box-sizing: border-box; color: rgb(59, 59, 59);">=</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"> </span><span class="s" style="box-sizing: border-box; color: rgb(255, 171, 0);">300</span><span class="w" style="box-sizing: border-box; color: rgb(191, 191, 191);"></span>
<span class="na" style="box-sizing: border-box; color: rgb(85, 85, 85);">{% endif %}</span></pre><br><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Feb 9, 2022, at 4:05 AM, Mark Goddard <mark@stackhpc.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>Kolla-ansible won't lookup config files based on group names, but the</span><br><span>content of those files is templated. See the examples here:</span><br><span>https://docs.openstack.org/kolla-ansible/latest/admin/advanced-configuration.html#openstack-service-configuration-in-kolla</span><br><span></span><br><span>On Tue, 8 Feb 2022 at 15:19, Satish Patel <satish.txt@gmail.com> wrote:</span><br><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Thank you mark, i think you found my typo :)  that was it.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>How do i group nodes and pass configuration to specific group like.</span><br></blockquote><blockquote type="cite"><span>for example i have GPU and IB compute nodes. i want to group them so i</span><br></blockquote><blockquote type="cite"><span>can push out to config to GPU group related GPU and IB (infiniband)</span><br></blockquote><blockquote type="cite"><span>related IB config</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[gpu]</span><br></blockquote><blockquote type="cite"><span>1.1.1.1</span><br></blockquote><blockquote type="cite"><span>2.2.2.2</span><br></blockquote><blockquote type="cite"><span>3.3.3.3</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[ib]</span><br></blockquote><blockquote type="cite"><span>4.4.4.4</span><br></blockquote><blockquote type="cite"><span>5.5.5.5</span><br></blockquote><blockquote type="cite"><span>6.6.6.6</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>[compute:children]</span><br></blockquote><blockquote type="cite"><span>gpu</span><br></blockquote><blockquote type="cite"><span>ib</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Can i apply config like following for group related?  what is the best</span><br></blockquote><blockquote type="cite"><span>way to handle groups in kolla-ansible?</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>/etc/kolla/config/nova/gpu/nova.conf</span><br></blockquote><blockquote type="cite"><span>/etc/kolla/config/nova/ib/nova.conf</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>On Tue, Feb 8, 2022 at 4:28 AM Mark Goddard <mark@stackhpc.com> wrote:</span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>On Mon, 7 Feb 2022 at 15:11, Satish Patel <satish.txt@gmail.com> wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Folks,</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>I have a working kolla-ansible environment and now I want to push out</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>some nova custom changes to specific compute nodes and I am trying the</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>following override but somehow it doesn't work for me.</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Ansible inventory file multinode</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>[control]</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>192.168.75.141 ansible_ssh_private_key_file=/root/.ssh/nodes_ssh_key</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>192.168.75.142 ansible_ssh_private_key_file=/root/.ssh/nodes_ssh_key</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>192.168.75.143 ansible_ssh_private_key_file=/root/.ssh/nodes_ssh_key</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>[compute]</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>192.168.75.[144:175] ansible_ssh_private_key_file=/root/.ssh/nodes_ssh_key</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>FYI you can use hostnames but still use IPs to connect:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>myhost ansible_host=1.2.3.4</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>I want to change some option on 192.168.75.199 compute server, I don't</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>have compute name in inventory so i am using IP address for override</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>but somehow that doesn't work</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>/etc/kolla/config/nova/192.168.75.199/nova.conf</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>That is the correct path, when using the default config location.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Sanity check: .199 isn't in the above inventory.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>I have tried the following to use hypervisor hostname but that doesn't</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>work. What am I doing wrong here?</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>/etc/kolla/config/nova/COMP01.local/nova.conf</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>We use inventory_hostname to determine the path, so it will be</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>whatever you use as the name in your inventory. In your example it's</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>IPs.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>Following works for me but they are for global not for specific nodes.</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>How do i override specific node file?</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>/etc/kolla/config/nova/nova-compute.conf</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote></div></blockquote></div></body></html>