Activity log for bug #1910209

Date Who What changed Old value New value Message
2021-01-05 08:32:53 Yi Yang bug added bug
2021-01-06 15:53:58 Sergio Durigan Junior bug added subscriber Christian Ehrhardt 
2021-01-06 16:02:04 Christian Ehrhardt  dpdk (Ubuntu): status New Incomplete
2021-01-07 06:52:40 Christian Ehrhardt  dpdk (Ubuntu): status Incomplete Confirmed
2021-01-07 06:52:52 Christian Ehrhardt  bug task added openvswitch (Ubuntu)
2021-01-07 06:52:59 Christian Ehrhardt  openvswitch (Ubuntu): status New Confirmed
2021-01-07 06:56:32 Christian Ehrhardt  dpdk (Ubuntu): status Confirmed Invalid
2021-01-07 07:10:07 Christian Ehrhardt  description My system is Ubuntu 18.04, I installed ovs DPDK by apt-get and used ovs-vswitchd DPDK version, but when I stop openvswitch-switch (sudo systemctl stop openvswitch-switch), /var/run/openvswitch is removed, so the exisitng VMs can't be accessed any more. I don't know why it is removed and who removed it. TL;DR: - stoping/restarting OVS clears /var/run/openvswitch - out of the "vhostuser" connection times a common socket path used was at /var/run/openvswitch - if that path used with "vhostuserclient" that removes the sockets on OVS stop/restart - Since qemu in server mode only creates this sockets once (as by the client/server design makes sense) that breaks the guests until restarted which is what the tech of vhostuserclient wanted to avoid. + Workaround: do use a different path like e.g. "/var/run/vhostuserclient/vhost-user-client-1" + Solution: let us think if we could keep the path around on stop/restart --- vv original report vv --- My system is Ubuntu 18.04, I installed ovs DPDK by apt-get and used ovs-vswitchd DPDK version, but when I stop openvswitch-switch (sudo systemctl stop openvswitch-switch), /var/run/openvswitch is removed, so the exisitng VMs can't be accessed any more. I don't know why it is removed and who removed it.
2021-01-07 07:10:13 Christian Ehrhardt  openvswitch (Ubuntu): importance Undecided Medium
2021-01-07 07:10:51 Christian Ehrhardt  bug task added serverguide
2021-01-07 07:10:58 Christian Ehrhardt  serverguide: status New Fix Released
2021-01-07 07:36:56 Christian Ehrhardt  bug added subscriber James Page
2021-01-07 07:37:09 Christian Ehrhardt  bug added subscriber Frode Nordahl
2021-01-07 07:38:12 Launchpad Janitor merge proposal linked https://code.launchpad.net/~paelzer/ubuntu/+source/openvswitch/+git/openvswitch/+merge/395882
2021-01-08 07:47:26 Christian Ehrhardt  nominated for series Ubuntu Groovy
2021-01-08 07:47:26 Christian Ehrhardt  bug task added openvswitch (Ubuntu Groovy)
2021-01-08 07:47:26 Christian Ehrhardt  bug task added dpdk (Ubuntu Groovy)
2021-01-08 07:47:26 Christian Ehrhardt  nominated for series Ubuntu Bionic
2021-01-08 07:47:26 Christian Ehrhardt  bug task added openvswitch (Ubuntu Bionic)
2021-01-08 07:47:26 Christian Ehrhardt  bug task added dpdk (Ubuntu Bionic)
2021-01-08 07:47:26 Christian Ehrhardt  nominated for series Ubuntu Focal
2021-01-08 07:47:26 Christian Ehrhardt  bug task added openvswitch (Ubuntu Focal)
2021-01-08 07:47:26 Christian Ehrhardt  bug task added dpdk (Ubuntu Focal)
2021-01-08 07:47:34 Christian Ehrhardt  bug task deleted dpdk (Ubuntu Bionic)
2021-01-08 07:47:37 Christian Ehrhardt  bug task deleted dpdk (Ubuntu Focal)
2021-01-08 07:47:39 Christian Ehrhardt  bug task deleted dpdk (Ubuntu Groovy)
2021-01-08 07:47:46 Christian Ehrhardt  openvswitch (Ubuntu Bionic): status New Confirmed
2021-01-08 07:47:52 Christian Ehrhardt  openvswitch (Ubuntu Focal): status New Confirmed
2021-01-08 07:47:54 Christian Ehrhardt  openvswitch (Ubuntu Groovy): status New Confirmed
2021-01-08 07:47:57 Christian Ehrhardt  openvswitch (Ubuntu): status Confirmed In Progress
2021-01-08 14:00:57 Launchpad Janitor openvswitch (Ubuntu): status In Progress Fix Released
2021-01-11 15:17:00 Launchpad Janitor merge proposal linked https://code.launchpad.net/~paelzer/ubuntu/+source/openvswitch/+git/openvswitch/+merge/396074
2021-01-11 15:17:03 Launchpad Janitor merge proposal linked https://code.launchpad.net/~paelzer/ubuntu/+source/openvswitch/+git/openvswitch/+merge/396075
2021-01-11 15:17:05 Launchpad Janitor merge proposal linked https://code.launchpad.net/~paelzer/ubuntu/+source/openvswitch/+git/openvswitch/+merge/396076
2021-01-11 15:23:56 Christian Ehrhardt  description TL;DR: - stoping/restarting OVS clears /var/run/openvswitch - out of the "vhostuser" connection times a common socket path used was at /var/run/openvswitch - if that path used with "vhostuserclient" that removes the sockets on OVS stop/restart - Since qemu in server mode only creates this sockets once (as by the client/server design makes sense) that breaks the guests until restarted which is what the tech of vhostuserclient wanted to avoid. + Workaround: do use a different path like e.g. "/var/run/vhostuserclient/vhost-user-client-1" + Solution: let us think if we could keep the path around on stop/restart --- vv original report vv --- My system is Ubuntu 18.04, I installed ovs DPDK by apt-get and used ovs-vswitchd DPDK version, but when I stop openvswitch-switch (sudo systemctl stop openvswitch-switch), /var/run/openvswitch is removed, so the exisitng VMs can't be accessed any more. I don't know why it is removed and who removed it. [Impact] * The current systemd profile (only active in Debian/Ubuntu) in that form has a runtime directory. But in the default that means the runtime dir is removed on service stop or restart. * In the past dpdhvhostuser connections used to use paths under that run dir which was no problem as they were dead on restart anyway. But more modern dpdkvhostuserclient connections might (out of habit) use the same path and the dir removal kills that and effectively prevents to keep guest networking alive. * The fix ensures the directory is kept around via the proper systemd statement [Test Case] * start the service and touch any new file in there e.g. $ touch /var/run/openvswitch/foo After a restart this should still be there $ systemctl restart openvswitch-switch $ ls -laF /var/run/openvswitch/foo [Where problems could occur] * In our discussions we didn't find a reason that requires to clean that directory. But if there are any setup scenarios we have forgotten that need it then on restart they will have to deal with that "old content". Therefore on service restart is the place to watch out for regressions. [Other Info] * n/a --- TL;DR: - stoping/restarting OVS clears /var/run/openvswitch - out of the "vhostuser" connection times a common socket path used   was at /var/run/openvswitch - if that path used with "vhostuserclient" that removes the sockets   on OVS stop/restart - Since qemu in server mode only creates this sockets once (as by   the client/server design makes sense) that breaks the guests until   restarted which is what the tech of vhostuserclient wanted to avoid. + Workaround: do use a different path like e.g.   "/var/run/vhostuserclient/vhost-user-client-1" + Solution: let us think if we could keep the path around on stop/restart --- vv original report vv --- My system is Ubuntu 18.04, I installed ovs DPDK by apt-get and used ovs-vswitchd DPDK version, but when I stop openvswitch-switch (sudo systemctl stop openvswitch-switch), /var/run/openvswitch is removed, so the exisitng VMs can't be accessed any more. I don't know why it is removed and who removed it.
2021-07-28 23:16:36 Brian Murray openvswitch (Ubuntu Groovy): status Confirmed Won't Fix