[kolla-ansible] custom configuration override issue.

Mark Goddard mark at stackhpc.com
Tue Feb 8 09:28:09 UTC 2022


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
>



More information about the openstack-discuss mailing list