Bug 892879 - Should specifying in BYO doc about adding "/var/log/mcollective-client.log" file before changing owner
Summary: Should specifying in BYO doc about adding "/var/log/mcollective-client.log" f...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: bmoss
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-08 06:21 UTC by xjia
Modified: 2015-07-20 00:52 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-20 02:37:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description xjia 2013-01-08 06:21:40 UTC
Description of problem:
User setup broker following the site:https://openshift.redhat.com/community/wiki/build-your-own .By default, "/var/log/mcollective-client.log" doesn't exist until execute "mco ping" on broker.  So before change the permission of mcollective-client.log, user should touch this file by themselves. This step should be written in BYO.

Version-Release number of selected component (if applicable):
https://openshift.redhat.com/community/wiki/build-your-own

How reproducible:
always

Steps to Reproduce:

Actual results:

Expected results:

Comment 3 Alex Dellapenta 2013-02-08 16:25:33 UTC
I recently went through these steps as well (sec 5.6 of the Deployment Guide) and remembered this BZ, so I made sure to touch the file first before attempting to set ownership. However, even with the file created, you get an error because the apache user doesn't exist until section 5.7.1 when the broker packages are installed, pulling in httpd. I guess you could create the user yourself at that point, but it was easier to just move on to 5.7.1 then go back and chown.

Comment 4 Luke Meyer 2013-02-08 16:54:06 UTC
(In reply to comment #3)

Good point. Actually, this is probably why even with the latest install script performing this step, the problem persists; the apache user doesn't exist when it's running.

We need to either move the command later, or yum install httpd earlier.

Comment 5 bmoss 2013-02-12 00:15:47 UTC
Luke, would the following change to the end of section 5.6.2 be sufficient to address this bug?

-----
You must also fix file ownership so that the broker host's Apache instance can write to the /var/log/mcollective-client.log file. Use the following commands to install the Apache server, create mcollective-client.log, and change the file ownership:

# yum install httpd
# touch /var/log/mcollective-client.log
# chown apache:root /var/log/mcollective-client.log

Comment 6 Luke Meyer 2013-03-13 20:59:24 UTC
Brian, I finally decided that it made less sense to install httpd here than to just do the file fixup later.

Thus, please add a section after 5.7.2. Modifying Broker Proxy Configuration, to the effect of what you have in #5 (minus the Apache install). It seems a little out of place but it is enabling the broker app to log correctly, so I consider it broker conf.


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