OVN metdata agent wont listen on ovsdb socket

asked 2020-08-17 03:12:05 -0500

Rubick Zen gravatar image

Hi, I have compute nodes where I set /etc/neutron/neutron_ovn_metadata_agent.ini with following config:

[DEFAULT]
auth_ca_cert =
nova_metadata_host = 10.50.50.20
nova_metadata_port = 8775
metadata_proxy_shared_secret = skskdjqoqlaoslod

[ovs]
ovsdb_connection = unix:/var/run/openvswitch/db.sock

[ovn]
ovn_nb_connection = tcp:10.50.50.100:6641
ovn_sb_connection = tcp:10.50.50.100:6642

But it seems like ovsdb_connection = unix:/var/run/openvswitch/db.sock parameter doesnt work, because when I check my neutron log it get error like this:

2020-08-17 13:42:39.418 46840 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:127.0.0.1:6642 to retrieve schema: Connection refused
2020-08-17 13:42:55.414 46590 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:127.0.0.1:6642 to retrieve schema: Connection refused
2020-08-17 13:42:55.433 46841 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:127.0.0.1:6642 to retrieve schema: Connection refused
2020-08-17 13:42:55.435 46840 ERROR ovsdbapp.backend.ovs_idl.idlutils [-] Unable to open stream to tcp:127.0.0.1:6642 to retrieve schema: Connection refused

It keep trying connect to tcp:127.0.0.1:6642 instead of unix:/var/run/openvswitch/db.sock. Is it my config wrong?

edit retag flag offensive close merge delete