kolla-ansible/ansible/roles/masakari/templates/masakari-instancemonitor.json.j2
Mark Goddard 5d28a7c89b masakari: support libvirt SASL in instance monitor
Since enabling libvirt SASL authentication, the masakari instance
monitor fails to connect to libvirt. We see the following error in logs:

    libvirt.libvirtError: authentication failed: Failed to start SASL
    negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs
    found)

This change adds support for SASL authentication in Masakari instance
monitor.

Depends-On: https://review.opendev.org/c/openstack/kolla/+/834456
Closes-Bug: #1965754
Change-Id: I974046662b383a12ac6281b725523760a96657bd
2022-05-21 13:27:27 +00:00

25 lines
792 B
Django/Jinja

{
"command": "masakari-instancemonitor --config-file /etc/masakari-monitors/masakari-monitors.conf",
"config_files": [
{
"source": "{{ container_config_directory }}/masakari-monitors.conf",
"dest": "/etc/masakari-monitors/masakari-monitors.conf",
"owner": "masakari",
"perm": "0600"
}{% if libvirt_enable_sasl | bool %},
{
"source": "{{ container_config_directory }}/auth.conf",
"dest": "/var/lib/masakari/.config/libvirt/auth.conf",
"owner": "masakari",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/log/kolla/masakari",
"owner": "masakari:masakari",
"recurse": true
}
]
}