Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn-ctl: Fix the wrong pidfile argument passed to ovsdb-servers
When OVN db servers are started usinb ovn-ctl, if the pid files (/var/run/openvswitch/ovnnb_db.pid for example) are already present, then ovn-ctl passes "--pidfile=123" if the pid file has '123' stored in it. Later on when OVN pacemaker RA script calls status_ovnnb/status_ovnsb() functions, these returns "not running". The shell function 'pidfile_is_running()' stores the contents of the pid file as "pid=`cat "$pidfile"`". If the caller also uses the same variable "pid" to store the file name, it gets overriden. This patch fixes this issue by renaming the local variable "pid" in the "start_ovsdb__()" shell function to "db_file_name". Signed-off-by: Numan Siddique <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information