Bug 1478434

Summary: prevent two miq servers from starting
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: high Docs Contact:
Priority: medium    
Version: 5.6.0CC: abellott, cpelland, gtanzill, jhardy, jrafanie, nchugh, obarenbo, simaishi, tpapaioa
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.2   
Hardware: All   
OS: All   
Whiteboard: appliance
Fixed In Version: 5.8.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1464698 Environment:
Last Closed: 2017-10-24 00:17:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1464698    
Bug Blocks:    

Comment 2 CFME Bot 2017-08-04 14:31:22 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/cdd920a7ab17b7c9d20065a26103a4649f9da823

commit cdd920a7ab17b7c9d20065a26103a4649f9da823
Author:     Gregg Tanzillo <gtanzill>
AuthorDate: Sat Jul 1 07:03:04 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Fri Aug 4 10:27:49 2017 -0400

    Merge pull request #15491 from jrafanie/do_not_remove_other_process_pidfile
    
    Only remove my process' pidfile.
    (cherry picked from commit 8dff3ce84db537aad522c580ce786c002a57548d)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1478434

 lib/pid_file.rb           | 2 +-
 spec/lib/pid_file_spec.rb | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comment 3 Tasos Papaioannou 2017-09-05 13:50:30 UTC
Verified on 5.8.2.0. After several days of uptime, evm.pid still exists:

****
[----] I, [2017-09-01T12:15:51.810359 #16873:5dd130]  INFO -- : MIQ(EvmApplication.start) EVM Startup initiated

# date
Tue Sep  5 09:48:16 EDT 2017

# ll /var/www/miq/vmdb/tmp/pids/evm.pid 
-rw-r--r--. 1 root root 5 Sep  1 12:16 /var/www/miq/vmdb/tmp/pids/evm.pid
****

Compare to 5.8.1.5, where evm.pid is missing after ~12 hours:

****
[----] I, [2017-09-04T21:37:14.274286 #48469:aab130]  INFO -- : MIQ(EvmApplication.start) EVM Startup initiated

# date
Tue Sep  5 09:48:05 EDT 2017

# ll /var/www/miq/vmdb/tmp/pids/evm.pid
ls: cannot access /var/www/miq/vmdb/tmp/pids/evm.pid: No such file or directory
****

Comment 5 errata-xmlrpc 2017-10-24 00:17:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:3005

Comment 6 Joe Rafaniello 2018-01-11 18:27:04 UTC
*** Bug 1498878 has been marked as a duplicate of this bug. ***