Bug 1464698
| Summary: | prevent two miq servers from starting | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Ryan Spagnola <rspagnol> | |
| Component: | Appliance | Assignee: | Gregg Tanzillo <gtanzill> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | luke couzens <lcouzens> | |
| Severity: | high | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 5.6.0 | CC: | abellott, gtanzill, jhardy, jrafanie, myoder, obarenbo, simaishi | |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
| Target Release: | 5.9.0 | |||
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | appliance | |||
| Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1468612 1478434 1484485 (view as bug list) | Environment: | ||
| Last Closed: | 2018-03-06 15:45:31 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | Bug | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1468612, 1478434, 1484485 | |||
|
Comment 2
Joe Rafaniello
2017-06-28 15:03:14 UTC
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/9090b3e20967bf2f9fe25047260dce7aa5a0de41 commit 9090b3e20967bf2f9fe25047260dce7aa5a0de41 Author: Joe Rafaniello <jrafanie> AuthorDate: Fri Jun 30 16:51:56 2017 -0400 Commit: Joe Rafaniello <jrafanie> CommitDate: Fri Jun 30 17:54:33 2017 -0400 Only remove my process' pidfile. https://bugzilla.redhat.com/show_bug.cgi?id=1464698 at_exit handlers created in the server process are inherited when the server forks workers. As soon as one of these workers exits, this at_exit was being run and removing the server's pidfile. This allowed a subsequent rake evm:start or systemctl start evmserverd to fail to detect an existing server process, allowing a second MIQ Server to start. We can workaround this by only removing a pidfile that matches my Process.pid. lib/pid_file.rb | 2 +- spec/lib/pid_file_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) Verified in 5.9.0.2 |