I am using ovs-2.5.2 and find there may be socket handle leak when kill 
ovsdb-server/ovs-vswitchd thread.
When I use “pkill -9 ovs-vswitchd” kill ovs-vswitchd thread and restart it, the 
socket file “ovs-vswitchd.12237.ctl” isn’t closed.


LOG:
linux-tpHwIF:~ # ll /var/run/openvswitch/
total 8
srwxr-x--- 1 root root 0 May 31 19:00 db.sock
srwxr-x--- 1 root root 0 May 31 19:00 ovsdb-server.12197.ctl
-rw-r----- 1 root root 6 May 31 19:00 ovsdb-server.pid
srwxr-x--- 1 root root 0 May 31 19:00 ovs-vswitchd.12237.ctl
-rw-r----- 1 root root 6 May 31 19:00 ovs-vswitchd.pid
linux-tpHwIF:~ # pkill -9 ovs-vswitchd
linux-tpHwIF:~ # bash /usr/share/openvswitch/scripts/ovs-ctl restart
Exiting ovsdb-server (12197)                               [  OK  ]
Starting ovsdb-server                                      [  OK  ]
system ID not configured, please use --system-id ... failed!
Configuring Open vSwitch system IDs                        [  OK  ]
Starting ovs-vswitchd                                      [  OK  ]
Enabling remote OVSDB managers                             [  OK  ]
linux-tpHwIF:~ # ll /var/run/openvswitch/
total 8
srwxr-x--- 1 root root 0 May 31 19:09 db.sock
srwxr-x--- 1 root root 0 May 31 19:09 ovsdb-server.6712.ctl
-rw-r----- 1 root root 5 May 31 19:09 ovsdb-server.pid
srwxr-x--- 1 root root 0 May 31 19:00 ovs-vswitchd.12237.ctl
srwxr-x--- 1 root root 0 May 31 19:09 ovs-vswitchd.6724.ctl
-rw-r----- 1 root root 5 May 31 19:09 ovs-vswitchd.pid
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to