[ovs-discuss] socket handle leak when pkill/kill -9 ovsdb-server/ovs-vswitchd

fukaige fukaige at huawei.com
Wed May 31 03:26:04 UTC 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20170531/3a05e0dc/attachment.html>


More information about the discuss mailing list