소스 검색
network.dpdk: Restart openvswitch-switch for dpdk
Current state of distro packages systemd unit deps (extract):
- dpdk.service wants network-pre.target;
- network-pre.target wants openvswitch-nonetwork.service;
- openvswitch-switch.service wants openvswitch-nonetwork.service,
network.target;
However, openvswitch-nonetwork requires ports to be bound already,
handled by dpdk service. On system boot, since openvswitch-nonetwork
starts before dpdk (succesfully, despite the binding issue), and the
ulterior start of openvswitch-switch does not trigger a restart, the
system is left in a slightly broken state, fixed by restarting either
of the openvswitch-* services.
To avoid another race condition leading to dead openvswitch-switch,
restart the openvswitch-nonetwork service directly.
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
pull/146/head