OVSDB Error: Writing Transaction Failed: /etc/openvswitch/conf.db: Cannot Truncate: Permission Denied

Problem

  • The pf9-neutron-ovs-agent service fails to start.
  • On failure, the following log trace is seen in /var/log/pf9/pf9-neutron-ovs-agent.log.
Copy

Environment

  • Platform9 Managed OpenStack - v3.6.0 and Higher
  • Neutron
  • CentOS 7.x

Cause

Setting SELinux to Enforcing prevents neutron-ovs-agent from connecting to /etc/openvswitch/conf.db.

Copy

Resolution

  1. On the fly, set SELinux to Permissive.
Copy
  1. For the change to remain persistent across reboots, disable SELinux in /etc/sysconfig/selinux.
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard