Comment 1 for bug 1959668

Revision history for this message
Nikolay Fedorov (jingvar) wrote :

My solution is
[rocky@kayobe src]$ diff kolla-ansible/ansible/roles/hacluster/templates/hacluster_corosync.conf.j2 /opt/kayobe/venvs/kolla-ansible/share/kolla-ansible/ansible/roles/hacluster/templates/hacluster_corosync.conf.j2
16c16
< name: {{ hostvars[host].ansible_facts.hostname }}
---
> name: {{ hostvars[host].ansible_facts.fqdn }}

[rocky@kayobe src]$ diff kolla-ansible/ansible/roles/hacluster/tasks/bootstrap_service.yml /opt/kayobe/venvs/kolla-ansible/share/kolla-ansible/ansible/roles/hacluster/tasks/bootstrap_service.yml
18,20c18,20
< <primitive id="{{ ansible_facts.hostname }}" class="ocf" provider="pacemaker" type="remote">
< <instance_attributes id="{{ ansible_facts.hostname }}-instance_attributes">
< <nvpair id="{{ ansible_facts.hostname }}-instance_attributes-server" name="server" value="{{ 'api' | kolla_address }}"/>
---
> <primitive id="{{ ansible_facts.fqdn }}" class="ocf" provider="pacemaker" type="remote">
> <instance_attributes id="{{ ansible_facts.fqdn }}-instance_attributes">
> <nvpair id="{{ ansible_facts.fqdn }}-instance_attributes-server" name="server" value="{{ 'api' | kolla_address }}"/>
23c23
< <op id="{{ ansible_facts.hostname }}-monitor" name="monitor" interval="60" timeout="30"/>
---
> <op id="{{ ansible_facts.fqdn }}-monitor" name="monitor" interval="60" timeout="30"/>