Red Hat Bugzilla – Bug 867578
Make APACHE_ACCESS_LOG a config option for last_access.
Last modified: 2015-05-14 19:00:56 EDT
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):
Steps to Reproduce:
Additional info: The default option should be /var/log/httpd/openshift/access_log
Passing to Jhon who is already working on the idler code.
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.
Does comment 2 mean that this fix won't be part of the 2.0.19 release?
Code change in 2.0.19, release ticket updated
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
last_access dir is consistent with configuration.