Unable to Start pf9-neutron-ovs-agent Service

Problem

  • Starting pf9-neutron-ovs-agent service on the host fails with the below error

Could not retrieve schema from tcp:127.0.0.1:6640: Connection refused
  • We can see below errors in host logs:

    • /var/log/pf9/pf9-neutron-ovs-agent.log

2020-04-02 03:19:37.870 5609 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ovs_ryuapp [-] Agent main thread died of an exception: Exception: Could not retrieve schema from tcp:127.0.0.1:6640: Connection refused

/var/log/syslog.log

Apr 2 03:20:47 osvt02 ovs-vsctl: ovs|00001|db_ctl_base|ERR|unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)

Environment

  • Platform9 Managed OpenStack - v3.6.0 and Higher

  • Neutron

Cause

pf9-neutron-ovs-agent service was not able to start as Open vswitch Database service(ovsdb-server) is in the stopped state.

systemctl status ovsdb-server● ovsdb-server.service - Open vSwitch Database Unit Loaded: loaded (/usr/lib/systemd/system/ovsdb-server.service; static; vendor preset: disabled) Active: inactive (dead)
$ sudo netstat -tulpn | grep -i 6640$

Resolution

  1. Start the Open vSwitch Database service( ovsdb-server) on the host manually.

  2. Restart pf9-neutron-ovs-agent service on the host.

Last updated