ovs .pid file?

Bug #1864262 reported by bjolo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned
Rocky
New
Undecided
Unassigned

Bug Description

when executing ovs commands in the containers, they complain they cant find the pid file. File does not exist

[root@eselda04u25 openvswitch]# docker exec openvswitch_db ovs-appctl list-commands
2020-02-21T22:49:01Z|00001|daemon_unix|WARN|/var/run/openvswitch/ovs-vswitchd.pid: open: No such file or directory
ovs-appctl: cannot read pidfile "/var/run/openvswitch/ovs-vswitchd.pid" (No such file or directory)
[root@eselda04u25 openvswitch]# docker exec openvswitch_vswitchd ovs-appctl list-commands
2020-02-21T22:49:10Z|00001|daemon_unix|WARN|/var/run/openvswitch/ovs-vswitchd.pid: open: No such file or directory
ovs-appctl: cannot read pidfile "/var/run/openvswitch/ovs-vswitchd.pid" (No such file or directory)
[root@eselda04u25 openvswitch]# ll /var/run/openvswitch/
total 0
srwxr-x---. 1 root root 0 Feb 17 20:12 br-ex.mgmt
srwxr-x---. 1 root root 0 Feb 17 20:12 br-ex.snoop
srwxr-x---. 1 root root 0 Feb 17 20:12 br-int.mgmt
srwxr-x---. 1 root root 0 Feb 17 20:12 br-int.snoop
srwxr-x---. 1 root root 0 Feb 17 20:12 br-tun.mgmt
srwxr-x---. 1 root root 0 Feb 17 20:12 br-tun.snoop
srwxr-x---. 1 root root 0 Feb 17 20:12 br-vlan4022.mgmt
srwxr-x---. 1 root root 0 Feb 17 20:12 br-vlan4022.snoop
srwxr-x---. 1 root root 0 Feb 17 20:12 br-vlan4023.mgmt
srwxr-x---. 1 root root 0 Feb 17 20:12 br-vlan4023.snoop
srwxr-x---. 1 root root 0 Feb 17 20:12 br-vlan4024.mgmt
srwxr-x---. 1 root root 0 Feb 17 20:12 br-vlan4024.snoop
srwxr-x---. 1 root root 0 Feb 17 20:12 br-vlan4025.mgmt
srwxr-x---. 1 root root 0 Feb 17 20:12 br-vlan4025.snoop
srwxr-x---. 1 root root 0 Feb 17 20:12 db.sock
srwxr-x---. 1 root root 0 Feb 17 20:06 ovsdb-server.14.ctl
srwxr-x---. 1 root root 0 Feb 17 20:12 ovsdb-server.15.ctl
srwxr-x---. 1 root root 0 Feb 17 20:12 ovs-vswitchd.14.ctl

Expection:
commands should work and return output

Env:
version: rocky centos7 source built december
kernel 5.4.15
Host OS: centos 7
docker 17.05

bjolo (bjorn-lofdahl)
description: updated
bjolo (bjorn-lofdahl)
summary: - ovs containers dont have access to sockets
+ ovs .pid file?
description: updated
Revision history for this message
bjolo (bjorn-lofdahl) wrote :

The solution is to add the --pidfile flag to the start-ovs
See man ovs-vswitchd

# cat /etc/kolla/openvswitch-vswitchd/start-ovs
#!/usr/bin/env bash
/usr/sbin/ovs-vswitchd unix:/run/openvswitch/db.sock --pidfile -vconsole:emer -vsyslog:err -vfile:info --mlockall --log-file=/var/log/kolla/openvswitch/ovs-vswitchd.log

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.