Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with config-nodemgr and cassandra-repair listening on same …
…port contrail-config-nodemgr spawns contrail-cassandra-repair using subprocess.Popen and thus contrail-cassandra-repair inherits all the fds including the listening fd. Then when contrail-config-nodemgr is restarted/killed, contrail-cassandra-repair will still have the listening fd and hence contrail-config-nodemgr will not be able to come up and listen on the same port. Fix is to use - close_fds=True in the Popen call since the parent and child don't really need to communicate or share anything using fds and this will close all the fds shared from parent in the child. Change-Id: Icef9f981c6447dd013cebeab727f49c5e2cf74f8 Closes-Bug: #1643466 (cherry picked from commit 2d104f0)
- Loading branch information