Bug 867578

Summary: Make APACHE_ACCESS_LOG a config option for last_access.
Product: OKD Reporter: Wesley Hearn <whearn>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, jhou, mpatel, twiest
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-06 18:48:12 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 Wesley Hearn 2012-10-17 19:14:09 UTC
Description of problem: The last_access script should make APACHE_ACCESS_LOG a config option so that the apache logs can be moved if needed.


Version-Release number of selected component (if applicable):


How reproducible: 


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info: The default option should be /var/log/httpd/openshift/access_log

Comment 1 Rob Millner 2012-10-17 21:08:35 UTC
Passing to Jhon who is already working on the idler code.

Comment 2 Jhon Honce 2012-10-17 21:34:36 UTC
Change will be on master post on-premise merge.

Added APACHE_ACCESS_LOG entry to /etc/openshift/node.conf file, which is read when script is run.  Other globals in script are now read from node.conf as well.

Unset entries are defaulted to old global values.

Comment 3 Thomas Wiest 2012-10-18 18:34:40 UTC
Does comment 2 mean that this fix won't be part of the 2.0.19 release?

Comment 4 Jhon Honce 2012-10-18 20:25:45 UTC
Code change in 2.0.19, release ticket updated

Comment 5 Jianwei Hou 2012-10-19 02:31:16 UTC
Verified on devenv_2348

1. SSH into instance, vi /etc/openshift/node.conf, check if last_access is a configurable option:
LAST_ACCESS_DIR="/var/lib/openshift/.last_access"    #Location to maintain last accessed time for gears
2. run 'oo-last-access' and check logs in /var/lib/openshift/.last_access/$UUID
[root@ip-10-40-158-55 ~]# cat /var/lib/openshift/.last_access/3e58fd841a634dc5b113cefcf8e48582
18/Oct/2012:22:29:04 -0400

last_access dir is consistent with configuration.