[kolla-ansible] custom configuration override issue.

Satish Patel satish.txt at gmail.com
Wed Feb 9 12:42:32 UTC 2022


Nice!!

[DEFAULT]
{% if 'cell0001' in group_names %}
bandwidth_poll_interval = 100
{% elif 'cell0002' in group_names %}
bandwidth_poll_interval = -1
{% else %}
bandwidth_poll_interval = 300
{% endif %}

Sent from my iPhone

> On Feb 9, 2022, at 4:05 AM, Mark Goddard <mark at stackhpc.com> wrote:
> 
> Kolla-ansible won't lookup config files based on group names, but the
> content of those files is templated. See the examples here:
> https://docs.openstack.org/kolla-ansible/latest/admin/advanced-configuration.html#openstack-service-configuration-in-kolla
> 
>> On Tue, 8 Feb 2022 at 15:19, Satish Patel <satish.txt at gmail.com> wrote:
>> 
>> Thank you mark, i think you found my typo :)  that was it.
>> 
>> How do i group nodes and pass configuration to specific group like.
>> for example i have GPU and IB compute nodes. i want to group them so i
>> can push out to config to GPU group related GPU and IB (infiniband)
>> related IB config
>> 
>> [gpu]
>> 1.1.1.1
>> 2.2.2.2
>> 3.3.3.3
>> 
>> [ib]
>> 4.4.4.4
>> 5.5.5.5
>> 6.6.6.6
>> 
>> [compute:children]
>> gpu
>> ib
>> 
>> Can i apply config like following for group related?  what is the best
>> way to handle groups in kolla-ansible?
>> 
>> /etc/kolla/config/nova/gpu/nova.conf
>> /etc/kolla/config/nova/ib/nova.conf
>> 
>>> On Tue, Feb 8, 2022 at 4:28 AM Mark Goddard <mark at stackhpc.com> wrote:
>>> 
>>> On Mon, 7 Feb 2022 at 15:11, Satish Patel <satish.txt at gmail.com> wrote:
>>>> 
>>>> Folks,
>>>> 
>>>> I have a working kolla-ansible environment and now I want to push out
>>>> some nova custom changes to specific compute nodes and I am trying the
>>>> following override but somehow it doesn't work for me.
>>>> 
>>>> Ansible inventory file multinode
>>>> 
>>>> [control]
>>>> 192.168.75.141 ansible_ssh_private_key_file=/root/.ssh/nodes_ssh_key
>>>> 192.168.75.142 ansible_ssh_private_key_file=/root/.ssh/nodes_ssh_key
>>>> 192.168.75.143 ansible_ssh_private_key_file=/root/.ssh/nodes_ssh_key
>>>> [compute]
>>>> 192.168.75.[144:175] ansible_ssh_private_key_file=/root/.ssh/nodes_ssh_key
>>> 
>>> FYI you can use hostnames but still use IPs to connect:
>>> 
>>> myhost ansible_host=1.2.3.4
>>> 
>>>> 
>>>> 
>>>> I want to change some option on 192.168.75.199 compute server, I don't
>>>> have compute name in inventory so i am using IP address for override
>>>> but somehow that doesn't work
>>>> 
>>>> /etc/kolla/config/nova/192.168.75.199/nova.conf
>>> 
>>> That is the correct path, when using the default config location.
>>> 
>>> Sanity check: .199 isn't in the above inventory.
>>> 
>>>> 
>>>> I have tried the following to use hypervisor hostname but that doesn't
>>>> work. What am I doing wrong here?
>>>> 
>>>> /etc/kolla/config/nova/COMP01.local/nova.conf
>>> 
>>> We use inventory_hostname to determine the path, so it will be
>>> whatever you use as the name in your inventory. In your example it's
>>> IPs.
>>> 
>>>> 
>>>> 
>>>> Following works for me but they are for global not for specific nodes.
>>>> How do i override specific node file?
>>>> 
>>>> /etc/kolla/config/nova/nova-compute.conf
>>>> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20220209/7700366a/attachment.htm>


More information about the openstack-discuss mailing list