-
Notifications
You must be signed in to change notification settings - Fork 1.3k
systemvm: FIX haproxy is not reloaded but restarted in VR #4384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,7 +46,7 @@ def process(self): | |
| CsHelper.copy(HAPROXY_CONF_T, HAPROXY_CONF_P) | ||
|
|
||
| proc = CsProcess(['/run/haproxy.pid']) | ||
| if not proc.find(): | ||
| if proc.grep("/usr/sbin/haproxy") == -1: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ustcweizhou this is the same fix done in the PR: #4386, changes in "CsRedundant.py" for keepalived process. As I've commented in that PR, on a broader view, other processes might have similar issue. can this be fixed in CsProcess.py ? else slowly at some point, we'll end up replacing all proc.find() with proc.grep().
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sureshanaparti I will make change on proc.find |
||
| logging.debug("CsLoadBalancer:: will restart HAproxy!") | ||
| CsHelper.service("haproxy", "restart") | ||
| else: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haven't tested this, should this be !=0 instead @ustcweizhou ?