Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn-ctl: Start ovn-northd even if ovsdb-servers are not running
When '--ovn-manage-ovsdb=no' is passed to "ovn-ctl start_northd", it doesn't start ovsdb-servers, but it expects the ovsdb-servers to be running. If the ovsdb-servers are not running, ovn-ctl exits without starting ovn-northd. This could create problems when ovn-northd and ovsdb-servers are managed separately, for example when pacemaker is used to manage ocf:ovndb-servers and ovn-northd as separate resources. In the cases where a slave is promoted as master, it is possible that pacemaker might start ovn-northd service before starting ovsdb-servers. This patch addresses this issue by not checking the status of ovsdb-server pids when ovn-manage-ovsdb is set to true when 'start_northd' is called. ovn-northd will eventually connect to the ovsdb-servers when they are started. So there is no harm in removing this check. Signed-off-by: Numan Siddique <[email protected]> Signed-off-by: Andy Zhou <[email protected]>
- Loading branch information