r/openstack • • Jul 16 '25

Masakari - Kolla Ansible - Corosync communication is failed.

Hi,

I deployed my openstack with kolla ansible , i enabled masakari service.

It seems to work but i have this error in the masakari hostmonitor logs:

2025-07-16 09:47:37.089 7 WARNING masakarimonitors.hostmonitor.host_handler.handle_host [-] Corosync communication using 'ens34' is failed.: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2025-07-16 09:47:37.089 7 ERROR masakarimonitors.hostmonitor.host_handler.handle_host [-] Corosync communication is failed.

I found this : https://review.opendev.org/c/openstack/kolla-ansible/+/943388

So i made the same changes in my files

kolla-ansible/ansible/roles/masakari/defaults/main.yml

and

kolla-ansible/ansible/roles/handlers/main.yml

i deployed with these edits but i've the same error.

(kolla-venv) root@deployer:/opt/kolla-venv# docker exec -it masakari_hostmonitor  bash
(masakari-hostmonitor)[masakari@deployer /]$ tcpdump -i ens34
tcpdump: ens34: You don't have permission to perform this capture on that device
(socket: Operation not permitted)

Thanks

1 Upvotes

5 comments sorted by

1

u/kmadac Jul 16 '25

Hi,

I would doublecheck with `docker inspect` that masakari-hostmonitor container is really running in privileged mode. If not, try to delete the container with `docker rm` and redeploy masakari service.

1

u/Toustibat Jul 16 '25
(masakari-hostmonitor)[masakari@deployer /]$ tcpdump -i ens34
tcpdump: ens34: You don't have permission to perform this capture on that device
(socket: Operation not permitted)
(masakari-hostmonitor)[masakari@deployer /]$ 
exit
(kolla-venv) root@deployer:/opt/kolla-venv# docker inspect masakari_hostmonitor | grep Privileged
            "Privileged": true,

1

u/kmadac Jul 16 '25

Try to exec into container as a root user

docker exec -it -u root masakari_hostmonitor bash

and then try tcpdump

1

u/Toustibat Jul 16 '25

it works.

but i still have the corosync error

1

u/kmadac Jul 17 '25

I checked the masakari code here and it runs tcpdump as the root:

https://github.com/openstack/masakari-monitors/blob/5307b2b71e295a01561ec13f5398af655b522994/masakarimonitors/hostmonitor/host_handler/handle_host.py#L157

out, err = utils.execute(*command, run_as_root=True)

If you can run tcpdump manually as a root, then permission is not the only issue here.

Try to run as root exactly same tcpdump command as masakari does with correct interface and port: tcpdump -n -c 1 -p -i %s port %s" to ensure that command executes successfully.

Maybe the interface or port is the issue.