[ovs-discuss] ovs-vswitchd exited silently

Flavio Leitner fbl at sysclose.org
Tue Sep 17 18:17:38 UTC 2019


On Thu, Sep 05, 2019 at 09:18:22AM +0000, Frank Wang(王培辉) wrote:
> Hi All

Hi Franck,

Perhaps check the permissions of /var/run/openvswitch ?

If they are correct, you can start ovsdb-server service first and
then start the ovs-vswitchd manually as the service does.

fbl

> 
> 
> 
>          I’m encountered a very strange problem that ovs-vswitchd exited silently without any exceptions while ovsdb-server running normally, I’m using openvswitch 2.9.2
> 
> I didn’t find any valuable log except that
> 
> ovs|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovs-vswitchd.5168.ctl
> 
> ovs-ctl[303320]: 2019-09-05T03:12:28Z|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovs-vswitchd.5168.ctl
> 
> ovs-ctl[303320]: ovs-appctl: cannot connect to "/var/run/openvswitch/ovs-vswitchd.5168.ctl" (Connection refused)
> 
> 
> 
> See the details below.
> 
> 
> 
> [root at node-34435-75174 ~]# systemctl status ovs-vswitchd -l
> 
> ● ovs-vswitchd.service - Open vSwitch Forwarding Unit
> 
>    Loaded: loaded (/usr/lib/systemd/system/ovs-vswitchd.service; static; vendor preset: disabled)
> 
>    Active: inactive (dead) since Thu 2019-09-05 11:12:28 CST; 4h 4min ago
> 
>   Process: 303320 ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server stop (code=exited, status=0/SUCCESS)
> 
> 
> 
> Aug 27 11:09:13 node-34435-75174 systemd[1]: Starting Open vSwitch Forwarding Unit...
> 
> Aug 27 11:09:13 node-34435-75174 ovs-ctl[5105]: Inserting openvswitch module [  OK  ]
> 
> Aug 27 11:09:13 node-34435-75174 ovs-ctl[5105]: Starting ovs-vswitchd [  OK  ]
> 
> Aug 27 11:09:13 node-34435-75174 ovs-vsctl[5257]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set Open_vSwitch . external-ids:hostname=node-34435-75174
> 
> Aug 27 11:09:13 node-34435-75174 ovs-ctl[5105]: Enabling remote OVSDB managers [  OK  ]
> 
> Aug 27 11:09:13 node-34435-75174 systemd[1]: Started Open vSwitch Forwarding Unit.
> 
> Sep 05 11:12:28 node-34435-75174 ovs-appctl[303333]: ovs|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovs-vswitchd.5168.ctl
> 
> Sep 05 11:12:28 node-34435-75174 ovs-ctl[303320]: 2019-09-05T03:12:28Z|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovs-vswitchd.5168.ctl
> 
> Sep 05 11:12:28 node-34435-75174 ovs-ctl[303320]: ovs-appctl: cannot connect to "/var/run/openvswitch/ovs-vswitchd.5168.ctl" (Connection refused)
> 
> 
> 
> [root at node-34435-75174 ~]# ls /var/run/openvswitch/ -l
> 
> total 12
> 
> srwxr-x---. 1 openvswitch openvswitch  0 Aug 27 11:09 db.sock
> 
> srwxr-x---. 1 openvswitch openvswitch  0 Aug 27 11:09 managevSwitch.mgmt
> 
> srwxr-x---. 1 openvswitch openvswitch  0 Aug 27 11:09 managevSwitch.snoop
> 
> srwxr-x---. 1 openvswitch openvswitch  0 Aug 27 11:09 ovsdb-server.5084.ctl
> 
> -rw-r--r--. 1 openvswitch openvswitch  5 Aug 27 11:09 ovsdb-server.pid
> 
> srwxr-x---. 1 openvswitch openvswitch  0 Aug 27 11:09 ovs-vswitchd.5168.ctl
> 
> -rw-r--r--. 1 openvswitch openvswitch  5 Aug 27 11:09 ovs-vswitchd.pid
> 
> srwxr-x---. 1 openvswitch openvswitch  0 Aug 27 11:09 sw-000001.mgmt
> 
> srwxr-x---. 1 openvswitch openvswitch  0 Aug 27 11:09 sw-000001.snoop
> 
> -rw-r--r--. 1 root        root        43 Aug 27 11:09 useropts
> 
> 
> 
> cat /var/log/message
> 
> Sep  5 11:00:01 node-34435-75174 systemd: Removed slice User Slice of root.
> 
> Sep  5 11:01:01 node-34435-75174 systemd: Created slice User Slice of root.
> 
> Sep  5 11:01:01 node-34435-75174 systemd: Started Session 1530 of user root.
> 
> Sep  5 11:01:01 node-34435-75174 systemd: Removed slice User Slice of root.
> 
> Sep  5 11:10:01 node-34435-75174 systemd: Created slice User Slice of root.
> 
> Sep  5 11:10:01 node-34435-75174 systemd: Started Session 1531 of user root.
> 
> Sep  5 11:10:01 node-34435-75174 systemd: Removed slice User Slice of root.
> 
> Sep  5 11:12:28 node-34435-75174 ovs-appctl: ovs|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovs-vswitchd.5168.ctl
> 
> Sep  5 11:12:28 node-34435-75174 ovs-ctl: 2019-09-05T03:12:28Z|00001|unixctl|WARN|failed to connect to /var/run/openvswitch/ovs-vswitchd.5168.ctl
> 
> Sep  5 11:12:28 node-34435-75174 ovs-ctl: ovs-appctl: cannot connect to "/var/run/openvswitch/ovs-vswitchd.5168.ctl" (Connection refused)
> 
> Sep  5 11:20:01 node-34435-75174 systemd: Created slice User Slice of root.
> 
> Sep  5 11:20:01 node-34435-75174 systemd: Started Session 1532 of user root.
> 
> Sep  5 11:20:01 node-34435-75174 systemd: Removed slice User Slice of root.
> 
> Sep  5 11:24:12 node-34435-75174 systemd: Starting Cleanup of Temporary Directories...
> 
> Sep  5 11:24:12 node-34435-75174 systemd: Started Cleanup of Temporary Directories.
> 
> Sep  5 11:30:01 node-34435-75174 systemd: Created slice User Slice of root.
> 
> Sep  5 11:30:01 node-34435-75174 systemd: Started Session 1533 of user root.
> 
> Sep  5 11:30:01 node-34435-75174 systemd: Removed slice User Slice of root.
> 
> Sep  5 11:40:01 node-34435-7
> 
> 
> 
> [root at node-34435-75174 ~]# systemctl status ovsdb-server -l
> 
> ● ovsdb-server.service - Open vSwitch Database Unit
> 
>    Loaded: loaded (/usr/lib/systemd/system/ovsdb-server.service; static; vendor preset: disabled)
> 
>    Active: active (running) since Tue 2019-08-27 11:09:13 CST; 1 weeks 2 days ago
> 
>     Tasks: 1
> 
>    CGroup: /system.slice/ovsdb-server.service
> 
>            └─5084 ovsdb-server /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --user openvswitch:openvswitch --no-chdir --log-file=/var/log/openvswitch/ovsdb-server.log --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach
> 
> 
> 
> Aug 27 11:09:13 node-34435-75174 runuser[5070]: pam_unix(runuser:session): session opened for user openvswitch by (uid=0)
> 
> Aug 27 11:09:13 node-34435-75174 runuser[5070]: pam_unix(runuser:session): session closed for user openvswitch
> 
> Aug 27 11:09:13 node-34435-75174 runuser[5077]: pam_unix(runuser:session): session opened for user openvswitch by (uid=0)
> 
> Aug 27 11:09:13 node-34435-75174 runuser[5077]: pam_unix(runuser:session): session closed for user openvswitch
> 
> Aug 27 11:09:13 node-34435-75174 ovs-ctl[5023]: Starting ovsdb-server [  OK  ]
> 
> Aug 27 11:09:13 node-34435-75174 ovs-vsctl[5085]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait -- init -- set Open_vSwitch . db-version=7.15.1
> 
> Aug 27 11:09:13 node-34435-75174 ovs-vsctl[5090]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set Open_vSwitch . ovs-version=2.9.2 "external-ids:system-id=\"8e65b978-978e-4fda-ad0e-1230f0310205\"" "external-ids:rundir=\"/var/run/openvswitch\"" "system-type=\"InCloud Sphere\"" "system-version=\"5.6.0\""
> 
> Aug 27 11:09:13 node-34435-75174 ovs-ctl[5023]: Configuring Open vSwitch system IDs [  OK  ]
> 
> Aug 27 11:09:13 node-34435-75174 systemd[1]: Started Open vSwitch Database Unit.
> 
> Aug 27 11:09:13 node-34435-75174 ovs-vsctl[5096]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set Open_vSwitch . external-ids:hostname=node-34435-75174
> 
> 
> 
> [root at node-34435-75174 ~]# systemctl status openvswitch -l
> 
> ● openvswitch.service - Open vSwitch
> 
>    Loaded: loaded (/usr/lib/systemd/system/openvswitch.service; enabled; vendor preset: disabled)
> 
>    Active: active (exited) since Tue 2019-08-27 11:09:13 CST; 1 weeks 2 days ago
> 
> Main PID: 5260 (code=exited, status=0/SUCCESS)
> 
>     Tasks: 0
> 
>    CGroup: /system.slice/openvswitch.service
> 
> 
> 
> Aug 27 11:09:13 node-34435-75174 systemd[1]: Starting Open vSwitch...
> 
> Aug 27 11:09:13 node-34435-75174 systemd[1]: Started Open vSwitch.
> 
> 
> 
> Please let me know if you need more information. Any comments would be appreciate.
> 
> 
> 

> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss



More information about the discuss mailing list