Bug 855990 - stickshift-proxy is failed after reload on Fedora 17 and later
Summary: stickshift-proxy is failed after reload on Fedora 17 and later
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Rob Millner
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-10 21:12 UTC by Rob Millner
Modified: 2015-05-14 22:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-17 21:28:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 721375 0 unspecified CLOSED sshd moves to a new PID during reload 2021-02-22 00:41:40 UTC

Internal Links: 721375

Description Rob Millner 2012-09-10 21:12:36 UTC
Description of problem:
After updating the proxy configuration, a service reload on stickshift-proxy causes the service to show as failed and systemd to terminate the haproxy daemon.

The underlying issue is that systemd is confused by the daemon changing PIDs on reload.

Version-Release number of selected component (if applicable):
Fedora 17 and later.

How reproducible:
Always on affected Fedoras

Steps to Reproduce:
1. systemctl status stickshift-proxy.service
2. systemctl reload stickshift-proxy.service
3. systemctl status stickshift-proxy.service
  
Actual results:
Service shows up as failed and is terminated

Expected results:
Service properly reloads and is not terminated.

Additional info:

Comment 1 Rob Millner 2012-09-10 21:16:56 UTC
See Bug 721375 ; A similar issue was discovered with sshd and the resolution was to treat sshd as a "simple" service that does not fork into the background.

Comment 2 Rob Millner 2012-09-10 21:19:16 UTC
The PID file is no longer updated when haproxy is not run in daemon mode.  Our procedures assuming it should change appropriately.

Comment 3 Rob Millner 2012-09-11 20:57:58 UTC
The following pull request creates a wrapper script for LSB compliance.

https://github.com/openshift/crankcase/pull/474

Comment 4 Rob Millner 2012-09-12 17:17:14 UTC
Pull request accepted.


Note You need to log in before you can comment on or make changes to this bug.