Bug 869288

Summary: Use /var/run/katello for pid tracking
Product: Red Hat Satellite Reporter: James Laska <jlaska>
Component: Content ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.0CC: bkearney, ehelms, jturner, lzap, msuchy
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-18 19:51:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Laska 2012-10-23 13:40:24 UTC
Description of problem:

Currently, the katello sysV script records process id information in a non-standard directory (/usr/share/katello/tmp/pids).  This should be moved to a more typical system-wide location: /var/run/katello/

# ls /usr/share/katello/tmp/pids/
delayed_job_monitor.pid  thin.5000.pid  thin.5002.pid  thin.5004.pid  thin.5006.pid  thin.5008.pid  thin.5010.pid  thin.5012.pid  thin.5014.pid  thin.5016.pid
delayed_job.pid          thin.5001.pid  thin.5003.pid  thin.5005.pid  thin.5007.pid  thin.5009.pid  thin.5011.pid  thin.5013.pid  thin.5015.pid


Version-Release number of selected component (if applicable):
 * katello-1.1.12-16.el6cf.src.rpm
 * katello-candlepin-cert-key-pair-1.0-1.src.rpm
 * katello-certs-tools-1.1.8-1.el6cf.src.rpm
 * katello-cli-1.1.8-8.el6cf.src.rpm
 * katello-configure-1.1.9-7.el6cf.src.rpm
 * katello-qpid-broker-key-pair-1.0-1.src.rpm
 * katello-qpid-client-key-pair-1.0-1.src.rpm
 * katello-selinux-1.1.1-2.el6cf.src.rpm

How reproducible:
 * 100%

Steps to Reproduce:
1. Install a supported $releasever for CloudForms System Engine
2. Install katello-all and run katello-configure
3. Inspect /var/run/katello and /usr/share/katello/tmp/pids

Actual results:

> # ls /var/run/katello
> ls: cannot access /var/run/katello: No such file or directory
> 
> # ls /usr/share/katello/tmp/pids
> delayed_job_monitor.pid  thin.5000.pid  thin.5002.pid  thin.5004.pid  thin.5006.pid  thin.5008.pid  thin.5010.pid  thin.5012.pid  thin.5014.pid  thin.5016.pid
> delayed_job.pid          thin.5001.pid  thin.5003.pid  thin.5005.pid  thin.5007.pid  thin.5009.pid  thin.5011.pid  thin.5013.pid  thin.5015.pid

Expected results:

> # ls /var/run/katello
> delayed_job_monitor.pid  thin.5000.pid  thin.5002.pid  thin.5004.pid  thin.5006.pid  thin.5008.pid  thin.5010.pid  thin.5012.pid  thin.5014.pid  thin.5016.pid
> delayed_job.pid          thin.5001.pid  thin.5003.pid  thin.5005.pid  thin.5007.pid  thin.5009.pid  thin.5011.pid  thin.5013.pid  thin.5015.pid
> 
> # ls /usr/share/katello/tmp/pids
> ls: cannot access /usr/share/katello/tmp/pids: No such file or directory

Additional info:

 * https://fedoraproject.org/wiki/Packaging:SysVInitScript

Comment 1 Lukas Zapletal 2012-10-29 16:02:00 UTC
The plan is to move from thin to mod_passenger, but I agree - we should create it in the more appropriate dir.

Comment 2 Miroslav Suchý 2012-11-13 12:55:26 UTC
My intention is to move to mod_passenger as well. This will resolve this BZ as side effect.
See
https://github.com/Katello/katello/pull/1041

Comment 5 Bryan Kearney 2014-02-18 19:51:25 UTC
Katello is now part of foreman. Closing.